Subscribe free
Morning Merge Architecture · Tuesday, December 1, 20264 min read

DoorDash puts search behind a gateway; EBS goes multi-AZ

Also: GitHub's fan-out code review, CDK guardrails, cgroups that throttle TCP

DoorDash pulled LLM search out of a vendor's API into a gateway it owns, and AWS pushed zone replication down into the EBS volume. Either way, check who holds the knobs.

The main thing

Five water towers pipe into a fuchsia selector valve on a scaffold, which feeds a holding cistern and a large engine, with a drafting compass nearby

DoorDash cut its LLM search-provider costs by more than 98% by taking web search out of the model provider's API and putting it behind a gateway it runs.

The problem was bundling. Native search integrations tie retrieval to the model provider, which limits provider choice, result reuse, retrieval-depth controls and cost visibility.

Decoupled Search Grounding is an MCP-compatible gateway in front of Serper, Bright Data, Firecrawl, Exa and Tavily, plus the native search in OpenAI and Anthropic models. It normalizes every provider's results into titles, URLs and snippets, kept separate from what the model generates.

Each request goes through query normalization, an exact cache, a semantic cache built on embeddings, then provider routing. External searches happen only on a cache miss. If a provider fails or times out, the gateway tries another.

YAML adapters add an HTTP provider without touching application code, and telemetry records provider choice, cache outcomes, retrieval depth, latency and cost.

Per InfoQ's write-up, search-provider costs fell from $7.90 to $0.11 per 1,000 retail queries, excluding model inference. Accuracy was 93.90% against 93.40% for native Google grounding. With a warm cache, the hit rate went from 6.2% to 99.4% and average latency from 4,570 to 1,465 milliseconds.

The caveat is the one caching always brings. Native search still did better on FreshQA, the benchmark for freshness-sensitive questions. DoorDash also lists multi-hop reasoning and third-party provider reliability as open problems.

One HN commenter asked how this differs from running Elasticsearch. It isn't an index.

It's the platform move you'd make for payments or email: when a vendor bundles a capability, you can't cache it, route it or meter it. A gateway gives you all three, plus one more shared dependency in every agent's request path.

What to do: if several of your agents use a model's built-in search, find out how many identical queries you're paying for twice.

EBS moves replication into the volume

A drafting compass beside a scaffold spanning two identical storage vaults on separate brick platforms, joined across the gap by a fuchsia pipe

Amazon EBS now supports multi-Availability Zone volumes. You pick a standby AZ, and EBS synchronously writes your data to both zones through the APIs you already use. AWS quotes a recovery point objective of zero.

The design change is where replication lives. A stateful service on EC2 that had to survive a zone loss used to replicate at the database or application layer, or run on a managed service that did. Now the block device does it underneath, so a single-writer database can keep a zero-RPO copy in another zone without knowing it.

What doesn't move is the decision. You start failover yourself, with one API call, "when you are ready." EBS keeps the copy current, but detecting that a zone is gone and promoting the standby is still yours. The failure detector your database cluster used to own now lives in your runbook or automation, so test it there.

AWS Elastic Disaster Recovery now supports the new volumes, which gives you a layered boundary: multi-AZ for zones, DRS for Regions. After an EBS failover, DRS keeps replicating the same source server from the standby instance. That wording implies compute waiting in the second zone too, so draw the instance into the boundary, not just the disk.

No pricing or write latency figures yet. Every write now waits on a second zone, so measure it on write-heavy volumes before you drop database-level replication.

GitHub's code review fans out

Three magnifying lenses on stands examine one crate on a conveyor under a scaffold, and the fuchsia lens is aimed at a crack in the crate, beside a drafting compass

GitHub rebuilt Copilot code review around several smaller reviewers. GitHub says that at a fixed price, independent reviewers on complementary models often beat one reviewer on a stronger model.

The math is redundancy math. If each reviewer catches a bug with probability p, at least one of n independent reviewers catches it with probability 1 − (1 − p)^n. At p = 0.6, two runs reach 84% and three reach 94%, while cost grows with every run. Latency goes up a little too, since you wait for the slowest reviewer.

The catch is one every architect knows. Repeat runs of one model hit diminishing returns after the third, because each model has blind spots from its training. Same-model reviewers are replicas on the same rack: their failures are correlated. Mixing models is how GitHub buys independence.

Quick bits

CDN77 traced slow downloads to TCP throttling by the socket's cgroup. Some nginx connections slowed for hours while curl ran fine. A bpftrace probe showed rcv_ssthresh pinned at four times the advertised MSS, a memory-pressure path, though global counters read zero, because the TCP check also looks at the socket's cgroup. A per-service memory boundary can cap network throughput, and host metrics won't show it.

CloudFormation and CDK added 88 AWS-managed proactive controls that catch deploys that would delete data or disrupt a running application. AWS built them from checks it runs on its own infrastructure, and pitches them at agents that deploy as much as at people. Deploy-time guardrails matter more once something that never read your incident reviews can change your stacks.

EBS Adaptive Volumes bill for the data you store, not the size you provision. gp3a and io2a price performance separately, and gp3a has no baseline IOPS. TRIM is on by default, so deletes lower the bill. Headroom you provision for growth no longer costs storage money.

Before you add a replica, a reviewer or a search provider, check that its failures are actually independent.

← All Morning Merge Architecture issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →