[英]Spring Boot + RabbitMQ messages lost on delayed exchange
我正在使用 spring boot convertAndSend()
在延迟交换上发布消息,但该消息从未在队列中发布,也没有抛出任何异常
is never being published on the queue and there isn't any exception being thrown永远不会在队列上发布,也没有抛出任何异常
When a system wants to communicate via a message broker the developer needs a clear understanding of the delivery semantics.当系统想要通过消息代理进行通信时,开发人员需要清楚地了解交付语义。 At first one needs to know if and how often a message will be delivered to the broker (and potential consumers):首先需要知道消息是否以及多久发送给代理(和潜在消费者):
The reasons why your messages are lost is because probably you are using at most once
semantics.您的消息丢失的原因可能是您at most once
使用at most once
语义。
You can configure at least once
delivery semantics if you follow this guide如果您遵循本指南,您可以at least once
配置at least once
交付语义
Does this solve your problem ?这能解决您的问题吗? Tell me in the comments.在评论中告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.