Why is Rails not fully supporting writing evented code out out the box (stackoverflow.com)
The requirements for supporting eventing in rails are:
1. Evented server (thin, rainbows) which runs a reactor 2. Fibers (Ruby 1.9.3) in order to make writing evented code easier, else we could have used threads. 3. All gems evented (example mysql2).
Nodejs showed the obvious benefits of evented programming. So why is the rails community adopting eventmachine? I think one of the reasons rails is not fully portable to eventmachine is because of the dependency on underlying gems which may not be evented. But does anyone know if there is a plan to make a move in that direction?
It is not like Rails cannot do what Nodejs does, but Nodejs started out by enforcing evented programming on all the library makers, so by default any dependency that you add to package.json in node, you know that it will be evented and will work with nodejs out of the box.
0 comments
[ 3.8 ms ] story [ 9.5 ms ] threadNo comments yet.