• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


25 Apr, 2025

Updated at 18 May, 2025

.NET & Mass Transit - How to process messages in DLQ

I have an application in .NET and I use Mass Transit. In Azure I am running Azure Service Bus.

The following situation is happening to me. It happens that I get an exception in the consumer, for example, an unavailable database. It crashes into the Mass transit error queue on that I have a consumer too, however it crashes into the unavailable database there too. And even if I have retry set there, it doesn't get resolved. So the message goes to my DLQ. What now? I actually don't even care that it fails. The problem is that it doesn't flag something in the error queue in the database, and because of it my whole application gets “stuck”.

I don't know how to handle this situation. Should I write some routine that checks my DLQ and processes those messages? Or is there already something from Mass Transsit ready for this?

Thanks a lot

Translated with DeepL.com (free version)