Implementing DDD, CQRS and Event Sourcing in Node.js
Implementing DDD, CQRS and Event Sourcing in Node.js
$24.99
Minimum price
$29.99
Suggested price
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.

About the Author

Alex Lawrence
Alex Lawrence

I am a software developer with knowledge and experience in architecture, automation, backend, frontend, lecturing, operations and testing. Since 2014, my focus lies on full stack web application development with JavaScript as language and Node.js as backend runtime. As part of an application architecture, I apply and implement CQRS and/or Event Sourcing wherever it makes sense. For the frontend, I work with many different libraries and tools, including the obligatory use of HTML and (S)CSS. Most recently, I started to work with React and redux. Also, I am learning more about the theory and concepts of Functional Programming. Since a few years, I am a strong supporter for Free/Libre Open Source Software.

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...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub