My problem is, let's say we have 10 consumers subscribed to the topic. From the producer side, I have to send a message to only 5 consumers.
Let's say 5 consumers are having unique id [1,2,3,4,5] I have included this in the producer side with string concatenation as "1,2,3,4,5", I specified this in
devices = "1,2,3,4,5" messagePostProcessor.setStringProperty("deviceIds", devices);
How to handle it on the consumer side as a selector. Because I may send to 5 consumers, 10 consumers, or 50 consumers out of 100 consumers based on the demand of the situation.
From the producer's side we get consumers id's to send. But how we can identify or handle it on consumers.