Skip to content

Failures and scaling

What happens when SES, the database or your webhook fails, and how Mail grows.

Applies to EngineCloud
View as Markdown
On this page
  1. Failures
  2. Scaling

Failures

What failsWhat happens
SES throttles or errorse-mails stay queued and are retried with backoff for 24 hours; nothing is lost
The databasethe API answers 503; the SMTP relay answers 451 (try later), which SMTP clients retry on their own
The event receiverevents wait in SQS for up to 14 days; after repeated failures they go to the dead-letter queue and an alarm fires
Your webhookretries for 24 hours, then undelivered and replayable
The sender is stoppedthe queue grows and drains when it starts again, in order per project
A bad template versionsends keep using the published version; roll back with one command

Scaling

  • The sender scales by project: each project has its own pace, so one project’s burst does not delay another’s.
  • The API and the receivers are stateless and scale with Lambda.
  • emails and email_events are partitioned by month; old partitions are detached when retention ends.
  • SES sending quotas are raised with AWS ahead of growth; the console shows each project’s share.
  1. Failures
  2. Scaling

    Search pages, sections and terms