英文:
Masstransit RabbitMQ Cancel scheduled messages
问题
我需要一些建议。我们有一个使用情景,我们想要使用定时消息。(我们立刻想到了使用带有延迟消息插件的RabbitMQ)
但在某个时候,我们也想要移除已安排的消息(这是解决使用情景的一种方式,情景A被触发,然后在消费之前被取消)。我们尝试过这样做,但未能成功。
我对不同的交换类型了解不深。但我在网上看到我们需要使用"x-delayed-message",我们已经这样做了,我可以成功安排一条消息(并在指定的时间接收到它)。
我们还有另一种解决方案,可以在我们的代理上继续使用定时消息。但我的问题是:您能取消已安排的消息吗?我们应该如何做到这一点?(你们有没有好的示例?)
我们的试验项目使用了Masstransit;我们尝试使用内置功能发送/取消消息,但消息仍然存在于交换中(发送后),即使在“取消”之后,它仍然存在并进入队列并被消耗。
提前感谢您的帮助,
Tim
附言:我也尝试在Slack和文档中搜索,但似乎无法找到答案。
英文:
I need some advice. We have a usecase where we want to use scheduled messages. (We immediately came out on using rabbitmq with the delayed message plugin)
But at some point we would also like to remove scheduled messages (which was one way of solving the use case, scenario A gets Triggered and then before consumption Cancelled).We tried doing this, but were not able to.
I do not have that deep of knowledge about the different exchange types. But I read online we need to use a: x-delayed-message; which we did and I can successfully schedule a message (and receive it at the posted time)
We have another work around where we could still use timed messages on our broker. But my question is: Are you able to cancel a scheduled message? And how would we do this exactly? (do you guys have any good examples?)
Our trail project uses Masstransit; we tried using the build in functionality to send/cancel a message, but the message stays on the exchange (after sending) and even after 'cancelling' it is still there and goes to the queue and gets consumed.
Thanks in advance,
Tim
PS: I also tried searching through the slack and documentation, but I can't seem to figure it out.
答案1
得分: 0
RabbitMQ延迟交换插件不支持取消通过延迟交换延迟的消息。
英文:
RabbitMQ delayed exchange plug-in does not support canceling messages that were delayed via the delayed exchange.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论