So for example if I have a producer that sends a message
{id: 1}
to a consumer that expects that json object. And there's a ton of messages sitting in the queue waiting to be processed. I'm also writing some code in the producer & consumer so that it accepts {project_id: 1}
instead of {id: 1} now. This will cause all messages currently sitting in the queue to be rerouted to the dead letter queue.
Is this generally bad practice? Or how can I assure that all the stale messages are processed before releasing an upgrade.