Kartik Goyal
Kartik Goyal

Reputation: 447

Lambda Throttling Scenario

We are using Lambda subscribed to SNS to process the messages. Lambda has a safety limit of 100 concurrent invocations at any time. So what happens to the throttled events ? Are they rejected or they are added to the queue to process them later ?

[Pages Visited]

Upvotes: 7

Views: 1555

Answers (1)

Jarred Olson
Jarred Olson

Reputation: 3243

You can increase your concurrent limit by requesting an increase. I would assume that a throttled event would be treated like any failed event. Per the documentation it is retired twice then discarded. You can setup a Dead Letter Queue (DLQ). Failed events will be added to the configured queue and they can be re-picked up for processing. I'm also not sure if you get an error reason or not in the message in the queue so a throttled event may look the same as a failed event (not sure if that would matter to you or not). You can also monitor throttles via CloudWatch, but this would not contain the event information necessary to replay the event.

Upvotes: 1

Related Questions