Skip to content
0:00 / 0:00

#reactor#sagapattern#ashframework

Complex Workflows in Elixir with Reactor (+ AI Agents)

Code and Stuff

6.6K subscribers • 19 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

10K views1 year ago1 recommendation

Software designDistributed systemsElixir and ErlangDesign patternsAI agents and tool use

How to orchestrate complex workflows, implement the saga pattern with automatic rollbacks, and build AI agents using the Reactor library in Elixir.

Reactor is an Elixir library for orchestrating complex workflows with automatic rollbacks, sagas, and concurrent execution. In this video, we build a travel booking system that coordinates flights, hotels, and emails—then turn it into an AI agent using Ash AI. Reactor handles the complexity of distributed transactions across multiple services, automatically undoing operations when something fails downstream. Perfect for payment gateways, reservation systems, or any multi-step process that needs reliability. We'll cover: - Dependency graphs and concurrent step execution - Implementing sagas with compensating actions - Retries and error handling strategies - Integration with Ash Framework - Building an AI travel agent with function calling Links: Screen recording software I use (affiliate): screen.studio/@Yy75o Reactor Livebook: gist.github.com/ChristianAlexander/a83a7189c1509939ac3b7b881… Project Repo: github.com/ChristianAlexander/travel_agency Reactor docs: hexdocs.pm/reactor/readme.html Reactor cheat sheet: hexdocs.pm/reactor/reactor-cheatsheet.html Ash AI: github.com/ash-project/ash_ai Timestamps: What's Reactor? - Livebook Reactor Demo - The AI Part -

Why it's here

1 person recommends this

What people say. Recommended as an excellent introduction to managing complex workflows and sagas in Elixir using Reactor.

u/GiraffeFireAlchemistin r/elixir • Recommends

Complex Workflows in Elixir with Reactor (+ AI Agents)