How I would do it:
- ROUTER arrives
- it opens a tcp/ip connection to the PROXY
- it worms up, waits a few seconds, stretches :)
- it says: HELLO, I'm marek and I can accept 1k concurrent connections, and I have a cpu of a weight 2
- the PROXY responds with HELLO-OK
- The PROXY starts sending NEW_CONNECTION messages to the ROUTER
- messages flow in and out
- The ROUTER gets a SIGHUP from administrator, it should prepare to tear down