跳到正文
InfoQ· Leela Kumili·· 37 分鐘前AI 評分58

DoorDash 調度平台吞吐量提升 10 倍,高峯可用性逾 99.99%

DoorDash Scales Dispatch 10x While Maintaining 99.99% Peak Availability

AI 導讀

DoorDash 重構即時配送調度平台,以管理物流狀態的協調器配合無狀態計算工作者,將協調與最佳化計算分離,吞吐量提升 10 倍。超過 99.96% 的執行在 20 秒內完成;在 Super Bowl Sunday,高峯量較前一週增加 10% 時,可用性仍超過 99.99%。平台亦在計算工作者內本地執行低延遲推理,並以多智能體強化學習按個別商店的市場回饋動態調整調度目標權重。

正文

DoorDash has rebuilt its real-time dispatch platform to handle growing delivery demand, replacing a monolithic optimization engine with a distributed architecture that separates coordination from computation. The redesign delivers 10 times higher throughput and more than 99.99% availability during peak periods, while enabling the company to run machine learning and reinforcement learning models within dispatch workflows.

The previous dispatch engine tightly coupled business logic, logistics state management, and computationally intensive routing algorithms. As delivery volume increased, its optimization workload became increasingly difficult to process within the time available for dispatch decisions. The underlying algorithms had roughly quadratic time complexity, and during peak periods, demand approached four times the system's processing capacity. The engine consequently relied on fallback heuristics and sometimes made assignment decisions using incomplete information.

As the DoorDash engineering team explained:

The fatal bottleneck wasn't just raw machine capacity; it was the speed of reality.

Rather than address the bottleneck through conventional horizontal scaling, DoorDash redesigned the execution model around two independently scalable tiers. The engineering team described the motivation:

To scale into the future, the system didn't just need more capacity; it demanded a fundamentally new execution model.

The new platform separates execution into two independently scalable tiers. A stateful coordinator manages dispatch lifecycles, maintains global logistics state, and validates business rules. Stateless compute workers handle mathematical optimization, vehicle-routing heuristics, and model inference.

The coordinator distributes localized portions of logistics data to workers using payload sharding over gRPC. This avoids broadcasting the entire global state to every worker and reduces network overhead. Workers process their assigned optimization tasks independently, while the coordinator manages orchestration and result aggregation.

Evolution from DoorDash's monolithic dispatch engine to its distributed architecture (Source: DoorDash Blog Post)

The redesign addresses computational complexity through hierarchical decomposition. Rather than solving one global optimization problem, the coordinator partitions logistics data into geographic clusters and delivery trajectories. Workers process smaller problems in parallel, and a reconciliation layer combines results across partitions.

DoorDash used shadow testing before directing live dispatch decisions to the new platform. Production requests were duplicated, with the legacy engine determining assignments while the new platform's outputs were logged for comparison. Teams evaluated matching quality, delivery times, and resilience under load. After establishing parity, they used controlled switchback experiments and fallback mechanisms during rollout.

Shadow testing compares legacy and new dispatch outputs (Source: DoorDash Blog Post)

DoorDash reports a tenfold increase in dispatch throughput, with more than 99.96% of runs completing within 20 seconds. During Super Bowl Sunday, the platform maintained more than 99.99% availability despite a 10% week-over-week increase in peak volume.

The architecture also introduces a hybrid L1/L2 model serving. Latency-sensitive inference runs locally within compute workers using ONNX Runtime, avoiding remote procedure call overhead. More complex evaluations use isolated remote model-serving clusters, keeping heavier workloads away from the coordinator's state-management path.

DoorDash has also deployed multi-agent reinforcement learning to dynamically adjust dispatch objective weights based on localized marketplace feedback, including merchant congestion and courier utilization. The agents adapt the trade-off between delivery speed and batching efficiency at individual stores. The approach was evaluated through production switchback experiments and accepted at the ICML 2026 Workshop on Reinforcement Learning from World Feedback.

About the Author

Leela Kumili

Show moreShow less

來源:InfoQ · infoq.com