{"slug": "doordash-scales-dispatch-10x-while-maintaining-99-99-peak-availability", "title": "DoorDash Scales Dispatch 10x While Maintaining 99.99% Peak Availability", "summary": "DoorDash rebuilt its real-time dispatch platform as a distributed architecture separating a stateful coordinator from stateless compute workers, achieving 10x higher throughput and more than 99.99% availability during peak periods, the company's engineering team reported. The legacy monolithic engine had roughly quadratic time complexity and faced peak demand approaching four times its processing capacity, forcing fallback heuristics and assignments based on incomplete information. The new platform, validated through shadow testing and switchback experiments, completes more than 99.96% of runs within 20 seconds and held above 99.99% availability on Super Bowl Sunday despite a 10% week-over-week rise in peak volume, while running machine learning and reinforcement learning models within dispatch workflows.", "body_md": "DoorDash has [rebuilt its real-time dispatch platform to handle growing delivery demand](https://careersatdoordash.com/blog/how-doordash-built-a-next-generation-real-time-dispatch-platform/), 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.\n\nThe 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.\n\nAs the DoorDash engineering team explained:\n\nThe fatal bottleneck wasn't just raw machine capacity; it was the speed of reality.\n\nRather than address the bottleneck through conventional horizontal scaling, DoorDash redesigned the execution model around two independently scalable tiers. The engineering team described the motivation:\n\nTo scale into the future, the system didn't just need more capacity; it demanded a fundamentally new execution model.\n\nThe 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.\n\nThe coordinator distributes localized portions of logistics data to workers using payload sharding over [gRPC](https://grpc.io/). 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.\n\n*Evolution from DoorDash's monolithic dispatch engine to its distributed architecture (Source: [DoorDash Blog Post](https://careersatdoordash.com/blog/how-doordash-built-a-next-generation-real-time-dispatch-platform/))*\n\nThe 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.\n\nDoorDash 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.\n\n*Shadow testing compares legacy and new dispatch outputs (Source: [DoorDash Blog Post](https://careersatdoordash.com/blog/how-doordash-built-a-next-generation-real-time-dispatch-platform/))*\n\nDoorDash 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.\n\nThe architecture also introduces a hybrid L1/L2 model serving. Latency-sensitive inference runs locally within compute workers using [ONNX Runtime](https://onnxruntime.ai/), 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.\n\nDoorDash 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](https://arxiv.org/abs/2606.13604) on Reinforcement Learning from World Feedback.", "url": "https://wpnews.pro/news/doordash-scales-dispatch-10x-while-maintaining-99-99-peak-availability", "canonical_source": "https://www.infoq.com/news/2026/11/doordash-dispatch-redesign/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global", "published_at": "2026-11-25 14:44:00+00:00", "updated_at": "2026-11-25 15:15:53.786781+00:00", "lang": "en", "topics": ["machine-learning", "ai-infrastructure", "mlops"], "entities": ["DoorDash", "gRPC", "ONNX Runtime"], "also_reported_by": [], "takeaway": "Splitting dispatch into a stateful coordinator and stateless workers that receive sharded logistics payloads over gRPC, plus hierarchical decomposition into geographic clusters, delivered 10x throughput and over 99.99% peak availability versus a monolithic engine whose quadratic algorithms hit four ", "recommendation": {"advice": "Before cutting over a rewritten dispatch or inference system, duplicate production requests through shadow testing, confirm parity on quality and latency, then roll out with switchback experiments and fallback to the legacy path.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/doordash-scales-dispatch-10x-while-maintaining-99-99-peak-availability", "markdown": "https://wpnews.pro/news/doordash-scales-dispatch-10x-while-maintaining-99-99-peak-availability.md", "text": "https://wpnews.pro/news/doordash-scales-dispatch-10x-while-maintaining-99-99-peak-availability.txt", "jsonld": "https://wpnews.pro/news/doordash-scales-dispatch-10x-while-maintaining-99-99-peak-availability.jsonld"}}