Rich vs. Anemic Domain Model

Learn the difference between rich and anemic domain models and which can help you write maintainable code.

Our architecture style does not address the problem of how our domain model is to be implemented. This is a blessing because we can do what seems right in our context and a curse because we don’t have any guidelines to help us.

A frequent discussion is whether to implement a rich domain model following the DDDDomain-driven design philosophy or an “anemic” domain model. I’m not going to favor one of the two, but let’s discuss how each of these fits into our architecture.

Get hands-on with 1200+ tech skills courses.