rabbitmq reqeeue/defue wature timeout

发布于 2025-01-19 22:23:17 字数 346 浏览 1 评论 0原文

由于原因,我无法使用延迟插件。因此,我已经使用了死信交换来实现。

问题是我的字母有不同的超时。这是主要问题:带有1S超时的超时15S块字母的首字母。有没有办法解决这种FIFO模式?

这是无效的方法。

  1. 我不知道实际超时是什么,所以我不能真正用静态超时并在那里扔字母。

  2. 不会有很多字母,所以我想我可以使用自定义超时声明每个请求的队列,并在不需要的情况下删除它。在这种情况下,如果不再发布字母,我需要在某个时候删除此队列。而且我认为我无法做到这一点。

我已经阅读了有关延迟消息传递方法的NserviceBus方法,但是有关如何实施此方法的信息不多。

For reasons I can't use the delayed plugin. So I've made implemention with dead-letter-exchange.

The thing is that my letters have different timeouts. Here comes the main problem: first letter with timeout 15s blocks letter with 1s timeout. Is there a way to get around this FIFO pattern?

Here are approaches that didn't work.

  1. I dunno what the actual timeout would be, so I can't really pre-create n queues with static timeouts and throw letters there.

  2. There won't be a lot of letters, so i thought i can declare a queue for each request with custom timeout and delete it when it's no more needed. In this case I need to delete this queue in some time if no more letter are published. And I don't think I am able to do this.

I've read about NServiceBus approach for delayed messaging, but there is not much info on how to implement this.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文