Snippets of Text

Snippets of Text

112: Embracing Domain Events the Interface

Event-analog vs Event-command when defining interfaces between sub-modules

Snippets Press's avatar
Snippets Press
May 04, 2023
∙ Paid

Welcome to Snippets of Text— Today’s Snippets are about domain events and their relationship with API design. Let me know your thoughts in the comments.

a glass filled with a drink sitting on top of a table

Off Topic: Embracing Domain Events in the Interface

The emitter of the event doesn't know which processors (or functions) will consume it, and the event becomes the API. This decoupling allows the consumi…

Keep reading with a 7-day free trial

Subscribe to Snippets of Text to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Rafael George
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture