How Cloudflare Uses Rust in 2026: Pingora, Workers, and the Rust Bet

Max WellsMax WellsFounder of Rustify

TL;DR: Cloudflare has made Rust a cornerstone of its infrastructure strategy. Pingora, their in-house reverse proxy replacing NGINX, is written in Rust and handles 35+ million HTTP requests per second. Workers, their edge compute platform, runs Rust code (compiled to WebAssembly) at over 300 data centers globally.

  • Pingora: Rust-built reverse proxy replacing NGINX; serves ~35M requests/sec; 70% memory reduction vs NGINX
  • Cloudflare Workers: Edge compute platform running Rust → WebAssembly at 300+ global locations
  • quiche: Cloudflare's open-source Rust QUIC and HTTP/3 implementation
  • Oxy: Cloudflare's Rust-based forward proxy framework, open-sourced in 2024
  • Why Rust: Memory safety (no CVEs from buffer overflows in Pingora), performance, and connection reuse at scale
  • Salary: $185K–$380K+ total comp for senior Rust engineers at Cloudflare US roles

Who Should Read This?

This article is for engineers interested in how a hyperscale infrastructure company uses Rust in real production systems, and for developers exploring Rust careers at Cloudflare. It covers the technical decisions behind Cloudflare's Rust investments and what working on Rust infrastructure at Cloudflare looks like in 2026.

What Is Cloudflare's Rust Strategy?

Cloudflare has made Rust a deliberate long-term infrastructure bet, not a one-off experiment.

Cloudflare operates one of the largest networks in the world — 300+ data centers, over 35 million HTTP requests per second routed through their infrastructure, and a global edge compute platform used by millions of developers. At this scale, the choice of programming language for infrastructure software has direct consequences for reliability, cost, and security.

Cloudflare's Rust adoption accelerated around 2019–2020 and has expanded consistently since. Their engineering blog is one of the most detailed public records of production Rust usage at hyperscale. Unlike companies that use Rust for side projects or internal tooling, Cloudflare's critical user-facing infrastructure runs on Rust.

The core reasons Cloudflare chose Rust over alternatives:

Memory safety without GC: Cloudflare's infrastructure handles billions of requests. A single memory safety vulnerability in a proxy or runtime can affect millions of end users. Rust's ownership model eliminates entire categories of memory bugs (buffer overflows, use-after-free, null pointer dereferences) at compile time, with no runtime overhead.

Performance matching C: Pingora and other Cloudflare Rust services perform comparably to equivalent C implementations. Cloudflare was not willing to trade performance for safety — Rust gave them both.

Fearless concurrency: Processing millions of concurrent connections requires carefully written concurrent code. Rust's type system prevents data races at compile time, a significant advantage over C/C++ in concurrent infrastructure code.

What Is Pingora and Why Does It Matter?

Pingora is Cloudflare's in-house Rust reverse proxy that replaced NGINX across their global network — one of the most significant Rust deployments in production infrastructure.

NGINX was Cloudflare's reverse proxy for years. NGINX is reliable and performant, but Cloudflare needed features that NGINX's architecture made difficult: custom connection reuse policies, fine-grained per-request logic, and deep integration with Cloudflare's internal systems.

In 2022, Cloudflare published "How we built Pingora, our Rust framework for building programmable network services." The key data points:

Connection reuse: Pingora reuses connections to origin servers far more aggressively than NGINX. This reduces handshake overhead and improves latency. Cloudflare reported 160x fewer new connections to origins per day after switching to Pingora, saving significant CPU cycles on TLS handshakes.

Memory reduction: Pingora uses ~70% less memory per request than the equivalent NGINX multi-process model. NGINX forks worker processes; Pingora uses Rust async tasks (via Tokio) for concurrency, which are dramatically lighter than OS processes.

Security: Pingora has had zero CVEs attributed to memory safety issues since deployment. NGINX has had multiple memory safety CVEs over its lifetime. The Rust compiler eliminated this entire bug category.

Performance: Pingora handles more requests per CPU core than NGINX at Cloudflare's configuration. Cloudflare reported handling 35+ million HTTP requests per second through Pingora across their global network.

Cloudflare open-sourced the Pingora framework in 2024, allowing external teams to build network services on the same foundation. Pingora is now available as a Rust crate.

What Are Cloudflare Workers and How Does Rust Fit?

Cloudflare Workers is an edge compute platform that runs JavaScript, TypeScript, and Rust (via WebAssembly) at Cloudflare's 300+ global data centers.

Workers allows developers to run code at the network edge — close to users, with sub-millisecond cold starts, without managing servers. Each Worker script executes in a V8 isolate for JavaScript, or in a WebAssembly sandbox for compiled languages like Rust.

Rust is a first-class language for Cloudflare Workers. Cloudflare maintains workers-rs, the official Rust SDK for the Workers platform. Developers write Rust code, compile it to WebAssembly, and deploy it to Workers. The WebAssembly runtime (based on wasmtime) provides a secure execution sandbox.

The advantages of Rust on Workers:

  • Rust compiles to compact WebAssembly modules, which load and initialize quickly
  • Rust's performance in WebAssembly is excellent — typically within 10–20% of native execution
  • Rust's type system and error handling produce robust edge functions that rarely have runtime panics

Cloudflare's own internal services also use Workers as an internal platform, meaning Cloudflare engineers use Rust on Workers for internal tooling as well as the external developer platform.

What Is quiche and What Did Cloudflare Build?

quiche is Cloudflare's open-source Rust implementation of the QUIC protocol and HTTP/3.

QUIC is the transport protocol underlying HTTP/3 — it runs over UDP rather than TCP and provides built-in multiplexing, encryption, and connection migration. Cloudflare is one of the largest operators of QUIC and HTTP/3 infrastructure in the world.

Rather than relying on existing C libraries for QUIC, Cloudflare built quiche in Rust. The reasoning was consistent with their broader Rust strategy: memory safety in a network-facing cryptographic protocol is non-negotiable, and Rust provides it without performance cost.

quiche is used in production in Cloudflare's network for HTTP/3 traffic and is open-sourced on GitHub. It has been adopted by other organizations building QUIC support into their own systems, including integration into curl.

What Is Oxy, Cloudflare's Forward Proxy Framework?

Oxy is Cloudflare's Rust-based forward proxy framework, open-sourced in 2024.

While Pingora is a reverse proxy (sitting between users and origin servers, handling inbound traffic), Oxy is a forward proxy framework — used for outbound traffic routing, security inspection, and corporate proxy deployments.

Cloudflare published "Introducing Oxy: Cloudflare's Rust-based next generation proxy framework" in 2024. Oxy powers Cloudflare's Zero Trust network access products and internal security infrastructure.

Oxy being built in Rust means Cloudflare can enforce strong security properties through the type system. A forward proxy handles sensitive traffic — enterprise network data, authentication credentials, potentially sensitive content. Memory safety vulnerabilities in a forward proxy are catastrophically dangerous. Rust eliminates this risk class.

What Does Cloudflare Hire for in Rust Roles?

Cloudflare's Rust engineering roles focus on network infrastructure, security systems, and the Workers platform.

Teams hiring Rust engineers at Cloudflare in 2026:

Network Infrastructure: Building and maintaining Pingora, the global proxying layer. Requires deep understanding of HTTP, TLS, TCP/IP, and async Rust.

Workers Runtime: The edge compute platform. Requires knowledge of WebAssembly, V8, wasmtime, and the engineering of secure sandboxed execution environments.

Security Products: Zero Trust, DDoS protection, firewall. Rust's memory safety properties make it the preferred language for security-critical services.

Protocol Engineering: QUIC, HTTP/3, and next-generation protocol implementations. Requires knowledge of network protocols, cryptographic principles, and systems programming.

Salary at Cloudflare for Rust engineers (US, 2026)

Senior Software Engineer (Rust/Infrastructure): $170K–$250K base, $220K–$320K total compensation including equity.

Staff Engineer / Tech Lead (Rust): $240K–$320K base, $300K–$420K total compensation.

Cloudflare is headquartered in San Francisco and offers substantial remote flexibility for senior roles.

What Common Mistakes Do Engineers Make When Applying for Rust Roles at Cloudflare?

The most common mistake is demonstrating Rust language fluency without network systems knowledge.

Cloudflare's Rust roles are infrastructure roles that happen to use Rust. The interview process probes systems knowledge deeply: TCP/IP, HTTP semantics, TLS handshakes, connection lifecycle, load balancing, and distributed systems reliability patterns. An engineer who knows Rust well but cannot reason about network protocols will not pass Cloudflare's technical screens for infrastructure roles.

The right preparation path:

  • Build async Rust services using Tokio and understand the runtime model
  • Understand HTTP deeply: request lifecycle, header handling, connection management, pipelining vs multiplexing
  • Understand TLS fundamentals: handshake, certificate validation, session resumption
  • Contribute to or study open-source Rust network projects: hyper, h2, rustls, or the Pingora framework itself
  • Practice distributed systems design problems: load balancers, caches, rate limiters

Want a Structured Path to Systems-Level Rust Proficiency?

Cloudflare's Rust engineering requires deep async Rust, network systems knowledge, and production reliability engineering. Rustify's 9-week bootcamp covers Rust from fundamentals through async programming and systems architecture with 1:1 coaching. Engineers who complete the program have the foundation to work on the kind of high-throughput, low-latency Rust infrastructure Cloudflare operates at scale.

Frequently Asked Questions

Pingora is Cloudflare's Rust-built reverse proxy that replaced NGINX across their global network. Cloudflare built it because NGINX's architecture limited their ability to implement custom connection reuse, per-request logic, and deep integration with Cloudflare's internal systems. Pingora uses 70% less memory than NGINX at Cloudflare's scale and has had zero memory safety CVEs since deployment.

Yes. Cloudflare Workers supports Rust as a first-class language via WebAssembly. Developers write Rust, compile to Wasm, and deploy to Workers at Cloudflare's 300+ global data centers. Cloudflare maintains workers-rs, the official Rust SDK for the Workers platform.

quiche is Cloudflare's open-source Rust implementation of the QUIC transport protocol and HTTP/3. It's used in production in Cloudflare's network and open-sourced on GitHub. It's also been integrated into curl and other tools for QUIC support.

Senior Rust engineers at Cloudflare earn $170K–$250K base salary in the US, with total compensation (base + equity + bonus) of $220K–$320K. Staff engineers and technical leads earn $300K–$420K+ total compensation.

Cloudflare needs both C-level performance and memory safety. C is fast but has no compile-time memory safety guarantees — buffer overflows and use-after-free bugs have caused major security vulnerabilities in network software historically. Rust provides the same performance as C while eliminating these memory safety bug classes at compile time, with no runtime garbage collection overhead.

Yes. Cloudflare open-sourced the Pingora framework in 2024. It's available as a Rust crate and allows external teams to build their own network services on the same infrastructure Cloudflare uses internally.

Oxy is Cloudflare's Rust-based forward proxy framework, open-sourced in 2024. It powers Cloudflare's Zero Trust network access products and is used for outbound traffic routing and security inspection. Oxy complements Pingora (reverse proxy) in Cloudflare's proxy infrastructure stack.

Keep Reading

Sources

Ready to Land a $80-120k Rust Job?