RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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:

  1. Polling loop (wasteful, fragile)
  2. Split into two jobs (now you have to manage state yourself)
  3. Temporal / AWS Step Functions (massive infrastructure lift)

None of these feel right. This is where Ruby Reactor interrupts come in.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in