News for hackers. Stuff that matters.
Re:uWebSockets by vanviegen on Wednesday October 26, 2022 @12:08PM (#33345788)
Can you just store the shard id for each user in a database? Each server could check if it is authorative for each incoming connection, and redirect if not.

That way, you can migrate users one by one (sending a 'redirectUserConnections(userId)' to the original server, and even pick a shard that is geographically close to the user. (If you care about race conditions during migrations, you need to be really careful though.)

Re:uWebSockets by cphoover on Wednesday October 26, 2022 @01:12PM (#33346605)
Yea something like this makes sense...

race conditions during migrations are the biggest concern.... You do not want a client with a connection to server they will never receive a message on.