Skip to content

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Apr 14, 2023

This PR continues on #8029. I actually only fixed the DLQ behaviour for FIFO topics for publish_batch and not for a simple publish.

I've also refactored our way of passing argument to the SQS client in the publisher, to allow reuse between the regular SQS publisher and the batch one, also when sending it down the DLQ.

I've also removed create_sqs_message_attributes as it was a remnant from the ProxyListener, and now ASF properly decodes and casts the MessageBodyAttributeMap into the right format. It might have been the issue for https://discuss.localstack.cloud/t/i-have-been-stuck-on-binascii-error-incorrect-padding-not-sure-if-it-is-an-error/297 but not sure yet, anyway, after testing, it was not used anymore.

There's a follow up PR building on this to test and implement deduplication for FIFO topic, see #8145

@bentsku bentsku requested a review from thrau April 14, 2023 18:21
@bentsku bentsku self-assigned this Apr 14, 2023
@bentsku bentsku added the aws:sns Amazon Simple Notification Service label Apr 14, 2023
@github-actions
Copy link

LocalStack Community integration with Pro

1 900 tests   1 698 ✔️  1h 16m 22s ⏱️
       2 suites     202 💤
       2 files           0

Results for commit cb7bb4e.

@bentsku bentsku requested a review from baermat April 17, 2023 15:16
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! LGTM 👍

@bentsku bentsku merged commit f9a4b63 into master Apr 17, 2023
@bentsku bentsku deleted the remove-sns-sqs-attrs-util branch April 17, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:sns Amazon Simple Notification Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants