How many WCF connections can a single host handle?
Posted
by mafutrct
on Stack Overflow
See other posts from Stack Overflow
or by mafutrct
Published on 2010-03-20T14:08:32Z
Indexed on
2010/03/20
14:11 UTC
Read the original article
Hit count: 244
wcf
I'll try to explain this with an example. I'm writing a chat application. There are users that can join chat rooms. A user has to log in before he can join any room.
Currently, there is a single service. A user logs in using this service. Then, the user sends and receives messages for all joined rooms via this single service.
channel.Login("Hans Moleman", "password");
channel.JoinRoom("name of room");
channel.SendChat("name of room", "hello");
I'm thinking about changing the design so there is a new WCF connection for each joined room. In the actual app, the number of connections is likely going to be in the range of 10-100, possibly more.
Is this a good idea? Or are ~100 connections per client too much? The server should be able to handle many clients (range 100-1000, later up to 10k). In case it matters, I'm using NetTcpBinding.
© Stack Overflow or respective owner