问题
Is it possible to make multiple consumers to share one single queue in RabbitMQ? I am currently using this php library to work with RabbitMQ, from what I observe, although I have 2 identical instances of a consumer script running, but only one would respond to the message passed...
回答1:
If you want both consumers to see all messages, give each consumer its own (probably private) queue and bind them both to the same exchange.
来源:https://stackoverflow.com/questions/1831705/multiple-consumer-one-queue