A lightweight, fast, always-up HTTP reverse proxy built in Rust
open sourceAGPL-3.0-or-laterself-hostablefree
Sōzu is a TCP and HTTP reverse proxy written in Rust by Clever Cloud for infrastructures that change constantly, such as cloud and PaaS platforms adding apps every second. Configuration changes arrive at runtime as atomic diffs over a Unix socket (a ProtoBuf protocol meant for control planes), so it never reloads, and it upgrades its own binary while still serving requests without dropping connections. It terminates TLS with Rustls and a choice of ring, AWS-LC (post-quantum and FIPS 140-3 options) or OpenSSL backends, runs single-threaded workers with an epoll event loop sharing ports via SO_REUSEPORT, sandboxes its workers, and ships logs and metrics to external services. sozu top is a live terminal dashboard.
Problems it solves
- change reverse proxy routes thousands of times a day without reloads
- upgrade the load balancer binary without dropping live connections
- a reverse proxy a control plane can configure programmatically
- a memory-safe reverse proxy written in Rust
- terminate TLS with FIPS 140-3 validated crypto in front of our backends
- zero-downtime deployments for a PaaS platform's HTTP routing
Features
- runtime configuration as atomic diffs over a Unix socket
- binary upgrades without restarting or losing connections
- TLS termination with Rustls
- ring, AWS-LC (post-quantum, FIPS) or OpenSSL crypto backends
- share-nothing single-threaded workers with SO_REUSEPORT
- sandboxed workers
- logging to stdout, file, TCP, UDP or Unix sockets
- metrics
- sozu top live TUI
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what Sōzu does.
- nginx HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server
- Pingora Cloudflare's Rust framework for building proxies and network services
- HAProxy The Reliable, High Performance TCP/HTTP Load Balancer
- Envoy Visitor management software to secure the world's most critical workplaces
- Traefik Proxy The Cloud Native Application Proxy
- Zoraxy A general purpose HTTP reverse proxy and forwarding tool
