jimsynz
Ash Core Team
It’s been a long time coming, but Reactor has finally reached 1.0.
For those unfamiliar, Reactor is a dynamic, concurrent, dependency-resolving saga orchestrator. In practical terms: it lets you define complex workflows as a series of steps with automatic dependency
resolution, concurrent execution, and built-in compensation/rollback when things go wrong.
defmodule CreateOrder do
use Reactor
input :customer_id
input :items
step :validate_inventory do
argument :items, input(:items)
run fn %{items: items} -> InventoryService.check(items) end
end
step :charge_payment do
argument :customer_id, input(:customer_id)
argument :items, result(:validate_inventory)
run fn args -> PaymentService.charge(args.customer_id, args.items) end
undo fn args, _result -> PaymentService.refund(args.customer_id) end
end
step :create_shipment do
argument :payment, result(:charge_payment)
argument :items, result(:validate_inventory)
run fn args -> ShippingService.create(args) end
end
return :create_shipment
end
Why 1.0 now?
Honestly, Reactor has been production-ready for quite some time. The 1.0 version was prompted by a couple of small breaking changes that needed a major version bump anyway, so it felt like the right moment
to make the stability commitment official.
Highlights since the early days
- Concurrent execution - Steps run in parallel where dependencies allow, with configurable concurrency limits
- Composition - Embed sub-reactors within reactors
- Control flow - switch, map, group, and around steps for complex workflows
- Middleware - Hook into the execution lifecycle (including telemetry out of the box)
- Guards and conditions - Conditional step execution with where and guard
- Mermaid diagrams - Visualise your workflows
- Backoff support - Configurable retry strategies
- Full undo support - Including after successful completion
Links
- reactor v1.0.2 — Documentation
- GitHub - ash-project/reactor: Reactor is a dynamic, concurrent, dependency resolving saga orchestrator. · GitHub
- Your First Reactor — reactor v1.0.2
Questions and feedback welcome here or in the reactor channel on the Ash discord Ash Framework
Trending in News & Updates
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New
I’ll be using this thread to share Hologram patch release announcements. Minor releases will continue to get dedicated threads with blog ...
New
This release unifies configuration for queues, repos, and services, swaps opaque timing integers for readable durations, and backports pe...
New
:heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::hea...
New
NatureWhistle v0.4.1 is out! :tada:
This release is a pretty significant step forward for the project.
When I first built NatureWhistle,...
New
Aludel 0.7.0 is released :tada:
Since 0.5.0, Aludel has grown into a much more complete LLM evaluation toolkit for Elixir and Phoenix app...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming









