-
-
Notifications
You must be signed in to change notification settings - Fork 368
Conditionally add a random UUID dedup ID if the queue isn't configured for content based deduplication #799
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
Conversation
…d for content based deduplication
|
Thanks for the PR @jwilmoth-nc! There seems to be a lot of formatting changes, which makes the review harder - can you please run mvn verify so the spotless plugin can apply out default format? |
tomazfernandes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jwilmoth-nc the PR looks great, thanks!
I've left a couple of comments - please let me know if they make sense to you.
spring-cloud-aws-sqs/src/main/java/io/awspring/cloud/sqs/operations/SqsTemplate.java
Outdated
Show resolved
Hide resolved
spring-cloud-aws-sqs/src/main/java/io/awspring/cloud/sqs/operations/SqsTemplate.java
Show resolved
Hide resolved
|
@maciejwalkowiak - I've asked you before but I don't quite remember what's the answer. Whenever we run maven we get updates for S3 classes such as What should we do about those? Seems a bit odd to update such classes in a PR related to SQS. |
|
@tomazfernandes run |
spring-cloud-aws-sqs/src/test/java/io/awspring/cloud/sqs/operations/SqsTemplateTests.java
Outdated
Show resolved
Hide resolved
|
@jwilmoth-nc we’ll shortly review and merge your PR, thanks. I have one question just in case - have you confirmed targeting AWS that adding a messageDeduplicationId overrides content-based deduplication on AWS and that it does mess up deduplication? AWS has a tendency to ignore unexpected things, so I wouldn’t be surprised if that was the case on this one. I’m asking this because I couldn’t find anything that specific on the docs, just to measure impact. Thanks again. |
Hey @tomazfernandes thanks for the quick review cycle. Yes, here's a couple of screenshots of a fifo queue with content based deduplication set and two identical messages sent w/ different MessageDeduplicationId. Here's the AWS docs that say "If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides the generated one" The above messages were sent with:
|
|
Cool, thanks for the info @jwilmoth-nc. @maciejwalkowiak feel free to review / merge / polish anytime. I should be able to take a closer look into this later today if that’s better. Thanks! |
tomazfernandes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @jwilmoth-nc!


📢 Type of change
📜 Description
Conditionally add a random UUID dedup ID if the queue isn't configured for content based deduplication to allow consumers who are using AWS SQS's content based deduplication functionality to let AWS decide what's a duplicate.
💡 Motivation and Context
Fixes an issue with the same content being delivered via a FIFO queue configured with content based deduplication.
💚 How did you test it?
Added unit test.
📝 Checklist
🔮 Next steps