Using RequestStore with asynchronous I/O in Rails apps
23-Nov-2021 2378
Did you know it’s possible to write Rails apps using non-blocking, asynchronous I/O, the way Node apps work? Your app handles each web request in a fiber. Whenever that fiber fires off a blocking operation like a network call, it can yield the current fiber and allow another fiber to use the CPU. In fact it’s more convenient than Node because your methods are colorless—there are no issues with synchronous methods calling async methods.
Using RequestStore with asynchronous I/O in Rails apps #ruby #rubydeveloper #rubyonrails #Using #RequestStore #asynchronous #Rails https://rubyonrails.ba/link/using-requeststore-with-asynchronous-i-o-in-rails-apps