COMPUTE & RUN Serverless

Lambda reserved concurrency

Sets both the maximum and minimum concurrent instances for one function.

Official AWS Reference https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html ↗
SCOPE Regional
HIGH AVAILABILITY Multi-AZ Compatible
RESILIENCE Production Grade

// DECISION LOGIC MATRIX

✓

When to Choose

A scaling function is exhausting connections on a downstream relational database.

✕

When to Avoid

You want to remove cold starts. That is provisioned concurrency, and it costs extra.

// EXAM TRAPS & SIGNAL KEYWORDS

prevent cold starts, pre-warmed environments

// OFFICIAL AWS REFERENCE

AWS https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html ↗

"Reserved concurrency sets both the maximum and minimum number of concurrent instances allocated to your function. No other function can use that concurrency. It can limit concurrency to prevent overwhelming downstream resources, like database connections."

  • Reserved concurrency is free. Provisioned concurrency incurs additional charges.
  • You can reserve up to unreserved account concurrency minus 100.
  • Reserved concurrency of 0 throttles the function completely.

// LAMBDA RESERVED CONCURRENCY TAKEAWAYS

01

Role: Sets both the maximum and minimum concurrent instances for one function.

02

Choose: A scaling function is exhausting connections on a downstream relational database.

03

Avoid: You want to remove cold starts. That is provisioned concurrency, and it costs extra.

04

Trap: Watch for exam signals like prevent cold starts, pre-warmed environments.

05

Fact: Reserved concurrency is free. Provisioned concurrency incurs additional charges.

06

Fact: You can reserve up to unreserved account concurrency minus 100.

07

Fact: Reserved concurrency of 0 throttles the function completely.