rabbitmq reqeeue/defue wature timeout
由于原因,我无法使用延迟插件。因此,我已经使用了死信交换来实现。
问题是我的字母有不同的超时。这是主要问题:带有1S超时的超时15S块字母的首字母。有没有办法解决这种FIFO模式?
这是无效的方法。
我不知道实际超时是什么,所以我不能真正用静态超时并在那里扔字母。
不会有很多字母,所以我想我可以使用自定义超时声明每个请求的队列,并在不需要的情况下删除它。在这种情况下,如果不再发布字母,我需要在某个时候删除此队列。而且我认为我无法做到这一点。
我已经阅读了有关延迟消息传递方法的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.
I dunno what the actual timeout would be, so I can't really pre-create n queues with static timeouts and throw letters there.
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论