How to Solve System Design
System design case study for Astro Q-Commerce โ 11 cases from flash sale to dynamic pricing with Go implementations.
Astro Q-Commerce โ 11 Case Studies
Q-commerce has unique constraints: real-time inventory, geo-serviceability, driver dispatch, low latency. Case studies use Astro & Klik Indomaret as context.
- Astro Q-Commerce โ 11 Case Interviews โ 11 complete system design cases: flash sale, inventory, geo, dispatch, ETA, checkout saga, promo engine, search, tracking, forecasting, dynamic pricing. All with Go examples.
- Flash Sale System Design โ Redis stock partitioning, waiting room, rate limiter, anti-bot
- Real-time Inventory per Dark Store โ Reservation pattern, oversell prevention
- Geo Serviceability & Hub Assignment โ H3/PostGIS, polygon coverage
- Order Dispatch & Driver Allocation โ Batching, greedy matching, GEOSEARCH
- ETA Estimation โ Picking time + OSRM routing + ML model
- Checkout & Payment Saga โ Orchestration saga, idempotency, outbox
- Promo & Voucher Engine โ Rule engine, atomic counter, anti-fraud
- Search & Catalog โ Elasticsearch + Redis stock filter per-hub
- Real-time Order Tracking โ WebSocket GPS, Kalman filter, pub/sub
- Demand Forecasting โ Holt-Winters, cold-start, FEFO
- Dynamic Delivery Fee โ Signal-based pricing, surge detection
References
- System Design Interview โ An Insider's Guide (Alex Xu) โ The essential system design interview book. Vol 1 & 2 cover frameworks, real-world case studies, and architecture deep dives.
- ByteByteGo โ System design learning platform by Alex Xu. Newsletter, video courses, and architecture diagrams that are industry standard.
Edit on GitHub
Last updated on