Sidekiq Is the Best Job Backend for Most Teams
Understand how to configure Sidekiq as the preferred background job backend for Rails apps. Learn to manage Redis configuration, environment variables, and process management with Foreman to run jobs effectively in development and test environments.
We'll cover the following...
We'll cover the following...
We will go quickly through this setup. Sidekiq’s documentation is great and can provide us with many details about how it works. The point of this chapter is to talk about job code, not Sidekiq, but we need something set up, and we want to use something that is both realistic and substantial. We are likely to encounter Sidekiq in the real world, and we are very likely to encounter a complex job backend configuration.
First, we’ll add the Sidekiq gem to Gemfile:
Then, we’ll install it:
bundle install
# «lots of output»
...