Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Does Spring Cloud support the explicit deletion of messages from SQS? #775

Open
richardrflores opened this issue May 6, 2021 · 1 comment
Labels

Comments

@richardrflores
Copy link

The issue below shows a way that this might be achieved, but it's not clear if this way is supported.
#134

The documentation does not mention any way of explicitly deleting messages from the queue, so I get the impression that it is not supported. I also checked the Apidocs and could not infer the usage.

Can you confirm? If it is supported can you provide a current sample of the usage?

@github-actions github-actions bot added the status: waiting-for-triage An issue we've not yet triaged label May 6, 2021
@richardrflores
Copy link
Author

Just an update that may be helpful to anyone else trying to explicitly delete messages from SQS. I was able to do this using the previously suggested way mentioned in #134, but you must have the SqsMessageDeletionPolicy = NEVER. Sample is shown below. Please correct me if I'm wrong.

@SqsListener(value = "${cloud.aws.endpoint.uri}", deletionPolicy = SqsMessageDeletionPolicy.NEVER)
@Override public void queueListener(@NotificationMessage ChangeDataCaptured message, Acknowledgment acknowledgment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants