转自:http://windwrite.com/archives/603 我们现有的业务就面临此问题,消息生产太快,消费不过来,导致队列堆积很长,把服务器内存耗尽,这时RabbitMQ的处理能力很低下. 我在RabbitMQ社区发邮件问了下: We have the queue publisher and subscriber, the subscriber is going with multi-threads. The problem is the queue has been increa
获取mq中消息然后处理失败重试机制: 下面的代码是php连接mq客户端的获取queue队列中的消息代码: public function createDurableSubscriber($queue,$callback){ $f = $this->con->subscribe($queue); while(1){ $msg = $this->con->readFrame(); i