dotnetcore/CAP

Subscription service may cause publish message loss when it is never started

6933 opened this issue · 1 comments

6933 commented

程序分为两个部份:消息发布服务和消息订阅服务。
当消息订阅服务尚未启动一次时,此时rabbitmq队列尚未创建。
这时,消息发布服务发布的消息丢失,但在Published表中标识为Succeeded。
此时再启动消息订阅服务,也无法收到此前发布的消息。

尝试启用 opt.PublishConfirms = true; 也无效。