Design the end-to-end checkout, stock reservation, and payment confirmation architecture for a flash drop. Detail capacity sizing, hot-key sharding or token-bucket reservations, idempotency keys across retries, transactional outbox/saga orchestration, and operational telemetry.
Traffic Profile45k RPS read burst, 6.5k RPS checkout attempts, 93:7 read-to-write ratio
Target SLOs & Invariantsp99 reservation < 140ms, 99.99% checkout availability, strict zero-oversell invariant
Non-Negotiable Failure & Scale Constraints:1. Single hot SKU cannot serialize all 6,500 concurrent checkout transactions onto one PostgreSQL row lock.2. Payment gateway calls exhibit p99 tail latency up to 4.5s and intermittent 504 timeouts after capture.3. Abandoned cart holds must expire deterministically within 8 minutes without leaking reserved stock.