Ruby on Rails Background Jobs with Sidekiq (Pragmatic Bookshelf)

PragmaticBookshelf
Give your Rail's apps an instant performance boost by harnessing the power of efficient, manageable, and sustainable background processing with Sidekiq.

David Bryant Copeland @davetron5000

edited by Adaobi Obi Tulton @aotulton

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.

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.


David Bryant Copeland has over 25 years of software development experience, notable at Living Social and as Chief Software Architect at Stitch Fix. He’s grown teams from small to large and been responsible for large Rails codebases. He’s been both code monkey and director, and always maintains a focus on delivering results for users.


Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

2 766 0

Latest Threads About This Book Top

bradamr
Running into this error during the docker build: ERROR: failed to solve: process “/bin/sh -c sh -c ‘echo "deb Index of /pub/repos/apt/ $...
0 28 1
New
davetron5000
Hey, all, if you are having issues with dx/build due to lsb_release not being there, I have updated the GitHub repo with a fix. The repo ...
1 326 0
New
nigel-lowry
I’ve looked at PaymentsServiceWrapper and can’t see support for an idempotency key nor a third party API call to see if the charge_id has...
0 335 1
New
davetron5000
Hello faithful readers! If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
3 1143 19
New
PragmaticBookshelf
Give your Rail's apps an instant performance boost by harnessing the power of efficient, manageable, and sustainable background processin...
2 766 0
New

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

bradamr
Running into this error during the docker build: ERROR: failed to solve: process “/bin/sh -c sh -c ‘echo "deb Index of /pub/repos/apt/ $...
0 28 1
New

Most Active Last Three Years Top

PragmaticBookshelf
Give your Rail's apps an instant performance boost by harnessing the power of efficient, manageable, and sustainable background processin...
2 766 0
New
davetron5000
Hello faithful readers! If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
3 1143 19
New
nigel-lowry
I’ve looked at PaymentsServiceWrapper and can’t see support for an idempotency key nor a third party API call to see if the charge_id has...
0 335 1
New
davetron5000
Hey, all, if you are having issues with dx/build due to lsb_release not being there, I have updated the GitHub repo with a fix. The repo ...
1 326 0
New

Most Active Over Three Years Top

Book Info

Publisher: Pragmatic Bookshelf

Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Simply use coupon code "devtalk.com" at checkout. See full details here.