My Adventure With Async Ruby
26-Jan-2023 917
I was working on an app that generated a Markdown article. The article content had some dynamic parts that were fetched via HTTP requests. While not a huge problem, this made the article generation slow.Ruby 3.0 introduced the fiber scheduler interface, which is used by the async gem to run tasks concurrently. It’s particularly useful for I/O-bound workloads, so I decided to give it a try. This post is a summary of my journey in figuring out how to use it.
My Adventure With Async Ruby #ruby #rubydeveloper #rubyonrails #Adventure #Async https://rubyonrails.ba/link/my-adventure-with-async-ruby