开发者

PHP remote procedure calling

I have two servers on PHP that need to communicate, calling remote methods of each other.开发者_StackOverflow XML-RPC for PHP is not very good solution because it's very slow, and I can't call multiple methods in one request.


Try MultiRpc - multiple methods calling in 1 request, by encrypted and compressed protocol.


XML-RPC in PHP is pretty fast actually, if you use the built-in xmlrpc methods. It supports multiple method calls in a single request as well, using system.multiCall. The native multiCall is broken up to PHP 5.3.2 though. I've written an easy to use library for xmlrpc, called Ripcord, which allows you to very easily create servers and clients and works around most of the bugs in PHP's native xmlrpc methods. See http://ripcord.googlecode.com/


Thanks for RipCord. I think it's a very good library. I just used it and could exec some rpc in just a hour or less.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜