Typically with busted messages, an early and easy thing to do is to just shunt them off into a "dead-letter queue". That's just the name of another queue where messages are manually handled.
Now what if the rest of your messages depended on the poison message? Think “inventory in” is the poison message and now all subsequent orders for that product are cancelled.
That’s a toy example; your system corruption could get much worse due to a poison message depending on the application.
That’s a toy example; your system corruption could get much worse due to a poison message depending on the application.