A Lambda function can fail for any of the following reasons:
The function times out while trying to reach an endpoint.
The function fails to successfully parse input data.
The function experiences resource constraints, such as out-of-memory errors or other timeouts.
For my case, I'm using C# Lambda with SQS integration
If the invocation fails or times out, every message in the batch will be returned to the queue, and each will be available for processing once the Visibility Timeout period expires
My question: What happen if I, using an SQS Lambda integration ( .NET )
- My function throws an Exception
- My SQS visibility timer is set to 15 minutes, max receive count is 1, DLQ setup
Will the function retry? Will it be put into the DLQ when Exceptions are thrown after all retries?