Talk type: Talk

Rich Model and Anemic Model: enemies or friends

  • Talk in Russian
Presentation pdf

There is a lot of debate in the community about whether Rich or Anemic is the best model to use. At the same time, the camp of consultants actively supports the Rich Model, while the Anemic Model is popular among developers. Let's talk about the model without prejudices and from a practical point of view. First of all, let's define the terms Rich Model and Anemic Model, and the criteria by which we can distinguish them. Let's see if we should use two data models: a business model for the business logic and a separate data model for the base mapping. We'll see which cases are impossible to implement in the canonical Rich model. Let's discuss if the anemic model is as terrible as it is criticized. And come to the pragmatic model, which is the most common in practice.


Invited experts