Sorin
Sorin

Reputation: 2288

Is ajax + comet + asp.net scalable?

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 ?

Upvotes: 4

Views: 956

Answers (4)

BigbangO
BigbangO

Reputation: 820

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)

Upvotes: 3

Neil Mosafi
Neil Mosafi

Reputation: 460

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

Upvotes: 0

Jerod Venema
Jerod Venema

Reputation: 44642

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

Upvotes: 3

Adeel
Adeel

Reputation: 19238

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.

Upvotes: -1

Related Questions