Labs โ€บ serverless API on AWS0 / 9

Step 1 of 9 ยท Intro

Design a serverless API on AWS

Build an API with no servers, and learn which quotas decide how far it goes.

How it works

  • โ€บAPI Gateway throttles at 10,000 requests/s per account and Region by default, with a burst bucket of 5,000. Beyond that clients receive HTTP 429.
  • โ€บLambda's default is 1,000 concurrent executions per Region. Lambda also caps requests per second at 10 times your account concurrency, so 10,000 requests/s by default, and concurrency itself equals requests per second times average duration.
  • โ€บDynamoDB allows 40,000 request units/s per table by default, but only 1,000 writes and 3,000 reads a second for any single partition.
  • โ€บLimits come from AWS documentation (default quotas in us-east-1). Where AWS publishes no figure, such as how many requests a container or database handles, the lab states its assumption on the component.

What you'll build

  1. An API with no servers at 500 requests a second
  2. The same design near its quotas at 9,000
  3. A plan for a launch that exceeds the quotas
  4. CloudFront in front while quota increases are processed
  5. A DynamoDB key that does not create a hot partition