🎄 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.
Develop spring cloud stream code to manually send acknowledgement post message consumption
Develop spring cloud stream code to manually send acknowledgement post message consumption
"pick up message from Solace broker --> do some business logic --> if business logic successful --> ack the message so that it gets deleted from queue (if not, don't ack)"
Answers
-
Hi @paramitakundu,
Welcome to the Solace Community! Currently the Cloud Stream Binder for Solace does not support manual ACKs, however there is an enhancement open that you can follow and a little birdie told me it should be supported in the next major release ofsolace-spring-cloud
Right now my best guess is that release will be in the November time frame but I'll try to remember to update this thread when I know more.I know it's not as useful as doing a manual ACK, but keep in mind that the pubsub+ cloud stream binder will automatically ACK your message after the app returns successfully. If your app throws an exception the message will be requeued.
-Marc
1 -
Hi @paramitakundu,
Just a heads up to you and anyone else that comes across this thread that this is now possible insolace-spring-cloud
v2.0.0.
Info here: https://github.com/SolaceProducts/solace-spring-cloud/tree/master/solace-spring-cloud-starters/solace-spring-cloud-stream-starter#manual-message-acknowledgment1