Serverless patterns: FaaS (AWS Lambda + API Gateway + DynamoDB + Aurora via RDS Proxy), event-driven (S3 → SQS → Lambda batch with DLQ), Step Functions orchestrated saga (ChargeCard → ReserveInventory → Compensate Refund), EventBridge cron, Cloudflare Workers at the edge with KV + D1 + Durable Objects, Cloud Run container serverless. Covers cold start vs warm pool vs provisioned concurrency, RDS Proxy connection pooling, anti-pattern of Lambda + direct RDS connection storm. Includes ADR on serverless vs containers vs k8s cost/scale crossover.
Serverless removes server fleet management from the application team; it does not remove invocation types, retry policy, concurrency limits, durable state or data consistency. Draw the event source, queue, function, idempotency record, business store and failed-event destination as separate boundaries.
D1 writes go to one primary. Read replicas update asynchronously. The Sessions API uses bookmarks to provide sequential consistency for the logical session; it is not blanket global strong consistency for arbitrary clients. Carry the bookmark across requests when read-your-writes matters.
Введите числа или выберите пресет