Postrust Proxy
High-performance reverse proxy module for Postrust with:
- HTTP/1.1 and HTTP/2 support
- Load balancing (round-robin, random, least-connections, weighted, sticky)
- Active health checking
- Rate limiting
- Automatic TLS via Let's Encrypt (ACME)
- Zero-downtime configuration updates
Architecture
The proxy is built on vendored code from rust-rpxy, with additional features for database-backed configuration, health checking, and rate limiting.
┌─────────────────────────────────────────────────────────────┐
│ Postrust Proxy │
├─────────────────────────────────────────────────────────────┤
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
│ │ Config │ │ Health │ │ Rate Limit │ │
│ │ TOML + DB │ │ Checker │ │ Token Bucket │ │
│ └──────┬──────┘ └──────┬──────┘ └──────────┬──────────┘ │
│ │ │ │ │
│ └────────────────┼────────────────────┘ │
│ │ │
│ ┌───────────▼───────────┐ │
│ │ Vendored Core │ │
│ │ (from rust-rpxy) │ │
│ │ - Proxy handler │ │
│ │ - Load balancer │ │
│ │ - HTTP forwarding │ │
│ └───────────────────────┘ │
└─────────────────────────────────────────────────────────────┘