## Dear Relay Operators

How do you handle scaling out? I want to run a relay but keep it performant no matter what (organic) demand grows to and for that I would require clients to not all communicate through the same proxy and DNS based round-robin seams to also not be optimal to get a relay that is close by. I was thinking of redirecting based on client IP. Do clients gracefully redirects? If wss://a.com redirects to wss://us.a.com, does that work or will half the client not know what to do with that? Are there already relays that do that?

Reply to this note

Please Login to reply.

Discussion

#[2]​ has done a bunch here.

You can use Cloudflare for transparent geo targeting. Likely still want HA or paired/LB relays in each region. Some kind of syncing between regions.

Most people seem to scale vertically atm, which will become too expensive at some point.. we need better horizontally scaling approaches.

Cloudflare means to throw ssl out the window. I'd much prefer not to do that.

I’m pretty sure it can support TLS without issues. Certs on their servers, or certs on your servers. Or a mix.

I'm pretty sure you have to share your secrets in order for them to do their work. They learn all the requests that were meant for your server's eyes only.

The sticky wicket is the “sync state between regions” even more the cost than synchronization