EventMachine vs Node.js

前端 未结 5 1115
既然无缘
既然无缘 2021-01-30 04:21

I\'m going to develop a collaborative site, and one of the features will be collaborative editing with realtime changes. i.e. when two or more users are editing the same doc, th

5条回答
  •  -上瘾入骨i
    2021-01-30 04:57

    Node.js

    You get far better control low level control over what's going in. You can include general libraries to build on top of node.js to tweak your level of abstraction to your own liking. For example you can use connect or express depending on whether you want a view engine written for you. You can use socket.io or now depending on how much you want your client-server connection abstracted. You can opt to include any of numerous MVC libraries or write your own.

    Event-Machine

    An asynchronous IO library just like node.js

    It comes down to a Ruby vs JavaScript preference, how much flexibility you want with abstractions or lack of abstractions and whether you want to use node as your actual web server.

提交回复
热议问题