SQS Messages Enter Visibility Timeout but Lambda did not Receive Them

  Kiến thức lập trình

I have a single concurrency Lambda that I want to trigger from SQS messages, I also have defined BatchSize to one so only one message is received by the Lambda. However, I can see that my SQS is sending more than one message as I can see from the Messages Sent metric and the worst thing is I have a function in my Lambda to delete certain messages in the queue however all the messages are unavailable and immediately enter the visibility timeout.

What am I missing, why are the messages entering their visibility timeout when the Lambda did not receive them in the first place, why are they being shown as sent?

I expect my Lambda to receive one message at a time and be able to access and delete the other messages inside my queue.

New contributor

stefanbd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT