eventsourcing
  • Installation
  • Support
  • Introduction
  • Tutorial
    • Tutorial - Part 1 - Getting started
    • Tutorial - Part 2 - Aggregates
    • Tutorial - Part 3 - Applications
    • Tutorial - Part 4 - Projections
    • Tutorial - Part 5 - Systems
  • Modules
  • Examples
  • Release notes
eventsourcing
  • Tutorial
  • View page source

Tutorial¶

A tutorial for event sourcing in Python.

This tutorial shows how to write an event-sourced application in Python. It expands and explains the Synopsis. It prepares new users of the library for reading the Modules documentation.

  • Tutorial - Part 1 - Getting started
    • Python classes
    • Event-sourced aggregates
    • Event-sourced applications
    • Writing tests
    • Project structure
    • Exercise
    • Next steps
  • Tutorial - Part 2 - Aggregates
    • Aggregates in more detail
    • “Created” events
    • Subsequent events
    • Explicitly defined event classes
    • Decorating private methods
    • Exercises
    • Next steps
  • Tutorial - Part 3 - Applications
    • Applications in more detail
    • Repository
    • Event store
    • Mapper
    • Recorder
    • Command methods
    • Query methods
    • Notification log
    • Database configuration
    • Development environment
    • SQLite environment
    • PostgreSQL environment
    • Exercises
    • Next steps
  • Tutorial - Part 4 - Projections
    • Views
    • View test case
    • View interface
    • In-memory view
    • PostgreSQL view
    • Projections
    • Example projection
    • Runners
    • Counting events in memory
    • Counting events in PostgreSQL
    • Exercises
    • Next steps
  • Tutorial - Part 5 - Systems
    • Process applications
    • Defining an event-driven system
    • Running an event-driven system
    • Single-threaded runner
    • Multi-threaded runner
    • SQLite environment
    • PostgreSQL environment
    • Exercises
    • Next steps
Previous Next

© Copyright 2025, John Bywater.

Built with Sphinx using a theme provided by Read the Docs.