Session Management with C#
-
Hello, i've build a simple server-application, which only needs to hold a TCP-Connection to the client and which listen async for data. This application also do a few tasks for each user.... So i have got a class "UserSession" in which i store the User-Informations and the TCP-Connection. This UserSession runs in a own thread. My question is now, what's with performance? Is it a problem, that every user has a own Thread? Even if no requests are incoming? The amount of data, which are receiving/sending from this server-application is very low... I need to handle a lot of user (i don't know how much) this could be 100, 1000 or even 10 000 user... So, is this a good idea to give each user a own Thread? Or how can i handle such an amount of Users and TCP-Connections very fast?