- Newest
- Most votes
- Most comments
Hello.
How about increasing the value of "maxConcurrentMessages" to increase the amount of messages that can be processed at once?
By default, it seems that 10 messages are retrieved at a time.
https://docs.awspring.io/spring-cloud-aws/docs/3.1.0/reference/html/index.html#sqslistener-annotation
https://docs.awspring.io/spring-cloud-aws/docs/3.1.0/reference/html/index.html#message-processing-throughput
The slow message consumption in your SQS listener may be due to improper queue configuration, such as a long visibility timeout or low message batch size.
Polling intervals could also be too long, and your listener’s processing logic might have bottlenecks, like synchronous operations or inefficient thread pool usage.
To improve performance, adjust the queue settings, increase concurrency, optimize the thread pool, and ensure non-blocking message handling.
Relevant content
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago