How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache

Cloudflare engineers restructured the 1.1.1.1 DNS cache, cutting per‑entry memory by over 50% and freeing roughly 100 TB across their fleet. Benchmarks show a 43% insert‑throughput boost and 19% lower lookup latency, confirming faster, leaner caching at scale.

Cover image for How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache