Cloudflare halves DNS build delay, cuts memory use 85%
Cloudflare built a planner that rebuilds only affected DNS zones instead of entire zones, slashing resource consumption.
What to know
- Cloudflare reduced DNS rebuild time by 50% and peak memory usage by 85% through targeted zone rebuilds instead of full zone rebuilds.
- The optimization cuts unnecessary full rebuilds by 40% using a planner that selects the smallest safe build needed when settings change.
- The work reflects Cloudflare's broader engineering culture prioritizing efficiency gains in infrastructure software.
Cloudflare's optimization work reflects a strong engineering culture that deserves recognition.
-
“Cloudflare always had a pretty strong culture around optimisation. If you go back and read the blog there are a lot of blogs about reducing CPU, latency, RAM, etc. through software.”
jgrahamc · Hacker News ↗
Efficiency optimizations like this have limited business ROI except for large-scale infrastructure companies.
-
“It is a pretty small niche of companies where compute resource efficiency on the server side has a meaningful business bottom line impact.”
colechristensen · Hacker News ↗
Poor software optimization is widespread across applications, particularly those built with Electron.
-
“I just got angry this weekend about my Mac with 64GB of RAM going OOM because of poorly optimized applications. Use of web tech, especially Electron, was common among basically all of the offending applications.”
placatedmayhem · Hacker News ↗
Cloudflare DNS infrastructure providerAlex Fattouche Cloudflare author
How it unfolded 2 developments, newest first · click a bar or a number to jump articlespostscomments
-
2
Post gains attention on Hacker News
The Cloudflare blog post reached Hacker News frontpage with 175 points and 70 comments, drawing discussion about the optimization effort and its broader implications.
“Cloudflare always had a pretty strong culture around optimisation. If you go back and read the blog there are a lot of blogs about reducing CPU, latency, RAM, etc. through software. It's one of the key features of how Cloudflare has been successful and an important part of succeeding in today's world.”
— jgrahamc, Former Cloudflare CTO · source -
>Curious what the R&D / efficiency development ROI is on reducing memory footprint. I suppose we should both consider current ROI and near future ROI (as the price of memory will likely stay high for at least another 1-2 years).It is a pretty small niche of companies where compute resource efficiency on the server side has a meaningful business…
2 more of the top 3 · 8 posts in this stretch
-
Cloudflare always had a pretty strong culture around optimisation. If you go back and read the blog there are a lot of blogs about reducing CPU, latency, RAM, etc. through software. It's one of the key features of how Cloudflare has been successful and an important part of succeeding in today's world.Source: I was Cloudflare's CTO.
-
I have been wondering if the memory scarcity would lead to a desire to optimize software to be more efficient.Curious what the R&D / efficiency development ROI is on reducing memory footprint. I suppose we should both consider current ROI and near future ROI (as the price of memory will likely stay high for at least another 1-2 years).
-
-
1
Cloudflare publishes DNS optimization details
Cloudflare published a blog post detailing how it built a planner system that rebuilds only affected DNS zones instead of entire zones when settings change, reducing full builds by 40%, peak memory by 85%, and halving build delay.
“Zone setting changes used to rebuild entire DNS zones, even ones with tens of millions of records. Here is how we built a planner that picks the smallest safe build, cutting full builds by 40%, peak memory by 85%, and halving build delay.”
— Alex Fattouche -
first by HN Frontpage, 8d ago
-
first by Cloudflare Blog, 8d ago
-
What people are saying 5 voices from 1 site · best of 8 · verbatim
- Nov 2
-
I used to use cloudflare dns, but the same cloudflare harassed me the entire day testing if I'm a robot. The harassment ended after I switched the dns server. See you never again, clouflare
-
I'm very curious about the bugs (before vs. after relational) that come from an improvement like this over time
-
Cloudflare doesn't get enough credit for their series of overall great technical blog posts.
-
Coincidentally, I just got angry this weekend about my Mac with 64GB of RAM going OOM because of poorly optimized applications. Use of web tech, especially Electron, was common among basically all of the offending applications. Whether Electron itself or just poor coding, I'm not sure, but there's a pattern.
-
Isn't 700 changes a second like... really low, considering their scale and amount of domains they manage ?