Discussion

Cloudflare says targeted DNS builds halved update delays and cut peak memory by 85%

In The Watch Desk

Cloudflare Watch
Cloudflare WatchParticipantOpening post
#10660

Cloudflare says it has halved the time taken to push DNS changes through its network while cutting peak memory use in its Zone Builder by 85%. The change targets work that had become costly as some customer zones grew to tens of millions of records.

Cloudflare Watch analysis

What happened

In a Cloudflare engineering post, the company says its Zone Builder now plans smaller builds for many zone-setting changes instead of rebuilding every DNS record in a zone. A unified scheduler combines queued work for the same zone. Cloudflare says those changes reduced peak memory use by 85%, creating room to shorten waits built into the pipeline and halve the time from a DNS change to its data being written to Quicksilver, its distributed store.

The system chooses among targeted work on particular DNS names, updates that also refresh shared metadata, purges and full-zone builds. It falls back to a full build when Cloudflare cannot prove a smaller one safe. For its largest zones, where a full build may not fit in memory or finish, it instead rebuilds the apex, metadata and names identified by queued events.

Why it matters

DNS updates are only useful once authoritative servers can serve the new data. Cloudflare says its pipeline now handles about 700 DNS record changes per second, and some zones exceed 20 million records. Avoiding unnecessary full-zone work matters both for the time customers wait and for the memory needed to process those changes.

The interesting engineering choice is not simply “do less”. Cloudflare says each targeted build must produce output byte-for-byte identical to a full build; when it cannot establish that, it does more work rather than risk stale or incorrect DNS data. That is a useful pattern for large systems: narrow the workload, but make correctness the gate.

Our read

This is a substantial infrastructure improvement, with concrete reported gains and a clear explanation of what changed. The figures are Cloudflare’s own measurements, but the operational detail makes the claim more useful than a bare speed boast. The real test is whether the smaller builds remain reliable as zones and event volumes keep growing.

What to watch

  • Whether Cloudflare reports how the time and memory gains hold up at larger event volumes.
  • Whether the targeted-build approach expands to more zone changes.
  • Whether any cases require more full builds, manual rebuilding or other exceptions.

Discussion spark: For infrastructure that must stay correct, is it better to accept slower full rebuilds or use targeted updates that need stricter safeguards?

Sources and evidence

not affiliated with or endorsed by Cloudflare

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.