Jump to ratings and reviews
Rate this book

Ruby on Rails Background Jobs with Sidekiq

Rate this book
One of the best ways to improve your Rails app’s performance is to use background jobs with Sidekiq. While Sidekiq is easy to get set up, you need to do more than just move code around to reap the benefits. In this book, you’ll get solutions to what sort of code should go into a Sidekiq job and how to manage those jobs.

You’ll create a Sidekiq configuration that will serve as a solid foundation for your app, including how to be notified when jobs inevitably fail. You’ll then tame alerting fatigue by designing idempotent jobs that can be safely retried in the face of the types of transient failures that are common in networked applications, all without alerting you until action is needed. With that foundation, you’ll get a conceptual framework for general monitoring and alerting around your Sidekiq installation and the Redis database it uses, as well as practical tips for organizing the code around your Sidekiq jobs. You’ll also learn valuable testing strategies for code that uses Sidekiq jobs.

In no time at all you’ll build a Rails app using Sidekiq that is efficient, manageable, and sustainable.

Using Sidekiq for background jobs is a great way to scale and grow your app. This book will give you a solid, practical foundation for creating resilient, well-tested, self-healing code that uses background jobs. You’ll be able to simulate real-world failure modes and learn how to write idempotent code that can be safely run with Sidekiq.

Buy this DRM-free Pragmatic Bookshelf ebook today!

Using Sidekiq for background jobs is a great way to scale and grow your app. This book will give you a solid, practical foundation for creating resilient, well-tested, self-healing code that uses background jobs. You’ll be able to simulate real-world failure modes and learn how to write idempotent code that can be safely run with Sidekiq.

126 pages, Kindle Edition

Published November 1, 2023

4 people are currently reading
6 people want to read

About the author

David Bryant Copeland

7 books15 followers
David Copeland is a programmer and author. He wrote "The Senior Software Engineer" and "Build Awesome Command-Line Applications in Ruby", and has over 16 years of professional development experience. He's managed high-performance, high-traffic systems at LivingSocial, helped build the engineering team at Opower, and worked consulting gigs both large and small. Currently, he's a lead engineer at fashion start-up Stitch Fix, building a platform that will change the retail shopping experience.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (12%)
4 stars
4 (50%)
3 stars
3 (37%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
30 reviews
September 1, 2023
Very quick read: almost a primer on a Sidekiq with rails. It did teach me a couple of new features and also refreshed my memory on others.

Otherwise mostly applicable for people new to writing and managing background jobs, and does a fine job towards that audience.
Profile Image for facundo espinosa.
3 reviews
December 19, 2023
Great book for devs starting with Sidekiq, but it contains some nice tips for people that have been using it for some time. It’s a short book, so it’s worth to read it.
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.