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.
- 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
- 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
- Bank Accounts
- Cargo Shipping
- 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.
See full terms
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $12 million USDwriting, 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.