RIDDL Documentation
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

1 - Same Event

Question:

Should separate commands on the same entity all yield the same event, containing the exact changed entity?

Examples:

event UserModified {
    id: MemberId,
    info: Info,
    members: MemberId*,
    contacts: Contacts,
}

Suggestions

In an event driven system it is important to have distinct events for each operation such that there is a structural difference in the responses. This pattern is advised against for diverse sets of operations, and keeping in mind advantages of other patterns mentioned in this section.