---
title: "DoorDash splits coordination and compute: 10x and 99.99% | Daniel Segovia"
description: "DoorDash rebuilt dispatch by splitting coordination from compute. 10x throughput and 99.99% at peak. What can we copy without blowing our SLAs?"
url: https://danielsegovia.com/en/architecture/doordash-splits-coordination-compute-10x-9999/
lang: en
author: "Daniel Segovia"
published: 2026-11-26T21:25:00.000Z
modified: 2026-11-26T13:04:20.294Z
section: "Architecture"
---

1.  [Home](https://danielsegovia.com/en/)
2.  [Architecture](https://danielsegovia.com/en/architecture/)
3.  DoorDash splits coordination and compute: 10x and 99.99%

# DoorDash splits coordination and compute: 10x and 99.99%

[Architecture](https://danielsegovia.com/en/architecture/) New By [Daniel Segovia](https://danielsegovia.com/en/about/) · November 26, 2026 · 3 min read

DoorDash rebuilt dispatch by splitting coordination from compute. 10x throughput and 99.99% at peak. What can we copy without blowing our SLAs?

In this post

1.  [What happened](#what-happened)
2.  [Why it matters](#why-it-matters)
3.  [Concrete ideas I’d apply](#concrete-ideas-i-d-apply)
4.  [Risks and trade‑offs](#risks-and-trade-offs)

DoorDash went back to the whiteboard and rebuilt its dispatch engine by cleanly separating coordination from computation. With that split, plus hierarchical decomposition and gRPC payload sharding, they report 10x throughput and 99.99%+ availability at peak. They also run local ONNX inference and use multi‑agent reinforcement learning to tune objectives in real time.

## What happened

The previous engine was a big block: business rules, global state and heavy algorithms tangled together. Under peak load, near‑quadratic complexity and reality moving faster than CPUs pushed them into emergency heuristics.

The new design separates into two independently scalable tiers:

-   Stateful coordinator: orchestrates dispatch lifecycle, maintains global logistics state, validates rules.
-   Stateless workers: run optimization, routing heuristics and model inference.

To cut network noise, the coordinator shards and sends localized slices of data to each worker over gRPC instead of blasting the whole world to everyone. Complexity is addressed by partitioning into geographic clusters and trajectories; workers solve smaller pieces in parallel and results are reconciled.

Migration used shadow testing: duplicate traffic, compare outputs, measure match quality, timings and resilience; then controlled switchbacks and fallbacks. Reported outcomes: 10x throughput; over 99.96% of runs finish within 20 s; on Super Bowl Sunday they held 99.99%+ availability with a 10% week‑over‑week peak increase.

They also split model serving in two layers: latency‑sensitive inference runs inside workers with ONNX Runtime; heavier evaluations go to remote isolated model clusters, away from the state‑management path.

## Why it matters

The lesson isn’t just “add more boxes.” It’s designing for the speed of reality: isolate orchestration from numeric muscle, minimize fan‑out, and parallelize where it hurts. Keep the state path clean from heavy ML; the ML that stays in the hot path must add value in milliseconds. On top of that, multi‑agent reinforcement adjusts weights using local signals (merchant congestion, courier utilization) to balance speed and batching without breaking the marketplace.

## Concrete ideas I’d apply

-   Separation of concerns: a stateful brain deciding *what*, many stateless arms computing *how*. Each scales and fails differently.
-   Payload sharding: ship only what each job needs. Fewer bytes, less mental lock‑contention for workers.
-   Hierarchical decomposition: slice by geography/affinity, solve local, reconcile global. Hitting “good enough” fast wins.
-   Deterministic caching (my go‑to): cache by `snapshot_id` or data window, keep functions pure with explicit inputs and idempotency. You can repeat, compare and degrade without surprises.
-   Graceful degradation by time budget: at X ms return the best partial plan; past deadline, fall back to a simple heuristic. A good plan now beats a perfect plan never.
-   Two‑tier ML: L1 on‑box with lightweight runtimes for features that close decisions; L2 remote for heavy stuff, off the critical path.
-   Roll out with a net: shadow testing, switchbacks and quality KPIs (not just latency). If matching drops, roll back.
-   Backpressure and circuit breakers at the coordinator: when the system gets punchy, protect state and sacrifice compute.

## Risks and trade‑offs

-   The coordinator becomes critical: real HA, consensus and sturdy storage or you just built a hidden monolith.
-   Bad partitioning hurts fairness: poorly defined clusters bias assignments. Track drift and adjust boundaries dynamically.
-   Deterministic caches with aggressive TTLs or stale snapshots can harm UX. Observability first.

My take: split coordination from compute, then decompose and cache deterministically to buy throughput and availability without burning your SLA. Next, be picky about which ML lives in the hot path. And measure quality, not just timings.

Which degradation trick saved you more often: time budgets, precomputed top‑K, or trusty old heuristics?

PS: if your “coordinator” also crunches routes, trains models and brews coffee, it’s not a coordinator; it’s a monolith with a new haircut.

## Tags

-   [#DoorDash](https://danielsegovia.com/en/tags/doordash/)
-   [#Architecture](https://danielsegovia.com/en/tags/architecture/)
-   [#Distributed systems](https://danielsegovia.com/en/tags/distributed-systems/)
-   [#Caching](https://danielsegovia.com/en/tags/caching/)
-   [#Machine Learning](https://danielsegovia.com/en/tags/machine-learning/)

[See all tags →](https://danielsegovia.com/en/tags/)

## Related posts

-   [Cloudflare toggle for AI-agent search, and you pay the bill](https://danielsegovia.com/en/architecture/cloudflare-toggle-ai-agent-search-cost-privacy/)
    
    Cloudflare added a toggle for AI agents to search your site. You pay the query bill. Good DX, new risks to budgets and privacy. Add access controls and limits.
    
    3 min read
-   [AWS Lambda: orchestrating MicroVMs with Durable Functions](https://danielsegovia.com/en/architecture/aws-lambda-durable-functions-microvms-orchestration/)
    
    AWS previews MicroVM orchestration in Lambda durable functions. Run untrusted or agent code in VM-isolated sandboxes within year-long serverless flows.
    
    3 min read
-   [AWS Lambda doubles max timeout to 30 minutes: what changes](https://danielsegovia.com/en/architecture/aws-lambda-max-timeout-30-minutes/)
    
    AWS raises Lambda’s limit to 30 minutes across regions. Great for long jobs, but it shifts concurrency, cost, and orchestration. What to revisit.
    
    3 min read

## More categories

-   ### [Tutorials](https://danielsegovia.com/en/tutorials/)
    
    [How to create a TypeScript Lambda with AWS SAM](https://danielsegovia.com/en/tutorials/create-typescript-lambda-aws-sam/)
    
    How to create a TypeScript Lambda with AWS SAM. Initialize the project, compile with esbuild, test locally, and deploy to AWS in minutes without pain.
    
    New 5 min read
    
-   ### [News](https://danielsegovia.com/en/news/)
    
    [Huawei speeds chip design; Nvidia slows ASEAN server flows](https://danielsegovia.com/en/news/huawei-speeds-chip-design-nvidia-slows-asean-servers/)
    
    Huawei pushes its homegrown chip-design stack while Nvidia halts AI server shipments in ASEAN. If you bet on one vendor, map risk and ship a plan B.
    
    New 3 min read
    
-   ### [Artificial Intelligence](https://danielsegovia.com/en/artificial-intelligence/)
    
    [OpenAI/Anthropic lock data; China turns to Google and Meta](https://danielsegovia.com/en/artificial-intelligence/openai-anthropic-lock-data-china-google-meta/)
    
    OpenAI and Anthropic restricted data and Chinese players look to Google and Meta. Time to harden pipelines: clear licenses and a data plan B.
    
    New 3 min read
    
-   ### [Security](https://danielsegovia.com/en/security/)
    
    [GoodGuys phishing mimics brands to steal Google/Okta](https://danielsegovia.com/en/security/goodguys-phishing-google-okta-paid-interviews/)
    
    GoodGuys lures with paid interviews to steal corporate Google/Okta creds. Active since October. Priorities: FIDO MFA, phishing drills, and tight SSO control.
    
    New 3 min read
    
-   ### [Architecture](https://danielsegovia.com/en/architecture/)
    
    [Cloudflare toggle for AI-agent search, and you pay the bill](https://danielsegovia.com/en/architecture/cloudflare-toggle-ai-agent-search-cost-privacy/)
    
    Cloudflare added a toggle for AI agents to search your site. You pay the query bill. Good DX, new risks to budgets and privacy. Add access controls and limits.
    
    New 3 min read
    
-   ### [Business](https://danielsegovia.com/en/business/)
    
    [AI infrastructure spend could hit $1T in 2026: now what](https://danielsegovia.com/en/business/ai-infrastructure-spend-2026-1t/)
    
    AI infra investment could reach $1T in 2026. With a $1.8T funding gap through 2030, it’s time to lock budgets, renegotiate contracts and squeeze unit costs.
    
    New 3 min read

---

Sitio: https://danielsegovia.com/ · Índice para agentes: https://danielsegovia.com/llms.txt · Sitemap: https://danielsegovia.com/sitemap.xml
