2.6 Making Models Reactive with Scala
- Return type with explicit failure
- Do not throw
- Manage latency with
3. Designing Functional Domain Models
module, as defined in a functional domain model, is a collection of
functionsthat operate on a set of
typesand honor a set of
invariantsthat we call
domain rules3.2.2 Composition with computation the monadic form of computation is that
successpropogates forward and a single
failurein the middle exits the computation this means that all sevices we run in computation one after another need to support the monadic form of computation. 3.3 Life cycle
- Remember that
aggregateis the complete domain entity that describes a central concept of the domain model.
- Favour skinny domain model.
- Factories return objects which are minimally valid.