stopping/pausing AWS SQS listener #455
Unanswered
springnirps
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Calling |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using spring cloud aws messaging dependency.
I have a @SQSListerner that is consume messages. I need to be able to stop consuming of messages from SQS if I detect my backend is unavailable to process the messages.
I've tried autowiring SimpleMessageListenerContainer and calling the stop method but this is producing a timeout exception. I am probably using this wrong. What is best practice to stop/pause consuming of SQS message to where I can later start consuming them again when my backend is available again.
Thanks.
-psv
Beta Was this translation helpful? Give feedback.
All reactions