NServiceBus 是否保证消息将按特定顺序处理?
NServicebus 是否确保消息以特定顺序(例如 FIFO 或 LIFO)从队列中提取?
谢谢
Does NServicebus make sure messages are drawn down from a queue in a particular order like FIFO or LIFO?
Thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NServiceBus 不保证消息将按顺序处理(据我所知)。即使您运行单个线程,您也不能保证消息 2 不会在消息 1 之前到达。
我快速进行了 google 搜索,还发现:
http://mikaelkoskinen.net/post/NServiceBus-In-order-message-processing.aspx
这似乎测试场景,但得出结论:
此外,如果消息由于某种原因失败,它将被扔到队列的后面,并按照先前相关消息的顺序进行处理。
NServiceBus doesn't guarantee that messages will be processed in order (as far as im aware). Even if you ran a single thread, you can't guarantee that message 2 doesn't arrive before message 1.
I did a quick google search and also found:
http://mikaelkoskinen.net/post/NServiceBus-In-order-message-processing.aspx
Which seems to test the scenario, but came to the conclusion:
Also if a message fails for some reason, it will be thrown to the back of the queue, and processed out of order from the previous related messages.