One concept, several models
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
accept that the same word has different models per context.
Planned topics
- "Product" in Catalog has description and images; in Inventory it is a SKU with a quantity; in Orders it is a name and price snapshot.
- One shared
Productclass for everyone creates coupling and endless changes. - Each context keeps its own small model and maps at the edge.
- Share identifiers (
productId), not whole objects. - An anti-corruption layer translates an external model into your own.
Draft outline details
Demonstration
three small Product classes side by side with their fields.
Check your understanding
What do contexts share about a product?
Show answer
The ID, not the whole model.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.