aspecto-io / sns-sqs-big-payload

Amazon SNS/SQS client library that enables sending and receiving messages with payload larger than 256KiB via Amazon S3.
Apache License 2.0
50 stars 17 forks source link

BatchRequest functionality in SQS Producer #30

Open samarthmaniar opened 3 years ago

samarthmaniar commented 3 years ago

I already posted this as an idea within the discussions category but posting it here to make it more visible to the other folks.

I was very much impressed with this library and almost decided to use it for our use case which is similar to yours at Aspecto but we currently use SQS.sendMessageBatch function to send a batch of messages. I was wondering it would be nice to implement the same functionality within SQS Producer of this library so we can send messages to SQS in batches helping us with less no. of network calls/connections.

amazon-sqs-java-extended-client alredy supports this functionality - https://github.com/awslabs/amazon-sqs-java-extended-client-lib/blob/master/src/main/java/com/amazon/sqs/javamessaging/AmazonSQSExtendedClient.java#L759

Let me know your thoughts about this idea.

habmic commented 3 years ago

Hi @samarthmaniar, thanks for reaching out! That sounds like a good idea, will you be open to contributing a PR with that functionality?