Skip to content

Konippi/pingora-proxy-rs

Repository files navigation

Reverse Proxy Server with Pingora

This example focuses on how to implement a reverse proxy server using Pingora.

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.

Implemented features

  • Round-robin load balancing
  • Health checking for upstream servers
  • Rate limiting
  • Integration with Opentelemetry

How to run

  1. Start OpenTelemetry collector and OpenObserve containers

    $ docker compose up -d
  2. Run the proxy server

    $ cargo run
  3. Make a sample request to the proxy server

    $ curl localhost:6188 -H "appid:1" -vi

Visualizing signals with OpenObserve

Image

About

Reverse Proxy Server with Pingora

Topics

Resources

License

Stars

Watchers

Forks

Languages