Flash Sale Engineering
summary
Engineered a queuing layer in the load balancer using Nginx + OpenResty Lua, a per-LB leaky bucket that only admits a calculated share of global checkout throughput (example capacity ~16), and a timestamp cookie plus a PID lag eliminator that shifts priority so early arrivals get served first. Back pressure is served as a cached throttle page with background polling, and end-to-end load tests cut p95 queue time from roughly the sale duration (~30 minutes) to a few minutes.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:28Flash Sales
- 2:26Urban Outfitters
- 3:02Notable Flash Sellers on Shopify
- 4:12Overview of How Shopify Works
- 9:15Feedback System
- 16:31Lag Indicator
related talks
42mA Commerce-centric Approach to Queuing Fairly at High Throughput
41mLoad Balancing Roundup
42mPredictive Load-Balancing: Unfair but Faster & more Robust
47mFrom Legacy to High-Load: Evolution of a Web Application
38mA Practical Look at Performance Theory
50mBuilding and Operating Online Shops under Extreme Load
42mStop Rate Limiting! Capacity Management Done Right
19mCome Hell or Still Water: Alleviating Tail Latency in Cloud Block Store
