spring-cloud-aws
spring-cloud-aws copied to clipboard
Issue with SQS receive count
Problem I am using spring cloud version 2.1.3.RELEASE for publishing and consuming messages to/from SQS. The problem i have is with SQS receive count and Dead letter queue. Some of the messages receive count is incrementing without entering SQSListner's onMessage method.
As the messages receive count incrementing, the messages are entering dead letter queue after x number of receive count, in my case i configured it as 3 before entering dead letter queue. I have dead letter queue configured to push messages after receive count reaches 3.
I have tried attaching thread pool executor to SimpleMessageListenerContainerFactory and tried various combinations of core pool size, max and queue size, none of them helped. Its is same problem without adding any thread pool.
I have tried below thread pool combinations core-5, max-5 and queue-5 core-6, queue-7, max-9 no explicit thread pool executor
This issue observed for 1 out of 1000 messages. Is this could be related to thread pool executor rejecting some messages when queue is full? If that is the case how same message get rejected 3 times?