O'Reilly logo

Implementing Domain-Driven Design by Vaughn Vernon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wrap-Up

In this chapter we discussed what a Domain Service is and what it is not, and we analyzed when we should use a Service rather than an operation on an Entity or Value Object. There was more:

• You learned that recognizing a legitimate need for a Service is necessary to avoid overusing Services.

• You were reminded that overuse of Domain Services leads to Anemic Domain Model, an anti-pattern.

• You saw the specific steps of general practice when implementing a Service.

• You considered the pluses and minuses of using a Separated Interface.

• You reviewed a sample calculation process from the Agile Project Management Context.

• Finally, you considered how to provide exemplary tests to demonstrate how to use the Services our models provide. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required