I have a scenario where I have to route a list of messages that I get to respective users. For suppose if I have
messages = [
{ text: 'hi', user_id: 1 },
{ text: 'hi', user_id: 2 },
{ text: 'hi', user_id: 3 },
{ text: 'hi', user_id: 4 },
{ text: 'hi', user_id: 5 },
];
I read in a blog where creating queues dynamically is an antipattern.
https://derickbailey.com/2015/09/02/rabbitmq-best-practices-for-designing-exchanges-queues-and-bindings/
I also tried creating queues on the producer side, this is creating queues, but could not consume messages from that queues as I dont the name of the queues when consuming it.
How can I handle this case in an efficient manner?