Networking in C# is something I am relatively new to and so I was wondering how to get started with it for a particular project.
Ultimately, I want to develop a server which can have as many as one thousand clients connected to it concurrently (TCP protocol).
I understand creating a new thread for each client would be potentially quite inefficient, especially with the memory overhead of each thread once passing 100 clients for example.
So simply, what I am asking is, could anyone suggest anywhere I could find out more about getting started with developing 'multithreaded' servers for many clients.
(Please add a comment if this question is too broad.)
You may give a try for
SignalRfor sockets.To implement a server you need to derive from
Hubclass:And from client side javascript is like this:
Supported Platforms for
SignalRare:Default performance constants do cover your limitations for up to 1000 simultaneous requests.