Reactors
A projection answers “what does this look like now?” A reactor answers “what should happen because of this?” After an author registration commits, a reactor can send a welcome email, update the search index, or start the next step. Keep follow-up that depends on committed facts separate from the original command’s decision.
React to an event is the place to start: when to reach for a reactor, how method dispatch works by event type, and why idempotency matters. The topics here go deeper.
Topics
Section titled “Topics”| Topic | Description |
|---|---|
| Returning commands as side effects | Let a reactor trigger follow-up commands by returning them — Arc executes them through the command pipeline automatically. |