logo

Migrating billions of records: moving our active DNS database while it’s in use

ID: ff98b8ae-0d5c-557f-bc35-9953d5c1e7c1

STIX ID: report--ff98b8ae-0d5c-557f-bc35-9953d5c1e7c1

Feed Name: Cloudflare Blog

Date Published: 2024-10-29

Date Updated: 2026-04-27

Author: Alex Fattouche

...
...

Cloudflare details how it migrated billions of DNS records from a shared Postgres cluster to a dedicated, partitioned dnsdb using a gRPC-based DNS Records API, a trigger-driven change data capture pipeline with audited batch application, and a migration manager to lock and switch writes for a near-zero-downtime cutover and bidirectional fallback. The approach combined chunked initial copy, continuous incremental syncing every few seconds, and strict auditing, resulting in significantly reduced load on the original cluster, higher API throughput, lower CPU usage, fewer incidents, and improved replica-read consistency controls.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.