# Real-World Event Sourcing (PragProg)

**URL:** <https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841>\
**Category:** Backend Learning Resources\
**Tags:** published-book, pragprog, elixir, book-real-world-event-sourcing\
**Created:** [4 September 2024 13:07 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841 "2024-09-04T13:07:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PragmaticBookshelf](https://forum.devtalk.com/user_avatar/forum.devtalk.com/pragmaticbookshelf/32/463_2.png) [@PragmaticBookshelf](https://forum.devtalk.com/u/PragmaticBookshelf)\
**Post date:** [4 September 2024 13:07 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/1 "2024-09-04T13:07:29Z")

</div>

Use event sourcing to solve complex software development problems by modeling your application as a stream of immutable events and their context.

 ![khpes-500](https://forum.devtalk.com/uploads/default/original/2X/1/1ccae0bd16b0102995e29e46497520f17b6613ea.jpeg)

### Kevin Hoffman @autodidaddict

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

* * *

- Full details:[Real-World Event Sourcing: Distribute, Evolve, and Scale Your Elixir Applications by Kevin Hoffman](https://pragprog.com/titles/khpes/real-world-event-sourcing/)
- View this book’s portal and details on how to post errata and suggestions [here](https://devtalk.com/books/real-world-event-sourcing).

_Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “ **devtalk.com**" at checkout 👍_

---

<div class="post-metadata">

**Author:** ![DevotionGeo](https://forum.devtalk.com/user_avatar/forum.devtalk.com/devotiongeo/32/1140_2.png) [@DevotionGeo](https://forum.devtalk.com/u/DevotionGeo)\
**Post date:** [4 September 2024 16:24 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/2 "2024-09-04T16:24:26Z")

</div>

Wow, yet another Elixir book by Pragmatic Bookshelf! ❤

---

<div class="post-metadata">

**Author:** ![gflashner](https://forum.devtalk.com/user_avatar/forum.devtalk.com/gflashner/32/6665_2.png) [@gflashner](https://forum.devtalk.com/u/gflashner)\
**Post date:** [5 September 2024 02:58 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/3 "2024-09-05T02:58:38Z")

</div>

Wish other publishers would do the same, rather than just most books on AI ☹

---

<div class="post-metadata">

**Author:** ![Margaret](https://forum.devtalk.com/user_avatar/forum.devtalk.com/margaret/32/237_2.png) [@Margaret](https://forum.devtalk.com/u/Margaret)\
**Post date:** [5 September 2024 12:32 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/4 "2024-09-05T12:32:41Z")

</div>

@DevotionGeo and @gflashner I’m quite proud of our Elixir books, but much of the credit goes to the super-supportive Elixir community and to @SophieDeBenedetto, our Elixir series editor. She does a great job of guiding us and bringing us new Elixir topics and authors.

---

<div class="post-metadata">

**Author:** ![conradwt](https://forum.devtalk.com/user_avatar/forum.devtalk.com/conradwt/32/778_2.png) [@conradwt](https://forum.devtalk.com/u/conradwt)\
**Post date:** [10 September 2024 22:45 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/5 "2024-09-10T22:45:59Z")

</div>

I have just started reading this one and I’m starting on chapter 3 today. Also, I just learned so much quickly because the writing and the code samples are easy to follow. Furthermore, I find myself referencing the domain-driven design (DDD) books that I have purchased over the years to get a deeper understanding of the terminology.

Thus, I’m looking forward to reading the rest of the book. Why? I have started playing around with EventStoreDB, which can persist immutable events in an event-driven architecture. Now, there’s a book written using the Elixir programming language. Thanks so much, Kevin Hoffman and Pragmatic Bookshelf for creating this gem and making it available for the Elixir and other communities!!! 👍🏾👏🏾

---

<div class="post-metadata">

**Author:** ![Margaret](https://forum.devtalk.com/user_avatar/forum.devtalk.com/margaret/32/237_2.png) [@Margaret](https://forum.devtalk.com/u/Margaret)\
**Post date:** [11 September 2024 11:47 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/6 "2024-09-11T11:47:34Z")

</div>

@conradwt Thank you for being a PragProg reader. Your kind words mean so much to all of us at The Pragmatic Programmers!

---

<div class="post-metadata">

**Author:** ![KellyTalbot](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/k/ecb155/32.png) [@KellyTalbot](https://forum.devtalk.com/u/KellyTalbot)\
**Post date:** [15 September 2024 18:21 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/7 "2024-09-15T18:21:42Z")

</div>

Thanks for the positive energy. We really appreciate feedback during the beta release, because it gives us a chance to see how things are going and to consider possible tweaks we can make to make our books even better. Actively participating readers and members of the community such as yourself make a big difference!

---

<div class="post-metadata">

**Author:** ![conradwt](https://forum.devtalk.com/user_avatar/forum.devtalk.com/conradwt/32/778_2.png) [@conradwt](https://forum.devtalk.com/u/conradwt)\
**Post date:** [16 September 2024 06:29 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/8 "2024-09-16T06:29:04Z")

</div>

@KellyTalbot Is there a formal feedback page and form for the book?

---

<div class="post-metadata">

**Author:** ![Margaret](https://forum.devtalk.com/user_avatar/forum.devtalk.com/margaret/32/237_2.png) [@Margaret](https://forum.devtalk.com/u/Margaret)\
**Post date:** [16 September 2024 14:01 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/9 "2024-09-16T14:01:40Z")

</div>

@conradwt the errata and suggestions page is here:

`https://forum.devtalk.com/c/community/pragprog-customers/85?tags=book-real-world-event-sourcing`

---

<div class="post-metadata">

**Author:** ![rengler33](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/r/bc8723/32.png) [@rengler33](https://forum.devtalk.com/u/rengler33)\
**Post date:** [7 October 2024 15:46 UTC](https://forum.devtalk.com/t/real-world-event-sourcing-pragprog/168841/10 "2024-10-07T15:46:38Z")

</div>

Awesome, just purchased, can’t wait to read!
