ryan-mars / stochastic

TypeScript framework for building event-driven services. Easily go from Event Storming → Code.
MIT License
6 stars 1 forks source link

Policy #10

Closed ryan-mars closed 3 years ago

ryan-mars commented 3 years ago
Software Model

Illustrations ©️ Avanscoperta

sam-goodwin commented 3 years ago

Is there a snippet from the event storming material we can include here, like we did for Bounded Context #7? I thought that was especially helpful.

ryan-mars commented 3 years ago

Policies are probably the most interesting thing to model in EventStorming. They cover all the spectrum of organisation reactions from human behaviours to automation including:

  • habits
  • unconscious reactions
  • Tacit agreements
  • Explicit agreements
  • Codified or corporate rules
  • Inconsistent rules (different actors implementing the same rule in different ways)
  • Listeners (stateless listeners performing easy tasks, like sending notifications)
  • Process Managers and Sagas

The link between an event and its consequences can be encapsulated by a policy, but when the event-reaction combination is too obvious, we might miss the link. Forcing ourself to obey the rule: There has to be a lilac between the orange and the blue ...is a good way to force yourself into asking deeper questions about the nature of the policy.