django_evserver is simple http server
for Django applications. It's based on
libevent library. The main advantage
of django_evserver is that it provides
methods of preempting django views.
You can render a site in several
chunks, each of them can be handled by
different django view.
Using this idea it's possible to use
django_evserver as comet server for
django applications.
一个选项是Netty,基于JBoss的Java NIO的客户机-服务器套接字框架。为了比较和讨论see here。据报道,它在四核服务器上同时处理100000个开放连接。
我需要做一些非常相似的事情。我找到了这个,但还没来得及好好看看:
http://code.google.com/p/django-evserver/
我建议查看Twisted,他们的Twisted.web服务器,以及在Divmod上完成的comet工作。它们可以处理比传统的线程或基于进程的服务器多得多的并发连接,这正是您需要的。而且,是的,我使用Twisted来构建COMET的系统,同时使用其他东西来构建更面向前端的web应用程序。每一部分都做得很好。
相关问题 更多 >
编程相关推荐