CURATED TEMPLATE / AWS

Incoming work arrives faster than a downstream task can safely process it.

HTTP API, queue and Lambda

View original source

When this becomes useful

Customers should not have to wait while slower work finishes. A queue can absorb bursts, but the user experience still needs a clear answer when the work is delayed or fails.

What the template offers

HTTP API, queue and Lambda is a AWS SAM pattern from AWS Serverless Patterns. It offers a concrete implementation to inspect and adapt. Shows a buffered request path with a FIFO queue. Check ordering scope, duplicate handling and the response users see before work finishes.

Technical shape

Follow the API, FIFO queue, Lambda consumer and notification path. Check ordering keys, duplicate handling and failure destinations.

Questions worth answering

  • What happens when the consumer fails or runs twice?
  • How will customers see that work is pending?
  • When should an item move to a dead-letter queue?

Inspect the source

Read the maintainer's README, license, setup instructions and current repository state before adapting the code.

Open AWS Serverless Patterns

Capabilities to plan next

A deployable pattern is one piece of the product. These guides cover behavior and decisions around it.