Skip to content

Reactors

A projection answers “what does this look like now?” A reactor answers “what should happen because of this?” When an author is registered, something has to send the welcome email, tell the search index, or kick off the next step — and none of that belongs in the command, which should only record that the fact happened.

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.

TopicDescription
Returning commands as side effectsLet a reactor trigger follow-up commands by returning them — Arc executes them through the command pipeline automatically.