PHP远程过程调用

发布于 2024-09-26 07:35:44 字数 87 浏览 0 评论 0原文

我有两台 PHP 服务器需要通信,调用彼此的远程方法。 PHP 的 XML-RPC 并不是一个很好的解决方案,因为它非常慢,而且我无法在一个请求中调用多个方法。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

忘羡 2024-10-03 07:35:44

尝试 MultiRpc - 通过加密和压缩协议在 1 个请求中调用多种方法。

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

衣神在巴黎 2024-10-03 07:35:44

如果您使用内置的 xmlrpc 方法,PHP 中的 XML-RPC 实际上相当快。它还使用 system.multiCall 在单个请求中支持多个方法调用。不过,本机 multiCall 已分解为 PHP 5.3.2。我为 xmlrpc 编写了一个易于使用的库,称为 Ripcord,它允许您非常轻松地创建服务器和客户端,并解决 PHP 原生 xmlrpc 方法中的大多数错误。请参阅 http://ripcord.googlecode.com/

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/

女中豪杰 2024-10-03 07:35:44

感谢 RipCord。我认为这是一个非常好的图书馆。我刚刚使用它并且可以在一个小时或更短的时间内执行一些 rpc。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文