RabbitMQ - 如果消息在队列中等待时间过长,则发出通知

发布于 2025-01-09 10:40:10 字数 43 浏览 3 评论 0原文

如果消息在队列中等待很长时间,有没有办法从 RabbitMQ 获取通知?

Is there a way how to get notification from RabbitMQ if a message is waiting in queue for a long time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

囍孤女 2025-01-16 10:40:10

确保满足交付延迟要求的常见标准解决方案是设置 生存时间 (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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文