Skip to content

Instantly share code, notes, and snippets.

@unlight
Last active April 9, 2022 11:56
Show Gist options
  • Save unlight/0b50949c0fc7fcc3164ffa1716acae32 to your computer and use it in GitHub Desktop.
Save unlight/0b50949c0fc7fcc3164ffa1716acae32 to your computer and use it in GitHub Desktop.
cqrs eventsourcing
  1. Command: write, single handler, Event: past sense, many handlers
  2. Domain Events: Inside events, Integration events: Outside events (Outside from service, service boundrary)
  3. External Events == Integration Events != Domain Events
  4. Anti pattern CRUD sourcing: EntryUpdated, ProductCreated, ProductDeleted, etc. (use business value event: InventoryAdjusted, PriceIncreased. etc)
  5. Propery Sourcing: events like UserEmailChanged, UserNameChanged, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment