Chapter 4. Modeling the Actors

We are now ready to dive head first into development, and we have a solid structure in place to help us deal with the arising changes that will come no matter what. It is time to think more about what the different components of our system are and how they interact.

Interaction in systems happens on multiple levels. The operating system interacts with the language runtime, the runtime interacts with our code, and then inside our code we create objects calling back out and calling other processes and so on. We have already seen how our domain objects can interact with the underlying framework and we can imagine how the code calls different libraries. When structuring interactions, it is important to know about the ...

Get JavaScript Domain-Driven Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.