开发者

Is using IP sockets for RPC functionality for a distributed system a good idea?

开发者 https://www.devze.com 2023-02-13 04:45 出处:网络
I am curious if开发者_如何学JAVA 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 pe

I am curious if开发者_如何学JAVA 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...
0

精彩评论

暂无评论...
验证码 换一张
取 消