문제

I am curious if using an socket daemon in PHP a good idea for building RPC functionality on a distributed system?

도움이 되었습니까?

해결책

Well, it depends on what exactly you're doing. But in general, I'd personally build a restful interface as opposed to using raw sockets. That way it's just a normal HTTP get (which is easy to use, extend, etc) rather than needing to invent your own protocol. Either that, or use one of the many RPC protocols:

  • XMLRPC
  • JSONRPC <- I like this since it's so easy to use in just about any language
  • SOAP
  • etc...
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top