Skip to Content
Patterns, Principles, and Practices of Domain-Driven Design
book

Patterns, Principles, and Practices of Domain-Driven Design

by Scott Millett, Nick Tune
May 2015
Intermediate to advanced
792 pages
22h 32m
English
Wrox
Content preview from Patterns, Principles, and Practices of Domain-Driven Design

5 Domain Model Implementation Patterns

WHAT’S IN THIS CHAPTER?

  • The role of the domain layer in an application
  • Patterns to implement your domain model in code
  • How to select the right design pattern to represent your model

Wrox.com Code Downloads for This Chapter

The wrox.com code downloads for this chapter are found at www.wrox.com/go/domaindrivendesign on the Download Code tab. The code is in the Chapter 5 download and individually named according to the names throughout the chapter.

The focus of DDD is to manage complexity. As you have read, this is achieved by placing a model of the domain at the center of your software to fulfill the behaviors of your application. There are various patterns at your disposal to represent the model in code form. In Chapter 3, “Focusing on the Core Domain,” you were introduced to subdomains and the reality that more than one model may exist in large applications. However, not all models will be of equal complexity or importance. Some will contain complex domain logic, while others will simply be responsible for the management of data, therefore it is wise to choose the most appropriate design pattern to represent the model in code.

It is important to understand that there is no best practice when it comes to selecting a pattern to represent your domain logic. As long as you isolate domain logic from technical concerns you can implement Model-Driven Design and hence Domain-Driven Design.

This chapter presents the design patterns at your ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Unit Testing Principles, Practices, and Patterns

Unit Testing Principles, Practices, and Patterns

Vladimir Khorikov
Design Patterns: Elements of Reusable Object-Oriented Software

Design Patterns: Elements of Reusable Object-Oriented Software

Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides
Head First Design Patterns, 2nd Edition

Head First Design Patterns, 2nd Edition

Eric Freeman, Elisabeth Robson

Publisher Resources

ISBN: 9781118714706Purchase book