Question
Design the fleet-rebalancing system for a dockless e-scooter/bike-share operation with ~30k vehicles in a city. Vehicles drift to where riders leave them, creating oversupplied and undersupplied zones; you must decide which vehicles to move where (by ops crews or incentives) to maximize availability where demand will be, while respecting low-battery vehicles needing pickup and regulatory caps per zone. Describe how you partition the city and measure supply/demand, how you predict near-future demand, how you formulate the rebalancing decision, and the trade-off between chasing predicted demand and operational cost.
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.