🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
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