r/webdev • u/fagnerbrack • 28d ago
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/
390
Upvotes
r/webdev • u/fagnerbrack • 28d ago
97
u/coomzee 28d ago
Give it a few years with the way the internet is going we'll only have 5 approved domains and the DNS cache can fit in in L1 cache.
227
u/ammar_sadaoui 28d ago •
finally people start care about RAM like early 1990* and maybe late 1980 too
web browser shouldn't take 500-1000 mb of ram just on one home page
19
u/GetVladimir 28d ago
Interesting read.
What was the part about EDNS Client Subnet (ECS)?
Does 1.1.1.1 provide EDNS results now or is that from upstream only?
11
u/rustprogram 28d ago
Am I the only one who feels like they've read this title before? :thinking:
9
u/Geminii27 28d ago
640k should be enough for anybody!
1
u/Realistic_Repeat_576 27d ago
ram ram
1
u/funkdefied 25d ago
More for Saltman
1
u/Jordz2203 24d ago
Why does this keep being reposted everywhere? It happened like 2 months ago… maybe more…
1
u/TheAICrafter 11d ago
100 TB is hard to picture, but getting each cache entry down to less than half its original size is wild. I’m curious which of the five changes saved the most bytes per entry.
3
u/EricThirteen 28d ago
There's gotta be a good porn collection joke in here somewhere.