filmov
tv
Modeling Cross-Entity Invariants
Показать описание
1. Event modeling the specifications for state changes that depend on the state of other entities is done via commands. There are a few options of keeping the story format for these specifications.
2. Event Sourcing provides a clean way of isolating online data from historic data. "Closing the books" is a strategy to ensure we don't need to repopulate using a prohibitively large data set.
3. UX/UI concerns are divided further by highlighting in blue or green where the command data comes from and where data is displayed to the user.
4. Business rules as in point 1 depend on other entities can now be illustrated in the event model by either joining that display data to the command submission in the UI, or, it can be linked to the command to show the dependency using a red arrow as this coupling is important and has many ramifications - an important one is eventual consistency.
5. Invariants that can't be broken are modeled with reservations.
6. The link from event to command - in that order - is shown to lack the important information that is the "devil in the details" of most workflow specifications omit or put a special pattern on. Here it is shown that it's composed of patterns already used in event modeling of state change and state view.
2. Event Sourcing provides a clean way of isolating online data from historic data. "Closing the books" is a strategy to ensure we don't need to repopulate using a prohibitively large data set.
3. UX/UI concerns are divided further by highlighting in blue or green where the command data comes from and where data is displayed to the user.
4. Business rules as in point 1 depend on other entities can now be illustrated in the event model by either joining that display data to the command submission in the UI, or, it can be linked to the command to show the dependency using a red arrow as this coupling is important and has many ramifications - an important one is eventual consistency.
5. Invariants that can't be broken are modeled with reservations.
6. The link from event to command - in that order - is shown to lack the important information that is the "devil in the details" of most workflow specifications omit or put a special pattern on. Here it is shown that it's composed of patterns already used in event modeling of state change and state view.
Комментарии