Why Cloudflare Replaced Nginx with Rust‑Powered Pingora for Faster, Safer Proxies

Cloudflare has swapped Nginx for its home‑grown Rust proxy Pingora, claiming trillion‑request capacity, up to 70% lower CPU and memory usage, dramatically reduced latency, higher connection reuse, and improved security, though the new system remains closed‑source.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Why Cloudflare Replaced Nginx with Rust‑Powered Pingora for Faster, Safer Proxies

For years Cloudflare relied on Nginx as part of its HTTP proxy stack, but it has now replaced Nginx with an internally developed Rust‑based proxy called Pingora, which the company says is faster, more efficient, and more versatile for current and future products.

Pingora can handle over a trillion requests per day while delivering better performance using roughly one‑third of the CPU and memory that Nginx required.

As Cloudflare’s scale grew, the limits of Nginx became apparent: “We can no longer achieve the performance we need, and Nginx lacks the features required for our highly complex environment.”

Pingora now powers Cloudflare’s CDN, Workers fetch, Tunnel, Stream, R2, and many other services.

The switch was driven by architectural constraints in Nginx that hurt performance and made adding new functionality difficult, as well as a relatively inactive Nginx community and “closed‑door” development practices.

Rust was chosen because it provides memory safety without sacrificing the speed of C; Cloudflare also built its own Rust HTTP library to meet diverse needs, and Pingora uses a multithreaded rather than multiprocess architecture.

Performance measurements show Pingora reduces median TTFB by 5 ms and the 95th percentile by 80 ms; it creates only one‑third as many new connections per second as the old service, while connection reuse rose from 87.1 % to 99.92 %, cutting origin connections by a factor of 160 and saving an estimated 434 years of handshake time each day.

In production, under the same traffic load, Pingora cuts CPU and memory consumption by about 70 % and 67 % respectively, and is considered more secure thanks to Rust, though it is not yet open‑source.

More details are available on Cloudflare’s official blog.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ProxyRustPingoraCloudflare
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.