hyperium / hyper

An HTTP library for Rust
https://hyper.rs
MIT License
14.42k stars 1.59k forks source link

multi layer proxy example. #3628

Open ohaddahan opened 5 months ago

ohaddahan commented 5 months ago

In this configuration we have a public master server, which accepts outgoing connections from endpoint servers. The reason for using outgoing connections, is to avoid the need to open firewall ports. The master will receive requests and forward them one of the servers connected to it.

(since it's in examples I merged it into one file/binary, in the real world the two servers are obviously not in the same process)

image

ohaddahan commented 5 months ago

@hatoo helped a lot in building this.