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

ASP.NET Core

Fat Controller CQRS Diet: Simple Command

This post is in my Fat Controller CQRS Diet series demonstrate how to thin your controllers by implementing commands and queries using the MediatR library. For demonstration, I’m converting the MusicStore application that’s using ASP.NET Core MVC. If you’re new to this series, here are earlier posts in this series: Overview of Series Simple Query Simple Command https://www.youtube.com/watch?v=2d-jTjmbkVUVideo can’t be loaded because JavaScript is disabled: Fat Controller CQRS Diet | Part 2 Simple Command (https://www.youtube.com/watch?v=2d-jTjmbkVU) A command is request to change the state of our domain. The first controller action we are going to rewrite is ShoppingCartController.AddToCart Here is what the method… Read More »Fat Controller CQRS Diet: Simple Command

Fat Controller CQRS Diet: Simple Query

This is a series of blog posts that demonstrate how to thin your controllers by implementing commands and queries using the MediatR library.  For demonstration, I’m converting the MusicStore application that’s using ASP.NET Core MVC. For more information on the purpose of this series, check out my initial post. Follow Along You can get all the code for this entire series on on my fork of the MusicStore app GitHub.   If you have any improvements or suggestions, please create an issue or send a PR and I’ll be sure to include it in any of my blog posts. https://www.youtube.com/watch?v=hilMOUL6GHAVideo… Read More »Fat Controller CQRS Diet: Simple Query

Why use Nancy?

On one of my posts showing how you can use Nancy with ASP.NET Core, David Anderson posted the following comment I came across some Nancy blogpost last week and got curious about it and so looked on internet for more information. I wanted to know why should someone use Nancy and why plain asp.net core is not sufficient. So far every place I look I see the same introduction, you know that one with ‘…super-duper-happy-path…’. But to be honest it’s still not clear ‘why’? What is it that someone can not do in ASP.NET Core which is ‘super-duper’ in Nancy?… Read More »Why use Nancy?