How to Solve System Design
System design case study untuk Astro Q-Commerce โ 11 case dari flash sale sampai dynamic pricing dengan implementasi Go.
Astro Q-Commerce โ 11 Case Studies
Q-commerce punya constraint unik: real-time inventory, geo-serviceability, driver dispatch, latency rendah. Case study utama pakai Astro & Klik Indomaret sebagai konteks.
- Astro Q-Commerce โ 11 Case Interview โ 11 case system design lengkap: flash sale, inventory, geo, dispatch, ETA, checkout saga, promo engine, search, tracking, forecasting, dynamic pricing. Semua dengan contoh Go.
- 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
Referensi
- System Design Interview โ An Insider's Guide (Alex Xu) โ Buku wajib system design interview. Vol 1 & 2 mencakup framework, real-world case studies, dan deep dive arsitektur.
- ByteByteGo โ Platform learning system design oleh Alex Xu. Newsletter, video course, dan diagram arsitektur yang jadi standar industri.
Edit on GitHub
Last updated on