且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MassTransit/RabbitMq错误队列-如何删除消息?

更新时间:2021-09-29 08:51:56

error 队列是中毒队列,或者是

The error queue is the poison queue, or the invalid message channel

Fault< T> 消息的使用者使用此队列. Fault 消息将与其他任何消息一起发布.如果您查看中毒队列的内容,您将看不到任何 Fault 消息,因为它打算保留您的消费者无法使用的原始消息.

The consumer of Fault<T> messages does not use this queue. The Fault messages get published as any other messages. If you look at the content of the poison queue, you will not see any Fault messages there since it intends to keep the original messages, which your consumer failed to consume.

这里的目的是您能够查看这些消息并最终决定将它们移回原始队列以进行重新处理,或者只是评估这些消息的内容以进行故障排除.

The intention here is that you are able to look at those messages and eventually decide to move them back to the original queue for re-processing, or just evaluate the content of those messages for troubleshooting purposes.

MassTransit对该队列不执行任何操作,也不会从该队列中删除消息.您可以自己从UI或使用管理API或您的代理来完成此操作.

MassTransit does nothing with that queue and woun't delete messages from there. You can do it yourself from the UI or using the management API or your broker..