Code Room
System designHard
Question
Design the surge/dynamic-pricing system for a ride-hailing platform. It must compute a per-area price multiplier from the live supply (available drivers) and demand (open requests + app-open intent) in that area, update every ~30s, stay stable enough to not whiplash riders, and be explainable/auditable for regulators. Cover the geo-aggregation, the pricing computation, and consistency across the rider/driver views.
What a strong answer looks like
Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts — data model, bottlenecks, consistency, failure modes — and name the trade-offs you are making.
Learn the concepts
Loading whiteboard…
Run or narrate your approach, then ask the coach.