Advertisement

UDP server port - handling ex. 1000 CCU ?

Started by March 02, 2021 09:45 AM
2 comments, last by joopyM 3 years, 8 months ago

What is normal practice for clients/players connecting UDP to the game-server ?

For example if we have 1000 concurrent players would you then all connect for example to UDP port 61234 - or do you seperate it so each client connect to its own UDP port on the server or is there a max ‘clients’ that is advised on a single UDP port ?

Ports are (mostly) an abstraction at this level, spreading connections across multiple ports doesn't have intrinsic performance benefits.

However, if you want multiple threads/processes to handle incoming messages, and you want messages from a given client to always arrive at the same thread/process, it can make sense to give each thread/process it's own port (though it's not really necessary, because SO_REUSEPORT exists).

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Advertisement

@swiftcoder thanks alot

This topic is closed to new replies.

Advertisement