100K QPS Order System: The Cache, ES, and MQ Gauntlet — Lessons from a Live Meltdown
Most high-concurrency systems fail not from single-component overload but from the interaction of cache, search, and messaging under peak load — exactly the coupled failure this playbook addresses. The catch-up and degradation patterns here transfer directly to any read-heavy transaction platform that can't afford to lose order, payment, or inventory events.
During last year's big sale, an order center hit 100,000 QPS. The incident chain was classic: ES deep pagination consumed coordinator node memory, MQ backlogged 4.8 million messages, and delayed points triggered a customer-service firestorm. The post-mortem produced a complete architecture playbook that treats MySQL as the single source of truth, with Redis and ES as derived views and MQ as the event bus.
The read path leans on a four-layer cache — Nginx, Caffeine, Redis Cluster, MySQL — with hot-key detection, Bloom filters, null sentinels, logical expiry, and single-flight rebuilds. The consistency rule is simple: update DB first, then delete cache, with Outbox and binlog fallback. ES is positioned strictly as a query view that returns order IDs, not a second database; deep pagination moves to search_after with PIT, and routing, filters, and wide-table mapping cut P99 to under 100ms.
For MQ backlogs, the article lays out a minute-level SOP: stop the bleeding, expand parallelism only after confirming downstream capacity, use temporary Topic flood discharge, and rely on idempotency, version guards, and reconciliation. The deeper lesson is that every optimization must respect downstream capacity, and the foundation — Outbox, idempotency, reconciliation — determines whether any high-performance scheme amplifies or contains failure.
The article makes a strong case that high-concurrency defense is less about adding components and more about constraining where traffic is allowed to fall — DB only sees misses, ES only finds IDs, MQ only absorbs pulses.
Logical expiry is a trap for strong-consistency fields: using it on order details caused business complaints, so the article insists on field-graded consistency rather than blanket strategies — a distinction many teams miss.
The temporary Topic flood discharge is notable because it decouples the two bottlenecks: the forwarding consumer does zero I/O, so the new partition count actually becomes the only constraint; this is the real secret behind the 8x speed-up.
The insistence that 90% of backlogs come from slow consumers, not slow MQ, suggests many teams prematurely blame infrastructure when the real issue is synchronous RPC and slow SQL in the handler.
The article's claim that fast ES queries are designed, not tuned — via wide table, routing, filter, search_after — challenges the common practice of trying to fix performance by scaling shards or nodes.
The priority ranking — MQ reliability over ES deep pagination over cache — reflects a mature understanding that data loss and search death are worse than cache slowness, a perspective often absent in performance-first engineering cultures.
This good of an article gets so few views, you can see how the industry has withered by now.
People are just busy, haha.