Serial processing of message in multiple consumer
Hello,
I am new to solace. My query is that I am sending message to a single queue which is read by 2 consumer pods.
I have a requirement that there are some sets of message they needs to be processed in sequence. There is one field example "userid" in the message body by which we can identify that the message are related or not.
Lets consider we send 4 messages all related as per business scenario meaning all userid are same. Now it could be possible msg1, msg2 can be processed by 1st consumer and msg3, msg4 can be processed by 2nd consumer and sequentially processing is not achieved.
How to achieve sequential processing in this scenario ?
Best Answer
-
Hi @solaceUser,
Please take a read through @Aaron's blog here as it covers the different ways to implement consumer groups and scaling with Solace. I think it's great to read the whole blog, but the "Sticky Load-Balancing, or Keyed/Hashed Delivery" is likely what will likely help you out here :)
Hope that helps!
1
Answers
-
Hi @solaceUser,
Please take a read through @Aaron's blog here as it covers the different ways to implement consumer groups and scaling with Solace. I think it's great to read the whole blog, but the "Sticky Load-Balancing, or Keyed/Hashed Delivery" is likely what will likely help you out here :)
Hope that helps!
1