3 ms·
The event model that Nodejs uses is the same as the twisted framework. The twisted framework is more mature, but does not have as many developers and a growing
by mateo411 12y ago
The event model that Nodejs uses is the same as the twisted framework. The twisted framework is more mature, but does not have as many developers and a growing ecosystem like the nodejs. I don't think this is due to any problems with the Twisted framework, it's just that Nodejs has greater mindshare.
When I've deployed django applications we used apache and mod wsgi. This works by starting up a bunch of apache processes which load up a python interpreter. Each HTTP request that comes into the application is handled by an apache process which contains a python interpreter. This means that you have to use 100-200 Mb for each python requests. This is the amount of memory it takes to run a python interpreter. The number of mod wsgi processes that you can run at a single time determines the number of HTTP requests that you can handle. For the same amount of memory you could handle more HTTP requests using nodejs or twisted or any other framework that uses the event model.