Documenting the Meaning of a Domain Event

An event can record an actual occurrence or an intent. Give it a stable identity and a meaning appropriate to its point in the lifecycle.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace two names
  2. Check a safe consumer

Trace two names

ArticlePublished can mean an approved revision became public. PublishRequested can record intent before review. Each allows different downstream actions. See states and transitions.

Check a safe consumer

A search index should use an approved version when following the publication event. Publishing events after a write provides that boundary.[1]

References

  1. David L. Parnas, On the Criteria to Be Used in Decomposing Systems into Modules, CMU-CS-71-101 ↩