Reputation: 143
I am using Client > SNS > SQS > Lambda Trigger
As per my understanding, SNS > Lamda will be an asynchronous invocation
However, SNS > SQS > Lambda supposed to be synchronous.
I have configured DLQ on the SQS source but doesn’t store failed message into DLQ. Also saw 2x retried attempt on Lambda cloudwatch.
Upvotes: 1
Views: 3149
Reputation: 9624
@jellycsc already answered your question in the comment section, but i would like to expand it. Shortly it is poll based which uses synchronous
invocation for it.
There are three type of invocation models for AWS Lambda
According to the this blogpost
AWS will manage the poller on your behalf and perform
Synchronous
invokes of your function with this type of integration. The retry behavior for this model is based on data expiration in the data source. For example, Kinesis Data streams store records for 24 hours by default (up to 168 hours).
Upvotes: 4