-
-
Notifications
You must be signed in to change notification settings - Fork 389
Enable SqsTemplate to send more than 10 messages at once #1042
Copy link
Copy link
Open
Labels
component: sqsSQS integration related issueSQS integration related issuestatus: ideal-for-contributionWe agree it's nice to have but it is not team priorityWe agree it's nice to have but it is not team prioritytype: enhancementSmaller enhancement in existing integrationSmaller enhancement in existing integration
Description
Activity
Metadata
Metadata
Assignees
Labels
component: sqsSQS integration related issueSQS integration related issuestatus: ideal-for-contributionWe agree it's nice to have but it is not team priorityWe agree it's nice to have but it is not team prioritytype: enhancementSmaller enhancement in existing integrationSmaller enhancement in existing integration
As discussed here, currently
SqsTemplatefails if more than 10 messages are provided in a batch with an error from AWS SDK.We can add support for this use case by partitioning the message list in batches of 10, while also sending the batches in parallel.
This change would likely be around here:
spring-cloud-aws/spring-cloud-aws-sqs/src/main/java/io/awspring/cloud/sqs/operations/SqsTemplate.java
Lines 350 to 356 in 562b933