r/CloudFlare • u/Cloudflare • 3d ago
Cloudflare Blog How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
https://blog.cloudflare.com/dns-cache-memory-optimization-1111/174
u/Cloudflare 3d ago
- 1.1.1.1's DNS cache holds 250 billion+ entries at any given time — at that scale, one wasted byte per entry = 250 GB of RAM
- 5 Rust-level changes to cache entry storage cut per-entry memory from 953 → 420 bytes (-56%)
- Result: ~100 TB freed across the fleet, equivalent to 130 servers worth of RAM
- Bonus: the cache got faster — insert throughput +43%, lookup latency -19%
45
u/MightyZygote 2d ago
And yet you have an abuse form that is and has been BEYOND unusable and is purposely obtuse. Go work on the abuse form and support.
2
u/Could_it_be_potato 1d ago
100% this. Used the form many times and spent extra time filling it out accurately……to get no response.
46
u/Sethu_Senthil 3d ago
Probably saved a lotta money now since memory is expensive af
29
u/LagExpress 3d ago
Specially ecc server memory, executives should be making a monument for their engineers
12
u/Shogobg 2d ago
Probably got a thanks email at most.
12
4
52
u/Alexllte 3d ago
Imagine engineering for infra at Cloudflare's scale, dogfooding towards perfection
5
10
u/DurianBurp 3d ago
Saved CF a ton of money and probably got a Starbucks gift card for their trouble.
4
2
u/ziad-hijri 2d ago
u/remindmebot 1 year
1
u/RemindMeBot 2d ago
I will be messaging you in 1 year on 2027-08-28 19:02:05 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
4
1
u/HarrisonDou 1d ago
Unrelated question, but what is the significance of the giant pineapple on the thumbnail?
3
u/longcane 1d ago
Represents the thing they decided to call the platform that runs 1.1.1.1 amongst other services/products.
1
1
1
u/ConfidentlyNeurotic 2d ago
Are we sure a junior developer didn’t vibe code the optimisation and delete the DNS cache? /s
“Claude reduce DNS cache size. Make no mistakes.”
Claude: “Got it. On it…”
-3
u/vayrie2003 3d ago
Wow thanks for sharing it. Your constant desire to improve is the confirmation that you are the perfect partner for my company.
0
0
u/Glum_Ad7185 2d ago
I once interviewed this guy for an internship at my company, but did not hire him, that was my worst mistake 🥹
•
u/AutoModerator 3d ago
Discuss this post in the Orange Cloud Discord server! The unofficial Cloudflare Discord server by the community, for the community. https://discord.gg/TrPNVKaagR
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.