
Explore event sourcing and event modeling step by step, learning to model decisions, capture business processes, and apply commands, events, and views in a hands-on, practical way.
Explore concepts and terminology for event modeling and event sourcing, then model and implement a review approval system across application and infrastructure layers with event stores, event streaming, and dcb.
Clarify the foundational terms of modern architecture, including commands, queries, and events, and explain how event sourcing and domain-driven design fit together, with emphasis on vertical slices.
In this lecture, we will learn about commands, queries, and events, what they are, and how they differ from each other.
In this lecture, we will learn about the CQS design principle and how we can use it in software development.
This lecture introduces you to the CQRS pattern, how it compares to CQS, and how it can be applied.
Learn how event sourcing stores a sequence of immutable events, replays them to reconstruct state, and uses event streams, projections, and snapshots to support decision making and read models.
Combine event sourcing with cqrs to explore direct event store queries or separate projections that power a read model, enabling polyglot persistence, performance, and scalable, efficient queries.
Explore how event streaming consumes events from an event store to form chronological streams read by downstream services for projections and analytics, with session-based streams and decoupled architectures.
Explore event modeling, a timeline-driven method that maps commands, events, and views to tell a system's story through actions. Apply event sourcing-aligned blueprint to emphasize information flow across teams.
Explore domain driven design as a model-driven approach to complex domains, focusing on bounded contexts, ubiquitous language, and key patterns for event sourcing and event modeling.
Explore vertical slices to maximize cohesion and minimize coupling by organizing code feature by feature across presentation, business, and data layers, enabling full ownership and independent evolution.
Explore commands, queries, and events, and apply command query separation and CQRS. Delve into event sourcing, event streaming, event modeling, domain driven design, and vertical slices to build auditable, modular systems.
Explore event modeling as a visual, collaborative approach for designing event sourced systems, covering commands, events, views, patterns, swimlanes, completeness checks, and practical hands-on mapping.
This lecture is just a small disclaimer saying that you don't need event sourcing to do event modeling. The implementation of an event-modeled system is out of the scope of event modeling itself.
Learn the main building blocks of event modeling—commands, events, and views—and how commands trigger behavior, events record immutable facts, and views expose information via read models.
Brainstorm the domain events for a task management platform, such as task added, completed, reopened, and external GitHub issue triggers, to build an event model and an accompanying storyline.
This lecture talks about the importance of UI mockups and wireframes and how they can be used in your event model.
Master the state change pattern, or command pattern, modeling how information enters the system and how behavior yields state changes. An add task command leads to a task edit event.
Explore the state view pattern to turn published events into read models and views, using task added events to build a read model of tasks displayed in the user interface.
Explore the automation pattern, which combines state view and state change to automate non-user steps in a workflow. See how a task archiver archives completed tasks using a to-do list.
Explore the translation pattern to convert external events, such as GitHub issue opened, into local commands that produce task added events and update the read model.
Use swim lanes to group events by context—task management and GitHub integration—clarifying boundaries and focusing on essential business flows in the event model.
Extend your event model by detailing data payloads for commands, events, and read models, clarifying which fields come from the UI and which are generated to ensure information completeness.
explains given when then structure for specifying business rules and system behavior, with concrete command and read-model examples of added and completed tasks.
Explore slices to subdivide an event model into autonomous, fully owned building blocks from the front end to commands and events, and track progress with color-coded statuses.
Explore event modeling as behavior-focused design, not tied to implementation, through collaboration, wireframes, and core patterns: state change, state view, translation, automation, plus swimlanes, given-when-then, and slices.
Explore functional event sourcing and domain modeling to structure behavior in code, using commands, events, and state to implement decide, evolve, and react, and patterns like designer, view, and saga.
Quick note on Kotlin, the programming language used, and call for alternative languages.
Explore how decide validates commands, evolve applies events to state, and react generates follow-up commands, enabling deterministic, testable domain workflows within event sourcing.
Explore the decider pattern, a designer approach that uses decide and evolve to compute new task events from commands and the current state, starting from an initial state.
Learn the view pattern: a data type that translates events into query-ready state via evolve, initial state, and pure functions, illustrated with a task view in Kotlin.
Explore the saga pattern in functional event sourcing with a pure react function that converts action results into follow-up commands, demonstrated with EF model Kotlin examples and deciders.
Explore deciders, views, and sagas—pure functions that process commands and events, update projections, and decide future commands, all while staying modular, testable, and domain-focused.
Explore the application layer by wiring domain models to decider's views and sagas, implementing event sourced and state stored aggregates, and using materialized and ephemeral views alongside saga managers.
Understand aggregates in event sourcing and event modeling, including event sourced and state stored variants, and how deciders orchestrate command handling to produce and persist events.
Explore materialized views that persist computed task state by coupling view state computation with a state repository, using an in-memory example to fetch, evolve, and save tasks.
Explore ephemeral views with the Kotlin ephemeral library to build on-the-fly read models from an event store by task ID, enabling ad hoc analysis.
Explore saga managers and how they integrate within a bounded context to translate external events into internal actions, publish commands, and coordinate internal and external systems.
Explore application styles using aggregates, deciders, and saga managers to design monolithic and distributed applications. Explore orchestration and choreography with common command types and event types across aggregates and sagas.
Explore how event sourced and state stored aggregates coordinate command handling, using deciders and replayed events or persisted state, with materialized and ephemeral views, saga managers, and an action publisher.
Explore real-world event store options, from postgres‑backed martin db and axon framework to fractal's sql a and current, with emphasis on persistence, immutability, and cross‑language support.
Explore basic event streaming options from the event store, including catch-up subscriptions, CDC with Debezium, and Kafka for high-scale streaming, while noting Kafka isn't the event store.
Explore event modeling and event sourcing through a practical review approval system, from submitting reviews to moderator decisions and published and visible results, using a UI prototype to map behavior.
Explore the user interface prototype for a review submission and moderation system and draft the initial event-model, detailing commands, events, and automated publishing and notifications.
Enhance the event model with swimlanes, explicit actors, and given-when-then tests to produce a clear blueprint of automations, moderators, customers, notifications, and bounded contexts.
Dive into implementing a simple review approval system with event modeling and event sourcing, including a live demo, moderator approval, and simulated notifications.
Explore implementing the domain model for a review approval system in Kotlin with event sourcing concepts, including commands, events, deciders, sagas, and a notification boundary.
Model commands via http post APIs, and connect application and infrastructure layers to drive the review lifecycle with event sourcing and sagas.
Explore how the UI integrates with an event-sourced backend using HTTP APIs to submit and fetch reviews, handle pending approvals, and address eventual consistency with optimistic updates.
Explore dynamic consistency boundaries in event sourcing, examining aggregates, commands and queries, decision models, append conditions, and the DCP specification to build a practical mental model.
Explore the limitations of aggregates in domain driven design, highlighting how static boundaries affect consistency, cross-boundary invariants, and evolving requirements, and examine approaches to mitigate complexity.
Explore how commands drive queries within aggregates, load the relevant scope by id, and compare traditional aggregates with a pure event flow under the dcb approach.
Explore decision models as ephemeral projections built on the fly that validate commands against the current state, compute resulting events, and support true vertical slicing with per use case scope.
Apply append conditions to maintain consistency in event-sourced systems using optimistic locking. Fetch events by a query, compare the last known position, and append new events to prevent concurrency issues.
Explore the DCB specification and its concepts—dynamic consistency boundaries, event filters, sequenced and query events, and append conditions—along with read and write operations and examples like enrollments and invoices.
Explore dynamic consistency boundaries (DCB) that map to concrete commands, offering flexibility over traditional aggregates with per-command decision models, conditional appends, and the DCP specification.
This course will give you a solid understanding of event sourcing and event modeling, two powerful approaches for designing and implementing software close to the domain of your business.
Instead of storing only the current state of your data, event sourcing captures every change as an immutable sequence of events. Event modeling builds on this by providing a structured way to design, visualize, and reason about your entire system through these events without going into detail about how the system is implemented.
Throughout this course, you will:
Learn the fundamental concepts and terminology behind event sourcing and event modeling.
Explore how commands, events, queries, and more work together to coordinate business processes.
Learn how to implement event sourcing using functional patterns like deciders, views, sagas.
Discover dynamic consistency boundaries (DCB) — a fresh way of thinking about consistency in event-sourced systems.
Put everything into practice by modeling and implementing a simple review approval system step by step.
The focus of this course is on concepts and patterns, not on a specific tool or framework. Most examples are written in Kotlin/Java, but the ideas apply to any technology stack.
By the end, you’ll have the knowledge and confidence to apply event sourcing and event modeling in your own projects — and to participate in ongoing discussions about where these approaches are heading.
If you’re a software engineer, architect, or anyone interested in better ways to model complex systems, this course is for you.