L
L
lightalex2018-03-19 22:30:39
Computer networks
lightalex, 2018-03-19 22:30:39

How to properly distribute traffic to servers?

Good day!
There is an IP to which a bunch of data packets go.
These data packets are distributed to certain ports (the appropriate port is selected for each connection) The
Java program is now doing all this
. Just in case, I’ll clarify that commands can now be sent to the Java program to switch ports. Those. all packets are sent to another port.
At the moment, if this program or the server on which the program is located is laid down, then the project is completely covered with a copper basin
Question - how to make this central node more reliable?
How is this implemented in large projects?
PS The central node turns out to be very highly loaded. This is an online game. Packages sent a fucking cloud ...
PSS I'm sorry if the question seems childish. Alas, in the topic of networks, almost zero. So if it's not difficult for you - explain in a simpler way :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Tsvetkov, 2018-03-19
@lightalex

In all the companies where I had a chance to work, this role was performed by Nginx. If filtering connections is harder than parsing urls, then write a Lua handler for your connections. Nginx+Lua is quite an indestructible bundle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question