Question

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

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top