PragmaticBookshelf

PragmaticBookshelf

Forum Sponsor

Kevin Hoffman

edited by Kelly Talbot @KellyTalbot

Reality is event-sourced; your mind processes sight, sound, taste, smell, and touch to create its perception of reality. Software isn’t that different. Applications use streams of incoming data to create their own realities, and when you interpret that data as events containing state and context, even some of the most complex problems become easily solvable. Unravel the theory behind event sourcing and discover how to put this approach into practice with practical, hands-on coding examples. From early-stage development through production and release, you’ll unlock powerful new ways of clearing even the toughest programming hurdles.

Our applications are bombarded with data. It’s hard enough to derive state from that data, let alone discover how we arrived at that state. With event sourcing you can treat the stream of data as a simple sequence of events that you use to construct whatever state you need. Event sourcing is more than events; it adds patterns, rules, and constraints to produce robust and easy-to-maintain systems. In this book, you’ll learn which rules can never be broken and which ones are flexible. By grounding yourself in theory, rules, and practical approaches, you’ll be able to build real-world, event-sourced applications.

Get your hands dirty with fundamental event-sourcing building blocks such as commands, aggregates, projectors, process managers, injectors, and notifiers. Combine these building blocks to produce elegant solutions to complex problems. Leave “hello world” far behind as you tackle the more advanced aspects of event sourcing that give you the confidence you need to run these applications in production. Leverage event sourcing to create distributed applications with ease; model and handle failure; and deal with replays, schema evolution, security, and much more.

This book doesn’t shy away from confronting the hard parts of event sourcing, instead giving you clear advice and examples for tackling the most difficult details.

Empower your applications with the full force of event sourcing today.


Kevin Hoffman is the Engineering Director for Cloud Services at Synadia, the company behind NATS, a popular messaging and streaming server. Kevin specializes in distributed applications and has made enough event sourcing mistakes on his own to fill a book with what he’s learned and experienced.


Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

Most Liked

nulltree

nulltree

No expert on the topic so can’t comment on the content per se, but I read the first two chapters and must compliment the experience so far.

The book gently introduces event sourcing, points out pitfalls, gradually builds up the pace and simultaneously is engaging to read. Kudos @autodidaddict

More personally, this way of modelling data and state seems to intuitively ‘click’ for me. Now I just need a good reason to use it in the real world (:

autodidaddict

autodidaddict

Author of Real World Event Sourcing

Glad you’re enjoying it! Comments like this make all the hard work worth it

chemist

chemist

Hello Kevin, commend you on tackling a challenging topic.

  1. Are you using any popular libraries such as incident?

  2. In what way will this book be different from other books that tackled ES. Such as the “building conduit” book

  1. Will you also cover the more complicated but important areas such as PM and sagas, as well?

  2. Hope you can also offer your opinions on how to architect an ES system as well.
    Thanks

Last Post!

type1fool

type1fool

@autodidaddict I read the book over the fall and found it informative and easy to follow. In the near term, I am focussing on implementation via Commanded, so I may come back to the later chapters if I need to reach for tooling to support external applications. The callouts for the event sourcing laws were especially insightful.

Good stuff.

Where Next? Top

Trending in Books Top

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews