Monitoring Sidekiq Performance
Web application performance is much deeper than we have space for in this book. Managing it depends on the tools you are using. Nevertheless, you need a foundation on what to measure and how to think about it. In the context of Sidekiq, there are four levels where you want to be able to observe the behavior of your app, starting from highest level to lowest level:
-
Business Function—This an operation that our app exists to perform (in our case, creating orders). How many are created over time? How long does it take? How long did the user wait?
-
Job Performance—This is how specific jobs are performing. How many jobs were queued of each type? How long did they take to complete? How many failed and were retried? ...
Get Ruby on Rails Background Jobs with Sidekiq now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.