Deduplicate messages in deleteMessageBatch #481
shyam2794
started this conversation in
Feature Request
Replies: 2 comments 3 replies
-
|
Hey, thanks for raising the discussion. I've not looked too deeply into the problem, but a solution to this problem would make sense if the SDK does not do it inherently, so we'd be open to a PR. That said, it might be worth seeing if the SDK is willing to do this for JavaScript. Is there an issue over there already? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
@nicholasgriffintn thanks for the reply . Haven't checked in AWS SDK, will see if there are any existing issues. If not will try raise one with them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
When there are messages with same id in a single batch , deletion fails with the error
BatchEntryIdsNotDistinct. We could dedup the message before calling theDeleteMessageBatchCommand.From AWS ,
we could do something similar to this - https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb#L434
Ideally doing this in AWS sdk will be best, but had skimmed through the sqs-client , they just use the messages which we send as arguments when calling
DeleteMessageBatchCommand. So we can dedup the messages before calling sdk's command.Would be happy to raise a PR for this incase if we agree to implement .
Objectives
Remove the duplicate messages within a single batch when deleting.
Beta Was this translation helpful? Give feedback.
All reactions