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!

CMDx 2.0: faster, leaner service objects for Ruby

CMDx 2.0 is a full runtime rewrite focused on speed, ergonomics, and observability for service-object-style business logic.

Highlights:

Halts are ~2.5× faster, workflow failures ~3×, allocations down 50–80%.

  • Faster runtime — frozen results, fiber-local chains, copy-on-write registries, and a slimmer hot path
  • Cleaner task APIdef work + Task.execute / execute!, declared outputs, around_execution, pattern matching on Result
  • Saga-style workflows — automatic rollback across groups, parallel execution with :threads or :fibers, pluggable merge strategies
  • Better failure handlingFault.for? / .reason? / .matches? matchers you can rescue, retries with built-in jitter strategies (:exponential, :fibonacci, :decorrelated_jitter)
  • First-class observability — telemetry pub/sub, correlation ids threaded through every task, structured logs out of the box
  • Lighter footprint — stdlib only at runtime (no ActiveSupport), Ruby 3.3+

Manpages:

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