Introduction
Sidekiq is a reliable, well-supported, high-performing way to run code in the background of any Rails app. According to Planet Argon’s 2022 Ruby on Rails Survey,[1] 58 percent of the respondents use it for their background job needs, with Delayed Job being the next most popular at only 14 percent. This is no accident. Whether you need to offload slow code out of a controller action, or make a flaky API call more fault tolerant, Sidekiq is the way to do that.
Even though you just need a few lines of code to run a Sidekiq job, there is quite a bit of complexity hiding in the shadows. A Rails app with Sidekiq jobs is really a distributed system. It has all the same challenges as a massive microservices-based architecture. Your jobs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access