Ruby Reactor 0.4.0: Interrupts, Dashboard, and Coordination Primitives
https://dev.to/artur_paach_4b9aadd3b8ed/how-to-pause-and-resume-ruby-workflows-mid-flight-4m93
You’ve built a checkout flow. The user submits their order, you reserve inventory, charge their card, and generate a shipping label. Everything’s a Sidekiq job. It works.
Then you get the requirement: “After payment, wait for the fraud detection webhook before shipping.”
Suddenly your clean Sidekiq pipeline needs to stop, hold state for an indeterminate amount of time, and resume when Stripe calls back. Your options are:
- Polling loop (wasteful, fragile)
- Split into two jobs (now you have to manage state yourself)
- Temporal / AWS Step Functions (massive infrastructure lift)
None of these feel right. This is where Ruby Reactor interrupts come in.
Post a comment