Skip to content
0:00 / 0:00

#cqrs#dotnet#csharp

CQRS is simpler than you think with C#11 and .NET 7! - Oskar Dudycz

Swetugg

1.4K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Oskar Dudycz, technical team leader and architect
  • May be out of date. The tools, versions or practices it shows have likely moved on.
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

12K views3 years ago1 recommendation

Software designProgramming languagesSoftware architectureC# and .NETDesign patterns

Oskar Dudycz demonstrates how to implement CQRS simply using C# 11 and .NET 7 without unnecessary architectural complexity.

CQRS is often perceived as an over complex pattern with a lot of redundancy and ceremony. Too often it's explained as pushing towards multiple databases, eventual consistency, DDD, and Event Sourcing. In this talk, I will show that it's the opposite. During live coding, I will show how CQRS can help in tackling the layered architecture complexity. I'll build a simple but real WebAPI. Then I'll spice all of that with all the goodies from C#11 and .NET 7 to help achieve that. Records, Nullable Reference Types, Endpoints etc. The main focus will be on CQRS and pure .NET, not Event Sourcing, or DDD. Oskar is a developer, technical team leader, and architect. Oskar started a career before StackOverflow existed. For over 14 years, Oskar has been creating systems close to the business process. Oskar believes that Event-Driven Architectures and Event Sourcing are great ways to achieve that. Oskar is an active open-source developer and one of the Marten library maintainers. Sharing my journey and findings on my blog event-driven.io and practical samples at github.com/oskardudycz. This session was recorded at Swetugg Stockholm 2023, Swetugg is run by a group of volunteers with different IT backgrounds with a common denominator: A passion for creating good software and better software developers, no matter if you are just starting your journey or have been writing code since the beginning of unix time.

Why it's here

1 person recommends this

u/Adventurous-Salt8514in r/dotnet • Recommends

CQRS is simpler than you think with C#11 and .NET 7!

u/Adventurous-Salt8514in r/dotnet • Mentions

On “Vertical slice architecture learning resource”

u/mexicocitibluez, Thank you for the mention. Indeed, Vertical Slices (usually) go in opposition to the Clean/Onion Architecture. The intention is to cut the horizontal layers and focus on the business process. Some resources from me to get started: \- [video \- https://event-driven.io/en/cqrs\_facts\_and\_myths\_explained/ \- https://event-driven.io/en/vertical\_slices\_in\_practice/ \- https://github.com/oskardudycz/EventSourcing.NetCore \- https://event-driven.io/en/generic\_does\_not\_mean\_simple/ \- https://event-driven.io/en/onion\_clean\_code/

u/JIrsaEklzLxQj4VxcHDdin r/dotnet • Mentions

On “Is MediatR the only real CQRS solution for .Net?”

I have not watched this, but from the title it seems relevant for you: "CQRS is simpler than you think with C#11 and .NET 7! - Oskar Dudycz" link to this video