Failures and scaling
What happens when SES, the database or your webhook fails, and how Mail grows.
Failures
| What fails | What happens |
|---|---|
| SES throttles or errors | e-mails stay queued and are retried with backoff for 24 hours; nothing is lost |
| The database | the API answers 503; the SMTP relay answers 451 (try later), which SMTP clients retry on their own |
| The event receiver | events wait in SQS for up to 14 days; after repeated failures they go to the dead-letter queue and an alarm fires |
| Your webhook | retries for 24 hours, then undelivered and replayable |
| The sender is stopped | the queue grows and drains when it starts again, in order per project |
| A bad template version | sends 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.
emailsandemail_eventsare 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.