-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation for SqsMessageListenerContainer's ability to change visiblity and performing manual acknowledgements #1130
Comments
PS. I can create a PR to update the documentation on my own, if i get a response to my questions. :)
|
Hi @vicinzu, not sure what you mean. Manual Acknowledgement is covered in this part of the docs. Message visibility is covered here and here Does this help you? Thanks. |
Hi @tomazfernandes, Regarding the acknowledgement: But I am searching for a way to get an instance of In the source code i noticed that I can instantiate an Regarding the visiblity: I am searching for a way to get an instance of In the source code i noticed that, similar to acknowledgement, it can be retrievied from the message headers. Is this also the way to go? Thank you in advance! |
Oh, I see, you don't really have to do anything, just set I thought this phrase would be clear enough, but maybe we can improve it or add an example?
Whoops, sorry, my mistake. Here and here
Visibility is simple as well - just add a Makes sense to you? |
Hello @tomazfernandes, yes I know. It is well documented for it. We already do use it like that (as mentioned in my first message). But because we need more flexibility we want to switch from the |
Type: Bug
Component:
SQS (reference documentation)
Describe the bug
We have been using spring-cloud-aws for a long time to integrate SQS into our services. Until now, using the
@SqsListener
annotation has been sufficient.But now we are facing new challenges. We need to define and configure the beans dynamically at runtime. For general use cases the functionality of the
SqsMessageListenerContainer
is great. However, we also have use cases where we need to change the visibility of individual messages and where we need to do manual acknowledgement. Unfortunately there is no documentation on how to use that functionality with theSqsMessageListenerContainer
.I had a look to the source code and it seems to me, that the message headers contain the solution:
Visibility
from the message headerSqs_VisibilityTimeout
to change the visibilityAcknowledgementCallback
from the message headerAcknowledgementCallback
to perform a manual acknowledgementBut i am not sure if this is the right way of doing it:
Would be nice if you could update the documentation of the
SqsMessageListenerContainer
accordingly.The text was updated successfully, but these errors were encountered: