November 2023
Beginner to intermediate
80 pages
2h 1m
English
Putting flaky code in a Sidekiq job is a great way to have it automatically fix itself by retrying. But is all code safe to just retry? What if we charged the user some money, but failed to send them their confirmation email? We’d retry the job and charge them again! In this chapter, we’ll learn about idempotence, a concept we have to apply to make jobs safe to retry. It’s complicated, but we’ll also learn a few practical techniques for making jobs idempotent.
Read now
Unlock full access