paint-brush
Simple Steps to Avoid the Retry Behavior from AWS Lambdaby@byrro
19,032 reads
19,032 reads

Simple Steps to Avoid the Retry Behavior from AWS Lambda

by Renato Byrro7mJuly 25th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

When a Lambda function invocation crashes due to an uncaught application error, for example, AWS may automatically retry the same request. This auto-retry happens when the function is invoked: Asynchronously by any type of requester by an event source mapping, such as data streams from DynamoDB or Kinesis. In some cases, it’s just pointless to retry if the first request failed, it has zero chance of succeeding in subsequent attempts. Retrying could also lead to unwanted side-effects if our code is not idempotent.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Simple Steps to Avoid the Retry Behavior from AWS Lambda
Renato Byrro HackerNoon profile picture
Renato Byrro

Renato Byrro

@byrro

Python Developer, Serverless enthusiast and Developer Advocate

About @byrro
LEARN MORE ABOUT @BYRRO'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Renato Byrro HackerNoon profile picture
Renato Byrro@byrro
Python Developer, Serverless enthusiast and Developer Advocate

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite