MassTransit:我应该如何处理错误队列? [英] MassTransit: How should I handle error queues?

查看:113
本文介绍了MassTransit:我应该如何处理错误队列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了一个问题&其答案如下;

I saw a question & its answer below;

https://stackoverflow.com/a/46128844/7419921

尽管我知道我无法通过MassTransit对错误队列做任何事情,但是我应该如何处理错误队列? 错误消息将会累积.紧迫的存储容量.

Although I understood that I cannot do anything for the error queue via MassTransit, what should I handle the error queue? Error messages would be accumlating. It's pressing storage capacity.

看来我与错误队列无关.别无选择,只能将其删除吗? 如果是这样,我将无法想象错误队列的含义.

It seems that I have nothing to do for the error queue. Is there no choice but to remove them? If so, I cannot imagine a meaning of the error queue.

推荐答案

错误队列的含义非常简单.消息进入错误队列是因为错误!修复应用程序中的问题后,可以使用Shovel插件将消息从错误队列移回到常规队列,瞧-您恢复了丢失的数据.我们经常这样做.

The meaning of error queues is very simple. Messages come to error queues because, well, of errors! When you fix issues in your application, you can move messages from the error queue back to the regular queue using Shovel plugin, and voila - you recovered lost data. We do this very often.

如果由于这些消息不再实际或它们包含错误的数据而无法将它们移回-这也非常有价值,因为使用这些消息可以重现问题并查看是否可以修复发件人.

If you cannot move them back because these messages aren't actual anymore or they contain wrong data - this is also very valuable since using these messages you can reproduce the issue and see if you can fix the sender.

这篇关于MassTransit:我应该如何处理错误队列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆