Non-blocking Ruby vs Node Libraries

I appreciate Ruby EventMachine (and similar non-blocking frameworks like Cramp) vs Node.js. I have worked with Node before, but have never worked with EventMachine. One of the ideas Ryan Dahl encourages is that the javascript library ecosystem should be similarly non-blocking in order to facilitate this. This is because Node was designed from the ground up.

My question is: can you go far in Ruby without blocking? My guess is that EventMachine is often not enough to create a full stack of web applications. If so, what other Ruby libraries support non-blocking IO (i.e. to access the database / file system / http)?

+4
source share
2 answers

You have to check a lot of work by Ilya Grigorik and his work on Synchrony and Goliath .

They help you write imperative-style asynchronous callback code (seems synchronous).

+2
source

As @Holder Just noted, there is a list of non-blocking libraries to use here with EventMachine:

https://github.com/eventmachine/eventmachine/wiki/Protocol-Implementations

+1
source

Source: https://habr.com/ru/post/1402293/


All Articles