Message- and Event-Driven Systems with CQRS and Event Sourcing
close menu
Bookswagon
search
My Account
Home > Computer programming / software engineering > Message- and Event-Driven Systems with CQRS and Event Sourcing: Web and Cloud Architecture(Addison-Wesley Signature Series (Vernon))
Message- and Event-Driven Systems with CQRS and Event Sourcing: Web and Cloud Architecture(Addison-Wesley Signature Series (Vernon))

Message- and Event-Driven Systems with CQRS and Event Sourcing: Web and Cloud Architecture(Addison-Wesley Signature Series (Vernon))


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Learn to Design and Build Scalable Message-Driven Systems

In today's fast-paced digital landscape, businesses must adapt rapidly to evolving demands. Message- and Event-Driven Systems with CQRS and Event Sourcing reveals how modern message-driven web and cloud architectures can fuel digital transformation, drive agility, and ensure robust scalability. This book bridges the gap between theory and practice, empowering architects and developers to build systems that thrive in the cloud era.

This book demystifies a collection of widely discussed architectural patterns, clearly distinguishing between message-driven, event-driven, CQRS, and Event Sourcing approaches, and showing precisely when to apply each. By untangling concepts that are often confused, it provides both a strategic overview and practical guidance for designing a system and its components.

Unlike most resources that focus on Java or C#, this book leverages Node.js, JavaScript, and TypeScript, making it uniquely relevant for today's web and cloud developers. Readers will discover how to isolate business capabilities, accelerate time-to-market, and future-proof their technology stack, enabling continuous evolution without sacrificing stability or performance.

Build the architectural knowledge that distinguishes scalable systems and start architecting for inevitable change with patterns that matter.

  • Implement the core anatomy of message-driven systems by mapping technical responsibilities to specific components and navigating the trade-offs of various implementation approaches.
  • Segregate responsibilities with CQRS to separate command and query logic, enabling optimization of read and write sides independently for better performance and scalability.
  • Leverage Event Sourcing to model domain state as a sequence of change events, providing a reliable historical record and a foundation for highly reactive systems.
  • Orchestrate long-running processes with resilient workflows that manage complex, multi-step business logic across domain-specific boundaries.
  • Design for evolution and composition by managing message schema and data changes, and unifying data from disparate sources into reactive user interfaces.


Table of Contents:

Series Editor Foreword xvii
Preface xxi

Chapter 1: Business Strategy Meets Message-Driven Systems 1
Why Businesses Benefit 2
How Domain-Driven Scenarios Are Solved 3
How Businesses Can Thrive in the Face of Constant, Rapid Change 5
Message-Driven Architecture 6
Loose Coupling 9
Relationship to Reactive Architecture 10
Relation to Monoliths and Microservices 10
Domain-Driven Running Example 12
Modeling Messaging Systems 15
Summary 22
References 23

Chapter 2: Anatomy of Message-Driven Systems 25
Message Broker 26
Synchronous Communication 34
The Structure of Messages 36
Message Categories 39
Serialization, Schemas, and Types in Code 48
Guarantees in Distribution 57
Ordering of Messages 65
Dealing with Duplicates 67
Error Handling 71
Summary 76
References 76

Chapter 3: In-Context Architectures 79
The Purpose of Layers 80
Dependency Inversion 82
Ports and Adapters 89
Generic Layouts and Guided Designs 92
The Four Standard Layers 95
Architecture for the Running Example 106
Summary 107
References 108

Chapter 4: Tactical Building Blocks 109
Value Objects 110
Identities 116
Entities 119
Domain Services 124
Repositories 126
Domain Events 136
Aggregates and Eventual Consistency 147
Summary 162
References 163

Chapter 5: CQRS 165
When Business Software Should Segregate Responsibilities 166
Commands and Queries 170
Command Model and Query Models 175
Model Synchronization 180
Technical Segregation 190
Initializing and Evolving Query Models 195
Eventual Consistency in the User Interface 201
Dos and Don’ts 203
Summary 205
References 206

Chapter 6: Event Sourcing 207
Your Business as Auditable History 208
Modeling State as Events 211
Event-Sourced Command Model 215
Event Store 222
Comparison of Store Technologies 234
Query Model Projections 246
Processing and Publishing Events 259
Data Deletion 265
Summary 266
References 267

Chapter 7: Long-Running Processes 269
What Is a Process? 270
Message-Driven Processes 278
Choreography 284
Orchestration 290
Correlation of Messages 305
Process as a Domain Model Component 308
Evolution of Long-Running Processes 315
Summary 318
References 319

Chapter 8: Evolution of Messages and Message Streams 321
Purpose and Scope Determine Life Cycle 322
Relation of Data, Serialization, Schemas, and Types 327
Types of Message Changes 332
Adaptation Techniques 338
Evolution of Persistent Message Streams 347
Schema Registries 354
Summary 357
References 358

Chapter 9: Composing Data from Different Sources 359
Global Message Journal 360
Replicating Query Models 370
Synchronous On-Demand Composition 389
The "Right Way" to Compose Query Models 399
Summary 399
References 400

Chapter 10: Message-Driven User Interfaces 401
Frontend Architecture 402
Messaging Technologies and Protocols 406
Executing Commands and Queries 418
Reacting to Events 424
Building Reactive Query Models 428
Client-Side Projections of Change Events 432
Summary 434
References 434

Index 435



About the Author :

Alex Lawrence is a software developer, architect, technical lead, author, and educator. He started his journey in software development at an early age, driven by a general fascination for computers. His most notable technical expertise lies in message-driven systems, event-driven architecture, CQRS, and Event Sourcing. Over the years, he has contributed to multiple companies building large-scale message-driven systems and gained deep, hands-on experience. During his work, Alex focuses on understanding business and product challenges to design software for effective and lasting solutions. His approach goes beyond technical implementations, always ensuring that software serves real-world needs and drives meaningful outcomes. Sharing knowledge has always been a core part of his work. Over the years, Alex has lectured and given guest lectures at multiple universities.


Best Sellers


Product Details
  • ISBN-13: 9780137998715
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Sub Title: Web and Cloud Architecture
  • ISBN-10: 0137998716
  • Publisher Date: 24 Sep 2026
  • Binding: Digital download
  • Series Title: Addison-Wesley Signature Series (Vernon)


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Message- and Event-Driven Systems with CQRS and Event Sourcing: Web and Cloud Architecture(Addison-Wesley Signature Series (Vernon))
Pearson Education (US) -
Message- and Event-Driven Systems with CQRS and Event Sourcing: Web and Cloud Architecture(Addison-Wesley Signature Series (Vernon))
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Message- and Event-Driven Systems with CQRS and Event Sourcing: Web and Cloud Architecture(Addison-Wesley Signature Series (Vernon))

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    Your IP: 216.73.217.23 IN