November 2023
Beginner to intermediate
80 pages
2h 1m
English
A common use of Sidekiq jobs is to move long-running code out of the web request/response cycle and into a background job to free up web server resources to handle other requests. This often means that the user can get a response much more quickly since they won’t have to wait for the slow code from, say, the payments service, to complete. Let’s move all three HTTP calls out of the main request/response path and into a Sidekiq job.
The example app’s order creation logic makes calls to payments, email, and order fulfillment services over HTTP. If these were real services provided by third parties, the order creation feature would be very slow, and our app’s web servers would spend a lot of ...
Read now
Unlock full access