ex_aws_sqs icon indicating copy to clipboard operation
ex_aws_sqs copied to clipboard

Switch to JSON protocol

Open maxsalven opened this issue 9 months ago • 2 comments

https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-sqs-support-json-protocol/

Today, Amazon Simple Queue Service (SQS) announces support for JSON protocol, enabling lower latency and improved performance for SQS customers. Based on AWS performance tests for a 5KB message payload, JSON protocol for Amazon Simple Queue Service reduces end-to-end message processing latency by up to 23% and reduces application client side CPU and memory usage.

I'm not familiar with the ex_aws source/architecture at all. Is it worth an outsider trying to make a PR here or is there a big learning curve?

maxsalven avatar Feb 04 '25 11:02 maxsalven

IMO there shouldn't be a huge learning curve if you are familar with elixir, but it's not zero. There are abstractions between core ex-aws and the individual service libraries like ex-aws-sqs

The library is not very big so this should not be that difficult. There is already support for 2 xml parsers, so adding support to use JSON should not be that complicated. Especially looking at how other ex-aws libraries already support JSON as examples.

TattdCodeMonkey avatar Feb 12 '25 16:02 TattdCodeMonkey

Additionally I think the initial task would be to support JSON protocol as an option, then possibly in the future making it the default.

TattdCodeMonkey avatar Feb 12 '25 16:02 TattdCodeMonkey