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

2020-05-20 05:23发布

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 inspect a queue.

In some debugging contexts, knowing what is currently in the queue is very useful. Is there a way to get at the messages? Also, what is it about the design of Rabbit that makes this process cumbersome?

标签: rabbitmq
9条回答
够拽才男人
2楼-- · 2020-05-20 06:00

You could stuff them into something else first before sending them to RabbitMQ. I wrote message queuing software to do this. Check out http://qdb.io/

查看更多
地球回转人心会变
3楼-- · 2020-05-20 06:03

It's possible to get a message without acknowledging and then reject it, that wouldn't get the message out of the queue. But this is not implemented in the management tool.

And also the message is locked until released meaning that no other consumer can consume it before it gets rejected.

查看更多
我想做一个坏孩纸
4楼-- · 2020-05-20 06:04

You can click the Queue name first in the Web Management and click to the GetMessages to get your message. Now it will show your messages here enter image description here

查看更多
登录 后发表回答