lua - TCP load balancing and rerouting based on first few bytes -


i have made game clients connect central server tcp connection. in first 6 bytes send version number "00.00.01" of client protocol. based on version want route/proxy tcp connection different servers different version of game running.

basically client-1 version 00.00.01 should connect server-1 , client 2 version 00.00.02 should connect server-2

for load balancing checked haproxy lua support couldn't find solution. kind of solution exist in nginx?

what best practices around?

why not have game know hostname connect to? can use dns , virtual hosting manage physical machine ends mapping to.


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -