Why can't you look at messages in the Rabbit Queue

后端 未结 9 575
庸人自扰
庸人自扰 2021-02-02 05:39

If my understanding is correct, you can\'t actually look at messages in the rabbit queue without taking them out and putting them back in. There\'s no way to use rabbitmqctl to

9条回答
  •  遇见更好的自我
    2021-02-02 06:39

    You can certainly look at the contents of a queue in RabbitMQ, or any AMQP broker, for that matter. Just consume messages but don't acknowledge them. Once you close the channel the messages will be available for consumption by your 'real' consumers. Keep in mind that doing so might affect the ordering of messages in the queue which you inspect.

    Also, the web management plugin offered by RabbitMQ allows you to view the contents of messages from the web interface. If you're trying to debug your system, it's a very helpful tool.

提交回复
热议问题