Does SQS can invoke Lambda functions asynchronously ?


I found this article :

I see that SQS is supported as Poll-based invoke.

  1. Does it means that Lambda will be triggered async once event is added to DLQ?
  2. Does this Lambda is supporting DLQ, meaning if the function is failed, I can publish it to DLQ?


asked 4 years ago1763 views
1 Answer

Lambda processes events from SQS synchronously, and so failed invocations will not besent to a DLQ on the Lambda side. If the Lambda invocation fails, the message remains in the SQS queue, and will be retried or sent to the queue's DLQ according to how the queue is configured.

answered 4 years ago
  • Thank you so much for this. You have no idea how much this clears my confusion/misunderstanding on SQS with Lambda functions. 😊

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions