All templates
/
Scheduling
CURATED TEMPLATE / AWS

A product action needs a follow-up at a specific time, even if nobody is online.

API with Scheduler and email cleanup

View original source

When this becomes useful

Some product promises happen after the current request ends. The important design question is how the product records, changes and observes that future work.

What the template offers

API with Scheduler and email cleanup is a AWS SAM pattern from AWS Serverless Patterns. It offers a concrete implementation to inspect and adapt. A concrete example of work that happens later. Decide how users cancel it and how retries affect the stored record.

Technical shape

Trace the stored item, scheduled invocation and deletion/email path. Check how schedules are named, changed and removed.

Questions worth answering

  • Can a customer cancel or reschedule the work?
  • What happens if a step runs twice?
  • How is a failed run surfaced and retried?

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.