Implementing DDD, CQRS and Event Sourcing in Node.js
This book is 70% complete
Last updated on 2019-02-19
About the Book
This book explains and illustrates how to implement Domain Driven Design, Command Query Responsibility Segregation and Event Sourcing in Node.js. The reader is taught to build software that is problem centered, well designed, event based, reactive and scalable. Domain Driven Design (DDD) is a methodology that focuses on the actual problem to solve and its involved knowledge areas. Command Query Responsibility Segregation (CQRS) promotes the separation of an application into a read side and a write side. Event Sourcing is an architectural style that centers around the idea of representing state as a series of immutable events. The concepts are described in detail and put into practice with standalone examples and a fully functional sample application. All code is written in JavaScript and uses Node.js as runtime.
Table of Contents
-
Preface
- Current status
- About the author
- Target audience
- Formatting and highlighting
- Structure and overview
- Code examples
-
Chapter 1: Domain
- Technological and business domains
- Domain Experts
- Subdomains and their types
- Identification of Subdomains
- Sample application: Domains
-
Chapter 2: Domain Model
- Tangibility
- Difference to expert knowledge
- Model creation
- Representation possibilities
- Ubiquitous Language
- Sample application: Domain Model
-
Chapter 3: Bounded Context
- Model and context size
- Relation to subdomains
- Contexts and language
- Technological boundaries
- Sample application: Bounded Contexts
-
Chapter 4: Useful code qualities
- Model binding
- Refactoring
- Readability
- Behavior and state
- Focus and responsibilities
- Command-Query-Separation
-
Chapter 5: Value Objects, Entities and Services
- Value Objects
- Entities
- Domain Services
- Invariants
- Sample application: Model implementation
-
Chapter 6: Domain Events
- Naming conventions
- Structure and content
- Distribution and processing
- Advanced distribution scenarios
- Sample application: Context integration
-
Chapter 7: Aggregates
- Transactions
- Structure and handling
- Concurrency
- Design considerations
- Eventual Consistency
- Sample application: Aggregates and consistency
-
Chapter 8: Repositories
- Focus on the model
- Design and implementation
- Optimistic Concurrency
- Interaction with Domain Events
- Sample application: Repositories and event publishing
- Chapter 9: Application and Infrastructure
- Chapter 10: CQRS
- Chapter 11: Event Sourcing
- Chapter 12: User interface
- Bibliography
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...