How we halved DNS build delay and cut memory use by 85%
Photo: The National Archives (UK) / CC BY 3.0 · via Wikimedia CommonsEditorial summary · not verbatim

Cloudflare has described a planner for DNS zone builds that selects the smallest safe build rather than rebuilding an entire zone whenever a setting changes. In its account, changes previously triggered full rebuilds even on zones holding tens of millions of records, and the new approach cut full builds by 40%, peak memory by 85% and build delay by half.

advertisement

The planner's job is dependency analysis. It works out which records a change can affect, then rebuilds only the portion that must change while leaving the rest of the zone untouched. Determining what is safe to skip is the hard part, because a DNS error is visible to every user of a domain and the cost of being wrong is high.

Memory was the binding constraint. Building a zone in memory requires holding structures proportional to its record count, and doing that for many large zones at once produced spikes that limited how quickly changes could be applied. Halving build delay is therefore not just a latency improvement but a capacity improvement, since the same hardware can serve more changes.

DNS rarely attracts attention until it fails, yet it sits in front of nearly every request a company serves. Engineering write-ups like this one are valuable precisely because the work is invisible: the system behaves as it always did, only faster and with more headroom, which is the kind of improvement that never appears in a release note.

The generalisable lesson is that incremental computation beats brute force when state is large and changes are small. Whether the same approach transfers to other configuration systems depends on how easily dependencies can be proven safe, and that is a question each platform has to answer for itself. What is safe to skip, and what is not, remains a judgment call that no plan can automate.

Source & provenance

Original headline: How we halved DNS build delay and cut memory use by 85%
Publisher: Cloudflare Blog · Published: November 2, 2026

This page is an original English summary written for Gridline Cloud. It is not a verbatim reproduction and does not claim to represent the full article. Headline, publication date and link were collected from the publisher's RSS feed.

Cover photograph: A view of the server room at The National Archives.jpg by The National Archives (UK), licensed CC BY 3.0, via Wikimedia Commons.

Read the original at Cloudflare Blog →