开发者

What is a good message broker that works with PHP?

I am looking for a message broker (like Apache ActiveMQ for Java) that works with PHP, preferably open-source. Any idea开发者_JAVA百科s?


You can use Stomp (http://stomp.codehaus.org), it has a client for PHP that you can use to communicate with any of the brokers (includes ActiveMQ, http://stomp.codehaus.org/Brokers).

There's also Memcacheq (http://memcachedb.org/memcacheq/), there's an example about how to use it on that page.

You could also use Apache ActiveMQ and use a library like Zend_Queue (part of the Zend Framework, http://framework.zend.com/manual/en/zend.queue.html). It also supports a few other queue systems.


Besides what's written above you can also try Beanstalkd if you want a very simple message queue with clients in many languages.


I've had great luck with ActiveMQ. We were connecting Java to .NET, both sides had no problem. As scriptha mentions, any environment that can speak STOMP can speak to ActiveMQ.

http://stomp.codehaus.org/PHP links to a STOMP PHP client.

We ran thousands of messages per hour on ActiveMQ, and had the timing down to under 200ms including application time. It's fast, flexible, extensible and connects to lots of different environments. Definitely worth looking in to.


what about http://www.rabbitmq.com, it works with any language you want, for example how to use it in this tutorial

http://www.rabbitmq.com/tutorials/tutorial-one-php.html

Python | Java | Ruby | PHP | C#

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜