Cloudflare's Rust framework for building proxies and network services
open sourceApache-2.0self-hostablefree
Pingora is Cloudflare's Apache-2.0 Rust framework for building fast, reliable and programmable network services, especially HTTP proxies and load balancers; Cloudflare has used it in production for years to serve more than 40 million requests per second. It proxies HTTP/1 and HTTP/2 end to end, as well as gRPC and WebSocket, terminates TLS with OpenSSL, BoringSSL, s2n-tls or (experimentally) rustls, reloads gracefully, and has customisable load balancing and failover strategies and observability hooks. The workspace includes crates for the proxy APIs, load balancing, Ketama consistent hashing, rate-limiting counters, an async in-memory cache with stampede protection (TinyUFO) and timers. It's aimed at teams replacing C or C++ services with a memory-safe, highly customisable alternative; Linux is the main platform.
Problems it solves
- build a custom HTTP reverse proxy or load balancer in Rust
- a memory-safe replacement for an nginx or C++ proxy with custom logic
- proxy gRPC and WebSocket traffic with programmable routing
- a high-performance proxy framework with graceful reloads and failover
Features
- HTTP/1 and HTTP/2 end-to-end proxying
- gRPC and WebSocket proxying
- TLS with OpenSSL, BoringSSL, s2n-tls or rustls (experimental)
- graceful reload
- customisable load balancing and failover
- observability integrations
- crates for Ketama hashing, rate-limit counters, in-memory caching (TinyUFO) and timers
Limitations
- Linux is the main supported platform; macOS may miss features and Windows support is preliminary.1
- Caching in the proxy is experimental and its APIs change often.1
Capabilities
| Has official SDKs | plan not known |
|---|
Alternatives
The same job
These do what Pingora does.
