views:

193

answers:

4

Thinks at a backgammon online multiplayer game with over 100, or even 1000 online users. The game communication is done using Ajax + 3 seconds Comet connection interval + ASP.NET technology. Is this a real scenario ?

Didn't so many Comet open connections block the server resulting in big latency ?

+1  A: 

No it is not scalable. You need to write a light weight server to handle connections. There are already light weight servers written both commercial and open source.

Adeel
+1  A: 

The answer here is incorrect. IIS scales great with comet, as evidenced by WebSync.

jvenema
A: 

It's doable.

IIS/ASP.NET queues requests, and the queue is serviced by the .NET thread pool. The traditional argument is that a thread blocks whilst it does the work which would be unscalable for the COMET scenarios.

However, ASP.NET offers async http handlers, which means the thread gets returned to the thread pool until the response is ready to be sent back to the client. Check out my blog articles on this matter

http://neilmosafi.blogspot.com/2009/03/comet-pushing-to-web-browser.html http://neilmosafi.blogspot.com/2009/03/comet-bayeux-protocol-and-aspnet.html

Neil Mosafi
+1  A: 

Scalable? Sure!

The scalability problem is related to the back end solution not IIS. search google for "PokeIn" comet ajax library. (absolutely for ASP.NET and free)

BigbangO
In addition, PokeIn works with Mono under Linux too.
Heidi