Skip to content

Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.


Follow @CodeOpinion

Derek Comartin

Fat Controller CQRS Diet: Trade-offs

In my Fat Controller CQRS Diet series, I’ve shown the mediator pattern and the MediatR library. After a recent discussion with Reid Evans, he made me realize I haven’t really described the trade-offs.  This post is going to focus on trade-offs and an alternative to using the mediator pattern. If you’re new to this series, here are earlier posts to get you up to speed: Overview of Series Simple Query Simple Command Command Pipeline Notifications Vertical Slices Coupling With the mediator pattern, communication between objects is encapsulated with a mediator object. Objects no longer communicate directly with each other, but instead… Read More »Fat Controller CQRS Diet: Trade-offs

Side Projects: Validate Quickly or Learning Experience?

I periodically enjoy working on side projects.  Not just messing around, but a full blown side project that has some set of features that I think would be useful. I never have any real intent of releasing them so I don’t ever put too much priority on them. Usually what I take away from them are knowledge of new tools/frameworks/libs/patterns etc.  Althoguh they aren’t always completely new to me, they may just be deepening my current understanding. For me these side projects go into three states: I get really into it and work on it non stop for a few… Read More »Side Projects: Validate Quickly or Learning Experience?

Fat Controller CQRS Diet: Vertical Slices

This post is in my Fat Controller CQRS Diet series. It demonstrates how to thin your controllers by implementing commands and queries using the MediatR library.  Specifically in this post, I’ll look at organizing your code by vertical slices. I’m converting the MusicStore application that’s using ASP.NET Core MVC.   All the source code is available on GitHub. If you’re new to this series, here are earlier posts to get up to speed: Overview of Series Simple Query Simple Command Command Pipeline Notifications Organize by Feature Feature Slices or Vertical Slices are the terms I’ve heard the most for what I call… Read More »Fat Controller CQRS Diet: Vertical Slices