Closed shyam2794 closed 3 months ago
Hi @shyam2794 ,
Thanks for reaching out. I have raised this with the SDK team and we have decided that we have no plans implementing this for multiple reasons.
SDKs have moved away from customizations exactly for this reason. Unless there is a unified, customer driven, cross SDK feature request that standardizes high level libraries (for example lib-storage or lib-dynamo) implementing features on a per SDK level can create feature parity gaps.
Since this would be a handwritten customization (not code generated unlike 95% of the SDK), this means we will have to port it over to the next major version otherwise will cause feature parity between the two major versions.
The solution here is to write a helper function to dedupe the batch list yourself.
Thanks again, Ran~
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the feature
Remove the duplicate messages within a single batch when deleting in sqs.
This has been handled in the aws sdk for ruby - https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb#L434
https://github.com/aws/aws-sdk-ruby/discussions/2908#discussioncomment-7082645
PR - https://github.com/aws/aws-sdk-ruby/pull/2918
Use Case
When there are messages with same id in a single batch , deletion fails with the error BatchEntryIdsNotDistinct . This is already handled in AWS SDK ruby , we can do the same for js as well .
Proposed Solution
From AWS docs ,
We could reverse the order of message Id's remove the duplicate and reverse the message to the original order . This should retain the duplicate message with recent receipt handle .
Other Information
No response
Acknowledgements
SDK version used
v3
Environment details (OS name and version, etc.)
All OS