← Graph

Where do calculations live in read models?

question 2 connections

Audience asks where calculations (e.g. adding a product to a cart and computing the total) are expressed in Event Modeling terminology when many read models need the same derived value. Nowak: calculations live in the same place as business rules on a view — specified via given/when/then examples (place events before the view and assert the expected outcome). In implementation, the calculation is repeated per read model as a matter of team preference/convention rather than centralized.

answer_summary
Specified by given/when/then examples per view; implementation-wise Nowak repeats the calculation in each read model and treats it as a team convention.
question Where do calculations live in read models?
about
Event Modeling concept
Asks how calculations are expressed in Event Modeling terminology.
question Where do calculations live in read models?
asked_at
Audience Q&A question about cart-total-style calculations.

Provenance