3 ms·
Ruby does via libraries ( https://github.com/socketry/async https://github.com/socketry/async for instance). Which is my point. Pick a language that makes it e
by lostcolony 6y ago
Ruby does via libraries ( https://github.com/socketry/async https://github.com/socketry/async for instance). Which is my point. Pick a language that makes it easy.
Even then, it's a bit misleading; make it so concurrency, in general, is easy and efficient. Async is immaterial if you have green threads or similar (a la Go or Erlang). Point is, you shouldn't risk a model that ends up unnecessarily blocking/synchronizing execution.
- t-writescode 6y agoThis is news to me. Very nice :) Do you have any examples of this being used with Rails? I'm having a bit of trouble finding examples of both Socketry and Rails being used concurrently; and, I will admit, my Rails knowledge is a bit .... intermediate or less.
- lostcolony 6y agoI don't I'm afraid; I've been out of the ecosystem for a while (and was never -that- involved with it).
- Lio 6y agoI'd suggest having a look at Concurrent Ruby[1], it's one of ActiveSupport's dependencies so you get it for "free" in Rails. 1. https://github.com/ruby-concurrency/concurrent-ruby https://github.com/ruby-concurrency/concurrent-ruby