← Graph

Long-running automations and sagas

question 2 connections

Audience asks who executes commands when an automation is long-running and must wait for multiple events before acting. Nowak: for functional purists you can pipe reactions introducing intermediate decide functions with their own internal state; in practice he introduces a saga that consumes multiple events, possibly emits artificial intermediate events for the process, and ultimately returns a command to be executed.

answer_summary
Introduce a saga that consumes multiple events (optionally artificial intermediate ones) and returns the command — or, for purists, chain decide functions with internal state.
question Long-running automations and sagas
about
Saga Pattern concept
Answer introduces sagas for multi-event automations.
question Long-running automations and sagas
asked_at
Audience Q&A question about executing long-running automations.

Provenance

Read by
3 extractions