RabbitMQ - 如果消息在队列中等待时间过长,则发出通知
如果消息在队列中等待很长时间,有没有办法从 RabbitMQ 获取通知?
Is there a way how to get notification from RabbitMQ if a message is waiting in queue for a long time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保满足交付延迟要求的常见标准解决方案是设置 生存时间 (TTL) 在消息上,如果过期,它将被移动到死信队列,您可以在其中执行补偿操作。
定义
如果队列和消息都设置了 TTL,则将监管较低的延迟。
A common and standard solution to ensure that a delivery latency requirement is met is to set a Time To Live (TTL) on the message, and if this expires, this will be moved to the Dead Letter Queue where you can perform compensating actions.
TTL can be defined
If both the queue and the message have the TTL set, then the lower latency will be policed.