Tuesday, July 12, 2022

[FIXED] How many Amazon SQS ReceiveMessageRequest i can perform on single sqs queue using multiple consumer

Issue

I have sqs queue "someQueue" and i have implemented multiple 100 consumer for it. i added wait_time_seconds as 20 seconds. now i am getting

"com.amazonaws.SdkClientException: Unable to execute HTTP request: Timeout waiting for connection from pool"

Is there any limit for receive message request? or i am missing something?


Solution

AWS default connection pool size is 50 connections, for one client. when i reduced the connection request to less than 50 it worked for me.



Answered By - Harshal Pagar
Answer Checked By - Katrina (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.