Event Sourcing in Python
Event Sourcing in Python
Event-oriented analysis and design with applications
About the Book
This book presents a coherent pattern language for event sourced applications and reliable distributed systems.
The main chapters of the book are organised in three parts. Part 1 describes how to make an event sourced domain model. Part 2 describes how to make an event sourced application. Part 3 describes how to make a reliable distributed system from a set of event sourced applications. Each part of the book has five chapters. Each chapter has complete working examples written in the Python programming language. The examples in later chapters build on the examples in previous chapters.
This book can be used as a general guide for event sourcing, event-driven systems, and the tactical patterns of Domain-Driven Design. It is an accompaniment to the popular Python eventsourcing library, and gives an overview of the design of this library. The chapter examples present a distilled and enhanced version of the code available in the Python eventsourcing library.
The book's prologue shows how Christopher Alexander's pattern language scheme was originally intended as a scheme for describing events, and is best understood as an application of the event-oriented modern process philosophy of Alfred North Whitehead. A discussion of the way pattern language was taken up in software development reveals how the event-oriented nature of Alexander's scheme was overlooked. The prevailing general understanding of things that has predominated objected-oriented analysis and design is identified as the two-hierarchies scheme, which involves the substance-quality categories that Whitehead had already shown to be inadequate. The deficiency of the two-hierarchies scheme is explained, and the detrimental consequences for software design patterns, object-oriented programming, software architecture, and the agile approach to software development are highlighted. A return to the event-oriented approach that is exhibited in Whitehead's and Alexander's schemes is proposed under the name of event-oriented analysis and design. A detailed summary of Whitehead's scheme is provided as a second introductory chapter at the start of the book.
The book's epilogue gives an overview of both the event-oriented moment-by-moment, person-centred, psychology of Carl Rogers and its application as the collaborative or nonviolent communication scheme of Marshall Rosenberg.
This book is primarily aimed at professional software developers working under deadlines to create reliable maintainable software applications and systems that support non-trivial business processes in both startups and established corporations, especially Python developers.
This book is suitable for anybody interested in the history and philosophy of technology. It will also be interesting and useful for students and teachers of computer science and software engineering.
Table of Contents
- Preface
- INTRODUCTION
- Prologue
- Pattern language
- Design patterns
- The two-hierarchies scheme
- The wrong objects
- Event-oriented analysis and design
- Whitehead's Scheme
- Process philosophy
- What is an actual occasion?
- What is an event?
- Some influences of Whitehead's scheme
- Domains and Domain Models
- Overview of the Patterns
- Prologue
- PART 1 DOMAIN MODEL
- Chapter 1 Domain Events
- Chapter 2 Aggregates
- Chapter 3 Mapper
- Chapter 4 Recorder
- Chapter 5 Event Store
- Intermission 1 Notifications
- PART 2 APPLICATION
- Chapter 6 Notification Log
- Chapter 7 Snapshot
- Chapter 8 Repository
- Chapter 9 Application
- Chapter 10 Remote Log
- Intermission 2 Tracking
- PART 3 SYSTEM
- Chapter 11 Log Reader
- Chapter 12 Policy
- Chapter 13 Process
- Chapter 14 System
- Chapter 15 Runner
- APPLICATIONS
- Bank Accounts
- Cargo Shipping
- Epilogue
- Person-centred theory
- Collaborative communication
- Event-oriented development
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 $13 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