~/talk

CQRS is simpler than you think with C#9 and .NET 5!

Talkat 4Developers 2021 · 2021-05-24..05-27· [software-architecture, dotnet]
slides:none on file

Claims CQRS is much simpler when using .NET 5 and C#9, implemented here without Event Sourcing or DDD by building a working WebAPI (about 167 lines of code) that uses C#9 records and Endpoints map post/get patterns. Uses EF Core 5 DbContext, nullable reference types with smart constructors, command/query handler interfaces (no MediatR), returns 201 on create, deconstructs records for neat handlers, and keeps vertical slices so each business operation is isolated and testable.

AI-written summary · about

  1. 0:00Introduction to CQRS
  2. 1:38What CQRS means
  3. 6:19Commands and queries explained
  4. 15:52Data models and records
  5. 17:01Minimal APIs in .NET 5
  6. 18:28Endpoint routing setup
  7. 22:50Structuring code with slices
  8. 27:47Refining endpoint logic
  9. 31:36Business logic separation
  10. 34:47Command and query handlers
  11. 37:16Simplified handler execution
  12. 39:50Performance optimizations
  13. 40:52Benefits of CQRS structure
  14. 41:56Missing features and future
  15. 42:38Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.