Reputation: 205
I understand what a threaded framework is (Rails, Django, Symfony2, …). And I understand what an event-driven framework is (Node.js, EventMachine, Twisted, …) and why it's great for live, chat, speed, … In addition they don't seem to cause problems for normal use cases. So:
Upvotes: 12
Views: 4532
Reputation: 19030
So where are the drawbacks of event-driven frameworks?
child_process.exec
.README.md
. Coming from the Python world, where we are used to excellent documentation, this is a big drawback. This is slowly getting better (we need more documentation like this).When should I prefer Rails to Node.js?
Why all new web server are not written with EventMachine, Twisted, or Node.js?
See above.
Will famous framework as Django or Rails turn event-driven or die?
Django and Rails will be around a long time. There are lot of apps in those frameworks, and there’s no reason to rewrite them. And there is a large talent pool, which is often a consideration when developing a new web app.
(But see this Quora answer from the lead developer of Django, endorsing Node).
Upvotes: 16