High-stakes Staff/Senior System Design interview and production trade-offs anchored to Apache Kafka, PostgreSQL, Stripe, Debezium, Redis, and AWS Builders Library.
Storing financial ledger balances where zero committed-transaction loss is required across sudden node crashes
Paginating a live 50M-row activity feed where new rows insert continuously and users scroll deeply
High-value billing updates must never vanish if a cache node crashes 200ms after acknowledging HTTP 200
Syncing millions of Postgres mutations—including hard `DELETE`s—to Elasticsearch and Kafka with sub-second latency and minimal DB CPU impact
Ensuring two workers cannot concurrently overwrite a shared storage object if Worker A pauses for a 15-second GC stop-the-world while its lock TTL expires
Updating an Orders table and publishing an OrderCreated event to Kafka without risking partial failures where one succeeds and the other crashes
Users edit their account settings and immediately reload the page, complaining their changes vanished due to 400ms replica lag
Coordinating a checkout flow across independent Order, Inventory, and Payment microservices with distinct databases and third-party APIs
A mobile checkout client retries a POST /charge call after a 504 Gateway Timeout while the upstream payment processor may have already succeeded
Enforcing a strict 100 req/min API quota so a bursty client cannot push 200 requests through in 2 seconds across a minute boundary
Downstream database latency spikes 10x during a flash sale and upstream API threads exhaust memory while clients hammer retries
A hot homepage key cached for 60s expires during peak traffic, causing 5,000 concurrent requests to miss cache simultaneously and crush the database
Scaling a 10-node distributed cache cluster to 11 nodes without triggering a near-100% cache miss storm
A malicious scraper sends 50,000 req/sec for random non-existent product IDs, bypassing Redis cache-aside and saturating PostgreSQL