This example focuses on how to implement a reverse proxy server using 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.
- Round-robin load balancing
- Health checking for upstream servers
- Rate limiting
- Integration with Opentelemetry
-
Start OpenTelemetry collector and OpenObserve containers
$ docker compose up -d
-
Run the proxy server
$ cargo run
-
Make a sample request to the proxy server
$ curl localhost:6188 -H "appid:1" -vi
