TGViewer
Programming & AI Tips 💡 Programming & AI Tips 💡 @programmingtip · 46.4K subscribers
Post #769 2.62K
Cloudflare saved 100 TB of RAM with math and Rust 🔥

Cloudflare reclaimed more than 100 TB of RAM globally in a Pingora-based consistent-hashing service. No new hardware. The win came from changing data representation and the algorithms around it.


✅ Lessons:

• Measure retained memory, not only allocation rate.
• Check collection shape: duplicated keys, oversized buckets, and pointer-heavy graphs add up fast.
• Fix the model first: a smaller or more compact structure usually beats micro-optimizing a hot loop.

For high-cardinality caches, routing tables, or tenant maps, take a heap dump before reaching for another cache node. A few bytes per entry becomes expensive at fleet scale.

[ Blog ] :
https://blog.cloudflare.com/saving-100-tb-of-ram-with-math

〰️〰️〰️〰️〰️〰️
#Performance #Memory #Rust
@ProgrammingTip
Cloudflare Blog Saving another 100TB of RAM with math (and Rust) Cloudflare's global network is immense but not limitless. As we look for small ways to trim our resource usage, we sometimes get lucky and we can cut significantly more. Here’s how we reduced one of our Pingora-based service's RAM usage with statistics.
More from @programmingtip
  1. Oct 2, 2026GPT-6 Astra gets an Ultrafast API tier 🚀 OpenAI added an Ultrafast speed tier for GPT-6 A…
  2. Oct 1, 2026Cloudflare shipped an agentic CLI for its API ⚡️ Cloudflare launched cf, an agentic CLI fo…
  3. Sep 30, 2026OpenAI introduced Dots, always-on agents 🚀 OpenAI introduced Dots, its take on always-on…
  4. Sep 29, 2026Claude Sonnet 5.5 is built for coding agents 🚀 Anthropic released Claude Sonnet 5.5 for t…
  5. Sep 26, 2026Claude Opus 5.5 is available in the API 🚀 Anthropic released Claude Opus 5.5, and it is a…
  6. Sep 24, 2026Claude Opus 5.5 is now on the Claude Platform 🚀 Anthropic introduced Claude Opus 5.5, a l…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →