문제

I want to build a comet-based application and would like it to be able to sustain up to 1000 concurrent connections. As I understand, Tornado has the advantage of not spawning one thread per request thus allowing it to handle thousands of long poll requests easily.

도움이 되었습니까?

해결책

I think Manos de Mono is what you are looking for. It is still pretty early, but looks promising.

다른 팁

To process long polling requests with ASP.NET / IIS you want to implement a custom HTTP handler and implement IHttpAsyncHandler. This allows you to begin processing the request, utilizing an ASP.NET worker thread, and then return the thread to the thread pool while waiting on an event to trigger a response.

http://msdn.microsoft.com/en-us/library/ms227433.aspx

Asynchronous HTTP handlers enable you to start an external process (such as a method call to a remote server) while the handler continues processing. The handler can continue without waiting for the external process to finish.

ASP.NET MVC also provides an AsyncController to simplify implementing asynchronous request processing within this framework.

http://msdn.microsoft.com/en-us/library/ee728598.aspx

IS it http://webserver.codeplex.com/ , what you're looking for?

you can try Mongrel2 with dot net bindings. It is very fast language agnostic web server. It works via zeroMQ.

I'm working on a straight port of Tornado to C#. It's not 100% yet, but getting there.

https://github.com/swax/Tornado.Net

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top