Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MassTransit: How should I handle error queues?

Tags:

masstransit

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.

like image 213
Yusuke Masuda Avatar asked Feb 23 '18 16:02

Yusuke Masuda


1 Answers

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.

like image 66
Alexey Zimarev Avatar answered Oct 19 '22 10:10

Alexey Zimarev