Hacker News new | ask | show | jobs
by wmf 2659 days ago
This kind of issue comes up in game development where I think the standard answer is a tier of proxies that can hold open the connection to the clients while reconnecting to different backends.
1 comments

Unfortunately, client code is not upgradable, and I have to solve this issue from server side only.
I don’t understand your answer, that’s basically what wmf described. Put a proxy or load balancer in front of your service.
Thanks. I can't upgrade clients to add reconnect functionality, and I can only work on the server side to solve the scaling issue. I think I should refactor my service as you mentioned by separating dedicated connection-managing servers and stateless worker servers such that I can scale workers.
> I think I should refactor my service as you mentioned by separating dedicated connection-managing servers and stateless worker servers such that I can scale workers.

thats exactly what the original suggestion seemed to be was.

Yupp. I think I misunderstood at first. Now I get it. Thanks all.