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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -