DDD, CQRS and Event Sourcing in .NET

26900 kr

This course is for experienced C# developers who want to improve how they design, structure, and evolve their software systems. If you’re building complex applications that need to scale, handle change, or reflect real business rules, this course will show you how to apply Domain-Driven Design, CQRS, and Event Sourcing in practical ways using .NET.

You’ll benefit the most if you already know your way around .NET and are comfortable writing C# code, and now want to explore better architecture patterns and techniques for building maintainable and testable systems

Beskrivning

Instead of just covering concepts in theory, this course focuses on learning by doing. You’ll get hands-on experience through C# exercises that explore different ways to build software. Along the way, you’ll pick up architecture principles and practices that help you create better systems.

DDD, CQRS, and Event Sourcing are useful on their own, but together they offer a powerful way to design modern applications.

You’ll learn how to build software that:

  • Reflects your domain and business more clearly
  • Is easier to test and validate
  • Scales more easily
  • Adapts better to change
  • Is easier to understand

You don’t have to build a full CQRS, ES, or DDD system from scratch to benefit from this course. You’ll come away with practical ideas, patterns, and principles to improve your current projects.

We’ll use .NET 10 and Visual Studio 2026, and you’ll build up a full application step by step in the exercises.

What Are the Course’s Prerequisites?

To get the most out of this training, participants should have at least one year of experience as a C# developer. A strong understanding of C#, including generics, lambdas, and LINQ, is crucial. Previous experience in parallel or async programming is not required.

How Long is the Course?

The course takes 3 days to complete. However, this course can also either be delivered over a full 3 days or 6 half days.

What frameworks are we using?

Many of the code examples in this course are based on the concepts and approach published on cqrs.nu, including the CQRS Starter Kit developed as part of my previous work. The site offers a tutorial and sample code that reflect how we model commands, events, and aggregates, and serves as a foundation for the hands-on exercises in the course.

DDD, CQRS & Event Sourcing in .NET Agenda

Architecture & Design Principles

  • Modern application architecture
  • Composition & modular design
  • Immutability & side-effect prevention
  • Eventual consistency
  • Micro front-ends & UI composition

Domain-Driven Design (DDD)

  • Core DDD principles & patterns
  • Entities, Value Objects, Domain Services
  • Ubiquitous Language
  • Bounded Contexts & context mapping
  • Aggregates & consistency boundaries
  • Invariants & business rule enforcement
  • Modeling workflows & domain scenarios

CQS / CQRS

  • Command–Query Separation (CQS)
  • Command and Query Responsibility Segregation (CQRS)
  • Separating reads from writes
  • Designing commands, queries & handlers
  • Read side vs write side modeling
  • Mediator pattern

Events & Event-Driven Architecture

  • Commands, domain events & workflows
  • Event Storming (big picture + process)
  • Event Modeling
  • The Decider Pattern
  • Policies & workflows

Event Sourcing

  • Event Sourcing fundamentals
  • Implementing an event store
  • Event streams, snapshots & versioning
  • Rebuilding state from events
  • Event-sourced aggregates

Event Sourcing in practice (with .NET)

  • Querying & Read Models
  • Designing projections & read models
  • Aggregate queries
  • High-performance read models
  • Query patterns in CQRS systems

Testing

  • Test-driven development (TDD)
  • Behavior-driven development (BDD)
  • Example-driven testing
  • Testing event-sourced aggregates
  • Testing workflows, policies & read models

And much more…

  • Architecture trade-offs
  • Real-world best practices
  • Hands-on exercises throughout the course

Ytterligare information

Kurslängd

3 dagar

Lärarledd

Ja

Språk

Svenskt tal, material på engelska

Recensioner

Det finns inga recensioner än.

Endast inloggade kunder som har köpt denna produkt får lämna en recension.