MassTransit: How should I handle error queues?

本小妞迷上赌 提交于 2019-12-10 18:19:48

问题


I saw a question & its answer below;

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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/48952398/masstransit-how-should-i-handle-error-queues

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!