Implementing DDD, CQRS and Event Sourcing in Node.js
Implementing DDD, CQRS and Event Sourcing in Node.js (Book & Code)
$24.99
Minimum price
$29.99
Suggested price
Implementing DDD, CQRS and Event Sourcing in Node.js

This book is 75% complete

Last updated on 2019-08-17

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 theory 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. This book includes a source code bundle with all standalone examples and the sample application implementation. The bundle contains more than 5000 lines of JS code.

  • Share this book

  • Feedback

    You must own a copy of this Book to access the forums

    Email the Author(s)

About the Author

Alex Lawrence
Alex Lawrence

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

Packages

Book & Code

Includes:

  • extras
    Code (release 20190817)
  • English

  • PDF

  • EPUB

  • MOBI

  • APP

$24.99
Minimum price
$29.99
Suggested price
Book & Code - 5 copies (20% discount)

This package is meant for 5 individual readers, such as a team.

Includes:

  • extras
    Code (release 20190817)
  • English

  • PDF

  • EPUB

  • MOBI

  • APP

$99.99
Minimum price
$119.99
Suggested price
Book & Code - 10 copies (30% discount)

This book is meant for 10 individual readers.

Includes:

  • extras
    Code (release 20190817)
  • English

  • PDF

  • EPUB

  • MOBI

  • APP

$174.99
Minimum price
$209.99
Suggested price

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: Software architecture
    • Parts of a software
    • Layered Architecture
    • Onion Architecture
    • Sample application: Architecture
  • Chapter 5: Useful code qualities
    • Model binding
    • Refactoring
    • Readability
    • Behavior and state
    • Focus and responsibilities
    • Command-Query-Separation
  • Chapter 6: Value Objects, Entities and Services
    • Value Objects
    • Entities
    • Domain Services
    • Invariants
    • Sample application: Model implementation
  • Chapter 7: Domain Events
    • Naming conventions
    • Structure and content
    • Distribution and processing
    • Integration of separate contexts
    • Advanced distribution scenarios
    • Sample application: Context integration
  • Chapter 8: Aggregates
    • Transactions
    • Structure and handling
    • Concurrency
    • Design considerations
    • Eventual Consistency
    • Sample application: Aggregates and consistency
  • Chapter 9: Repositories
    • Focus on the model
    • Design and implementation
    • Optimistic Concurrency
    • Interaction with Domain Events
    • Sample application: Repositories and event publishing
  • Chapter 10: Application Services
    • Design and implementation
    • Different service scenarios
    • Transactions and consistency
    • Cross-cutting concerns
    • Authentication and Authorization
    • Sample application: Application Services
  • Chapter 11: CQRS
  • Chapter 12: Event Sourcing
  • Chapter 13: Remote communication
  • Chapter 14: 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

Free Updates. Free App. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

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