Skip to content
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

Add an option to not base64-encode SQS messages. #1500

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

hathawsh
Copy link
Contributor

@hathawsh hathawsh commented Mar 3, 2022

I would like to suggest this enhancement. It adds an option to disable the base64 encoding of all message bodies in SQS. Since the messages are already JSON encoded, there is no need to also encode them in base64; SQS allows all characters produced by the Python JSON library.

This patch also simplifies the base64 decoding logic so that we don't have to run base64 decoding twice for every message that's encoded in base64.

Also simplify the base64 decoding logic so that we don't have to
run base64 decoding twice for every message.
@auvipy auvipy merged commit 9b505f4 into celery:master Mar 4, 2022
@auvipy auvipy added this to the 5.2.x milestone Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants