Is ajax + comet + asp.net scalable?

Thinking of a multiplayer online backgammon game with over 100 or even thousands of online users. Game communication is performed using Ajax + 3 seconds Comet connection interval + ASP.NET technology. Is this a real scenario?

Are there not so many comets open connections block the server, which leads to a long delay?

+4
source share
4 answers

No, it does not scale. You need to write a lightweight server to handle connections. There are already lightweight servers written in both commercial and open source.

-1
source

The answer here is incorrect. IIS does a great job with comets, as evidenced by WebSync .

+3
source

Scalable? Of course!

The scalability issue is related to solving the inverse problem, not IIS. Search google for the " PokeIn " ajax comet library. (absolutely for ASP.NET and free)

+3
source

It is doable.

The IIS / ASP.NET queue requests, and the queue is served by the .NET thread pool. The traditional argument is that the thread blocks while it does work that will not be available to COMET scripts.

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

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

0
source

Source: https://habr.com/ru/post/1307537/


All Articles