Understanding Eventsourcing
$19.00
Minimum price
$29.00
Suggested price

Understanding Eventsourcing

Planning and Implementing scalable Systems with Eventmodeling and Eventsourcing

About the Book

I wanted to write the book I would have needed 5 years ago.

"By reading this book, you won’t just learn new techniques — you’ll transform the way you approach software development. You’ll gain clear, actionable steps to solve problems, communicate with unprecedented clarity, and estimate projects more accurately. In essence, you’ll be equipped to dismantle complexity and foster collaboration like never before." - Adam Dymitruk

"This is not just another technical book—it’s a roadmap to more predictable, maintainable, and successful software projects. Martin Dilger has created an invaluable resource that I believe will influence how we approach software development for years to come." - Gabriel. N. Schenker

"Focusing on a practical implementaion really worked for me. I appreciate the work you have done here." - Gary Craine

"Highly recommended reading" - Michael Plagge

"Thanks for writing the book, it will save me so much time and toil. I really like the Todo pattern to simplify the Saga. Also using an aggregate for uniqueness check is very nice." - William Power

"The book is packed with knowledge and provides concrete example implementations. It advances the entire topic and makes it easier for developers to access. I can only recommend it." - Sebastian Bortz

"The book is really great, practical, easy to read !" - Vincent Vermesh

"I just finished reading Part 1 of your book, and I’m thrilled. The book has truly captivated me—I can’t stop reading!" - Domenic Cassisi

"Got my (physical) copy as well here in the US! Thanks for all the hard work that went into this Martin. I started reading the digital version but now that I have a physical copy I look forward to reading it cover to cover and giving it the attention and focus it deserves. From what I've seen thus far I will be recommending this book as required reading for any team I work with going forward - your writing is clear, concise, and very easy to follow - it's been a joy to read and I look forward to having it as a reference that I can return to many times over as the journey continues!" - Matt Burton

"really enjoying the book! It has simplified event sourcing for me and how to put it into practice. " - T. Stuttart

"Your book is fantastic! I'm loving every page. It's now a must-read for all new hires I mentor."' - Murray McDonald

This book gives a practical introduction to eventmodeling and eventsourcing with a focus on how to implement eventsourced systems in practice.

Unlike other books covering the topic, we will really dive into the code and build a softwaresystem basically from idea to running software using state of the art development practices.

In Part I, we´ll cover the foundations of distributed systems. You will learn about CQRS, Eventsourcing and the fundamentals that took me 15 years to learn.

Part II focuses on the modelling part - I will show you how I model information systems using Eventmodeling in a practical way.

Part III really goes into the code - finally showing how an eventsourcing system is implemented.

Part IV builds a comprehensive Pattern Catalog and gives you quick guidance no how to implement typical scenarios in eventsourced systems.

  • Share this book

  • Categories

    • Software Engineering
    • Event-Driven Architecture
    • Software Architecture
    • Software
    • Distributed Systems
  • Feedback

    Email the Author(s)

About the Author

Martin Dilger
Martin Dilger

Eventmodeling Expert, Software Developer & Architect, Eventsourcerer, Entrepreneur

Team Discounts

Get a team discount on this book!

Up to 3 Team Members
Minimum price$47.00Suggested price$72.00
Up to 5 Team Members
Minimum price$76.00Suggested price$116.00
Up to 10 Team Members
Minimum price$133.00Suggested price$203.00

Bundles that include this book

$48.00
Bought separately
$30.00
Bundle Price

Reader Testimonials

Gabriel N. Schenker
Gabriel N. Schenker

a roadmap to more predictable, maintainable, and successful software projects

This is not just another technical book—it’s a roadmap to more predictable, maintainable, and successful software projects. Martin Dilger has created an invaluable resource that I believe will influence how we approach software development for years to come.

Adam Dymitruk
Adam Dymitruk

By reading this book, you won’t just learn new techniques — you’ll transform the way you approach software development. You’ll gain clear, actionable steps to solve problems, communicate with unprecedented clarity, and estimate projects more accurately. In essence, you’ll be equipped to dismantle complexity and foster collaboration like never before.

Gary Craine
Gary Craine

Focusing on a practical implementaion really worked for me. I appreciate the work you have done here.

Michael Plagge
Michael Plagge

Highly recommended reading

William Power
William Power

Thanks for writing the book, it will save me so much time and toil. I really like the Todo pattern to simplify the Saga. Also using an aggregate for uniqueness check is very nice.

Sebastian Bortz
Sebastian Bortz

The book is packed with knowledge and provides concrete example implementations. It advances the entire topic and makes it easier for developers to access. I can only recommend it.

Domenic Cassisi
Domenic Cassisi

I just finished reading Part 1 of your book, and I’m thrilled. The book has truly captivated me—I can’t stop reading! It feels amazing to dive into technical literature that steers clear of CRUD and other technology-focused topics. Instead, it places a much greater emphasis on business processes, communication, and modeling—all aspects that, in my opinion, are often neglected. Personally, I find it easy to read, as I’ve been fortunate enough to gain some experience with Event Sourcing already. The combination of Event Modeling and implementation is new to me, and I’m really looking forward to learning a lot of new things in the upcoming chapters.

Matt Burton
Matt Burton

"Got my (physical) copy as well here in the US! Thanks for all the hard work that went into this Martin. I started reading the digital version but now that I have a physical copy I look forward to reading it cover to cover and giving it the attention and focus it deserves. From what I've seen thus far I will be recommending this book as required reading for any team I work with going forward - your writing is clear, concise, and very easy to follow - it's been a joy to read and I look forward to having it as a reference that I can return to many times over as the journey continues!"

T. Stuttart
T. Stuttart

"really enjoying the book! It has simplified event sourcing for me and how to put it into practice. " - T. Stuttart

Murray McDonald
Murray McDonald

Your book is fantastic! I'm loving every page. It's now a must-read for all new hires I mentor.

Table of Contents

    • Foreword by Adam Dymitruk
    • Foreword by Gabriel N. Schenker
    • Why I Care
    • Foundations
    • Why You Should Care
    Part I: Foundations
    • 1.Event Sourcing - What Is It?
    • 2.Planning Systems Using Event Modeling
    • 3.CQRS, Concurrency, (Eventual) Consistency
    • 4.Internal vs. External Data
    • 5.The Anatomy of an Event-Sourced Application
    • 6.Event Streaming, Event Sourcing, and Stream Design
    • 7.Domain-Driven Design
    • 8.Sagas - Handling Transactions in Distributed Systems
    • 9.Vertical Slicing
    Part II: Modeling the System
    • 10.Modeling the System
    • 11.Brainstorming
    • 12.Modeling Use Cases with Wireframes
    • 13."Given / When / Then" Scenarios
    • 14.Use Case: Clear Cart
    • 15.Use Case: Submit Cart
    • 16.Use Case: Inventory Changed
    • 17.Use Case: Price Changed
    • 18.Structuring an Event Model
    Part III: From Zero to Running Software
    • 19.From Zero to Running Software
    • 20.Technology Stack
    • 21.Brief Introduction to Axon
    • 22.Implementing the First Slice - "Add Item"
    • 23.Implementing State View Slices Using Live-Projections
    • 24.Implementing Remove-Item and Clear-Cart
    • 25.Example Integration with Apache Kafka and Translations
    • 26.Implementing a Database Projection for Inventories
    • 27.Implementing Automations
    • 28.Submitting the Cart
    • 29.Handling Breaking Changes
    Part IV: Implementation Patterns
    • 30.Implementation Patterns
    • 31.What This Part Is About
    • 32.Pattern: Database Projected Read Model
    • 33.Pattern: Live Model
    • 34.Pattern: The (Partially) Synchronous Projection
    • 35.Pattern: The Logic Read Model
    • 36.Pattern: Snapshots
    • 37.Pattern: "Processor-TODO-List" Pattern
    • 38.Pattern: The Reservation Pattern
    • 39.Where to Go From Here?
    • 40.Notes
    Part V: The Missing Chapters
    • 41.Handle Metadata

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. 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) and EPUB (for phones, tablets and Kindle). 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

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

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. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub