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

[sc115424] add send messages by batch to sqs sdk #199

Conversation

mtakerrabet
Copy link
Collaborator

add send messages by batch to to an aws sqs queue

@mtakerrabet mtakerrabet requested a review from musketyr December 4, 2023 15:04
Copy link

This pull request has been linked to Shortcut Story #115424: add send messages by batch to micronaut aws sqs sdk.

@mtakerrabet mtakerrabet requested a review from DKarim December 4, 2023 17:06
Copy link
Contributor

@musketyr musketyr left a comment

Choose a reason for hiding this comment

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

looks good, just a minor thing: I think using the messagesList for a Map is not a good practice. can you rename it.

I think it would make sense to to also add the support into @QueueClient declarative clients. e.g. by using @Batch on a Map<String, Object> parameters, what do you think?

another subject is if there is a need to backport the change also into AWS SDK v1 library. so far we were trying to keep these in sync.

@mtakerrabet
Copy link
Collaborator Author

looks good, just a minor thing: I think using the messagesList for a Map is not a good practice. can you rename it.

I think it would make sense to to also add the support into @QueueClient declarative clients. e.g. by using @Batch on a Map<String, Object> parameters, what do you think?

another subject is if there is a need to backport the change also into AWS SDK v1 library. so far we were trying to keep these in sync.

Hi @musketyr, thanks for the review, I renamed the parameter and did the modification for the @QueueClient declarative clients client, but I didn't the changes on the AWS SDK v1 library, the SendMessageBatchRequest is provided by the software.amazon.awssdk:sqs which is not embedded in

@mtakerrabet mtakerrabet requested a review from musketyr December 7, 2023 08:46
@musketyr
Copy link
Contributor

musketyr commented Dec 7, 2023

@mtakerrabet please, check this update to your PR: cd862c2.

So the number of messages in the batch has its hard limit? In that case we can partition the messages directly in the introduced method.

@mtakerrabet
Copy link
Collaborator Author

@mtakerrabet please, check this update to your PR: cd862c2.

So the number of messages in the batch has its hard limit? In that case we can partition the messages directly in the introduced method.

Thank you for the updates @musketyr, it looks good to me,
and for the number of messages in the batch, yes, sqs set a hard limit to 10 messages by request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants