Cloudflare Company published first release of the framework Pingora, designed for developing secure, high-performance network services in the Rust language. A proxy built using Pingora has been used in the Cloudflare content delivery network instead of Nginx for about a year and processes more than 40 million requests per second. The code is written in Rust and published licensed under Apache 2.0.
Main features:
- Support for HTTP/1 and HTTP/2 (HTTP/3 in plans), as well as the ability to create services using their own protocols or UDP/TCP.
- Possibility of multi-threaded processing of requests in asynchronous mode.
- Support for attaching callback handlers and filters that allow you to manage various stages of request processing, as well as modify, redirect, block and log requests and responses.
- Proxying gRPC and WebSocket.
- Connectable load balancers.
- Ability to change configuration without restarting.
- Support for updating application code without breaking connections.
- Means for load switching in case of failure (failover).
- Integration with various monitoring and logging systems (Syslog, Prometheus, Sentry, OpenTelemetry).
- Support for TLS encryption (using OpenSSL or BoringSSL).
- Ready-made Rust packages for creating HTTP proxies, working with network protocols, parsing HTTP headers, accounting and limiting traffic, load balancing, working with the Ketama distributed hash table, maintaining a cache in RAM and asynchronous processing of timeouts.
Thanks for reading: