J
J
Jeket2014-10-01 15:32:51
Ruby on Rails
Jeket, 2014-10-01 15:32:51

What is the difference between using EventMachine and Webmachine for api?

There are two applications, both work as api.
The first uses EventMachine, the second Webmachine.
What are the features / advantages of this or that approach?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Polushkin, 2015-02-12
@dmitry-polushkin

Eventmachine uses epoll/kqueue: https://github.com/eventmachine/eventmachine/blob/... I think the only advantage is speed. But the minuses will be typed in order. I personally encountered a set of glitches and shortcomings (lack of features).
Webmachine uses celluloid, which in turn uses native threads. In theory, celluloid is much better, because. it is easier to change, all code is written in ruby ​​and does not require compilation, unlike eventmachine. It turns out that webmachine should work in all ruby ​​implementations (rbx, mri, jruby).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question