Patterns for State & Performance
- Use
idempotency keys
so re-tried events don’t double-apply work. - Cache config/metadata in memory per container (it may survive between warm calls).
- Prefer
small bundles
to reduce cold start time. - For hot paths, consider
provisioned concurrency
or platforms with low cold starts (edge runtimes).