Marketplace, Dispatch, and Logistics System Design Questions

Designing two-sided marketplaces and real-time operational platforms end to end, where the domain shapes the architecture: rider/driver and order/courier matching and dispatch (batched vs greedy assignment, single-assignment guarantees, re-matching, pooling), order, booking and inventory flows (holds, double-booking prevention, quote-to-checkout price honoring), surge and dynamic pricing systems (demand/supply signals, damping, caps and fairness controls, pricing rules), ETA and routing services (road graphs, time-dependent weights, map-matching, traffic fusion, degraded modes), proximity-driven matching over moving supply (geo-partitioned matchers, hotspot rebalancing, boundary effects), and real-time location tracking. Covers the canonical ride-hailing, food/parcel delivery, and booking marketplace case studies and the consistency, latency, and scale challenges they share. Generic building blocks used by these designs (caching, rate limiting, sagas, stream-processing internals, spatial index primitives, observability, deployment) are covered by their own topics.

MediumTechnical
77 practiced

Compare spatial partitioning strategies for distributed matching: fixed grid bucketing, geohash sharding, and Voronoi (dynamic) partitions. For each approach discuss load balancing, handling mobile entities crossing boundaries, rebalancing cost, and how it affects match quality and latency in peak demand.

MediumTechnical
83 practiced

Design the matching logic for pooled/shared rides (ride-pooling) where one driver can serve multiple riders with overlapping routes. Describe constraints (max detour, ETA increase), a scoring function, and how to quickly generate feasible multi-stop itineraries at scale. How does this change the candidate retrieval and state model compared to single-rider matching?

MediumTechnical
87 practiced

You're asked to choose between eventual and strong consistency for the flow: create-order -> payment -> driver-assignment. Discuss trade-offs for choosing each, and propose a hybrid design that ensures payment correctness while minimizing user-visible anomalies during assignment (e.g., double-assignments or incorrect status shown to users).

HardSystem Design
69 practiced

Design a multi-region ride-matching architecture for global service: support active-active across 3 regions, preserve low-latency matching, and offer cross-region failover. Discuss data partitioning, leader election for assignments, conflict resolution if same driver appears in two regions, and expected replication strategy for indexes and metadata.

HardTechnical
80 practiced

Technical coding: Provide high-level pseudocode to set up a bipartite graph between drivers and riders, compute an approximate min-cost max-flow using an existing library, and handle timeouts by returning a valid partial assignment. Describe API inputs/outputs and complexity considerations for real-time use.

Unlock Full Question Bank

Get access to all 40 Marketplace, Dispatch, and Logistics System Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.