I have a lambda function that pulls data from the event stream from DynamoDB. Inside the lambda function, I have a REST call to one of the internal API endpoint. The current timeout set for Lambda is 60 seconds.
Problem: In logs I am noticing that once in a while Lambda throws a timeout exception. It might be because my API did not process the request within 60 seconds.
Question: I want to understand in case lambda times out then what happens to events and calls that are being sent to the internal API/ REST Calls. Will those calls/events will be retried and sent again to the API out of the box?
I read below links:
https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html
AWS Lambda processing stream from DynamoDB
but I am not able to comprehend whether the API will receive those events/calls again.