November 2023
Beginner to intermediate
80 pages
2h 1m
English
We can’t cover every single aspect of Sidekiq or background jobs in this book. While we’ve gone through common and critical aspects of running Sidekiq, there are a few other areas you may wish to explore or know about.
The Rails CurrentAttributes class allows you to store request-scoped data in a common location available to all classes.[27] For example, you could put the currently logged-in user’s ID into CurrentAttributes. Since CurrentAttributes uses memory, it may seem that when you queue a job, that memory won’t be available when the job is executed.
It’s true that the memory used by CurrentAttributes won’t be available, but Sidekiq can preserve this for ...
Read now
Unlock full access