Hey,
I was wondering if anyone have any experience with handling multiple server setups. So the setup will be like this:
1 server handle the login to the game
1 server handle the chat in the game
1 server handle the logic of the game and the matchmaking
So lets start with some basic info:
UDP + TCP does not go well together so all of them have to be UDP as UDP makes TCP loose packets. The chat server then gotta be coded with a reliable layer on top of the UDP layer to make it behave almost like a TCP server, so it doesnt loose any packets. Messages have to get through. The login server should only handle the login into the game, taking off stress from the game server. The game server will only handle the logic in game and be autorhative, so here I put in all the reliability for that + client side prediction etc, whatever I may need.
Getting back to the question, do I need to make 1 server for each or should it suffice for one server to handle everything and just code different logic for different messages / headers / packets ? I have looked at server architecture and it seems like they seperate them. But then again how do you do that? If you are to forward a login to the chat and game server port ? Is that it, anyone have some examples or pseudo code for it to help me get started. Can’t find anything on google…
Thanks in advance!