3 ms·
I recommend storing the server topology somewhere that's super highly available, like Cloudflare. Then having the client choose from that. If their connection d
by erichocean 4y ago
I recommend storing the server topology somewhere that's super highly available, like Cloudflare. Then having the client choose from that. If their connection drops (use heartbeats), retry a different one you have and refresh the server topology in parallel. If the second connection fails, retry again with the new topology. This is convergent and avoids putting load on your database to connect, so you don't suffer from thundering herd problems.