cloudflare

    cloudflare/pingora

    #644 this week

    A library for building fast, reliable and evolvable network services.

    backend
    Rust
    Apache-2.0
    26.5K stars
    1.6K forks
    26.5K watching
    Updated 5/4/2026
    View on GitHub

    Scale data-heavy AI workloads

    while keeping costs low with S3-compatible storage.

    BackblazeLearn more

    Loading star history...

    Health Score

    62

    Activity
    100
    Community
    75
    Maintenance
    34
    Last release57d ago

    Weekly Growth

    +0

    +0.0% this week

    Contributors

    88

    Total contributors

    Open Issues

    256

    Use Cases & Benefits

    About pingora

    Pingora

    Pingora banner image

    What is Pingora

    Pingora is a Rust framework to build fast, reliable and programmable networked systems.

    Pingora is battle tested as it has been serving more than 40 million Internet requests per second for more than a few years.

    Feature highlights

    • Async Rust: fast and reliable
    • HTTP 1/2 end to end proxy
    • TLS over OpenSSL, BoringSSL or rustls(experimental).
    • gRPC and websocket proxying
    • Graceful reload
    • Customizable load balancing and failover strategies
    • Support for a variety of observability tools

    Reasons to use Pingora

    • Security is your top priority: Pingora is a more memory safe alternative for services that are written in C/C++
    • Your service is performance-sensitive: Pingora is fast and efficient
    • Your service requires extensive customization: The APIs Pingora proxy framework provides are highly programmable

    Getting started

    See our quick starting guide to see how easy it is to build a load balancer.

    Our user guide covers more topics such as how to configure and run Pingora servers, as well as how to build custom HTTP servers and proxy logic on top of Pingora's framework.

    API docs are also available for all the crates.

    Notable crates in this workspace

    • Pingora: the "public facing" crate to build networked systems and proxies
    • Pingora-core: this crate defines the protocols, functionalities and basic traits
    • Pingora-proxy: the logic and APIs to build HTTP proxies
    • Pingora-error: the common error type used across Pingora crates
    • Pingora-http: the HTTP header definitions and APIs
    • Pingora-openssl & pingora-boringssl: SSL related extensions and APIs
    • Pingora-ketama: the Ketama consistent algorithm
    • Pingora-limits: efficient counting algorithms
    • Pingora-load-balancing: load balancing algorithm extensions for pingora-proxy
    • Pingora-memory-cache: Async in-memory caching with cache lock to prevent cache stampede
    • Pingora-timeout: A more efficient async timer system
    • TinyUfo: The caching algorithm behind pingora-memory-cache

    Note that Pingora proxy integration with caching should be considered experimental, and as such APIs related to caching are currently highly volatile.

    System requirements

    Systems

    Linux is our tier 1 environment and main focus.

    We will try our best for most code to compile for Unix environments. This is for developers and users to have an easier time developing with Pingora in Unix-like environments like macOS (though some features might be missing)

    Windows support is preliminary by community's best effort only.

    Both x86_64 and aarch64 architectures will be supported.

    Rust version

    Pingora keeps a rolling MSRV (minimum supported Rust version) policy of 6 months. This means we will accept PRs that upgrade the MSRV as long as the new Rust version used is at least 6 months old.

    Our current MSRV is effectively 1.82.

    Previously Pingora advertised an MSRV of 1.72. Older Rust versions may still be able to compile via cargo update pinning dependencies such as [email protected]. The advertised MSRV in config files will be officially bumped to 1.82 in an upcoming release.

    Building with the optional feature boringssl with Boring >= 4.14 requires Rust 1.80.

    Build Requirements

    Some of the crates in this repository have dependencies on additional tools and libraries that must be satisfied in order to build them:

    • Make sure that Clang is installed on your system (for boringssl)
    • Make sure that Perl 5 is installed on your system (for openssl)

    Contributing

    Please see our contribution guidelines.

    License

    This project is Licensed under Apache License, Version 2.0.

    Discover Repositories

    Search across tracked repositories by name or description