Event Sourcing in Python
$9.99
Minimum price
$29.99
Suggested price

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.

About the Author

John Bywater
John Bywater

Lives and works in London. Developer of the Python eventsourcing library.

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
  • 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 45-day 100% Happiness Guarantee

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

See full terms

Do Well. Do Good.

Authors have earned$11,020,212writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

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), EPUB (for phones and tablets) and MOBI (for 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, EPUB and/or MOBI files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub