Category: Vertical Slice ArchitecturePage 1 of 2

Advantages – Getting Started with Vertical Slice Architecture

On the upside, we have the following: From my experience, features tend to start small and grow over time. The users often find out what they need while…

Vertical Slice Architecture – Getting Started with Vertical Slice Architecture

Instead of separating an application horizontally (layers), a vertical slice groups all horizontal concerns together to encapsulate a feature. Here is a diagram that illustrates that:  Figure 17.1:…

Anti-pattern – Big Ball of Mud – Getting Started with Vertical Slice Architecture

Before you begin: Join our book community on Discord Give your feedback straight to the author himself and chat to other early readers on our Discord server (find…

Conclusion – Mediator and CQRS Design Patterns

With MediatR, we packed the power of a CQS-inspired pipeline with the Mediator pattern into a Clean Architecture application. We broke the coupling between the request delegates and…

Conclusion – Mediator and CQRS Design Patterns

The CQS and CQRS patterns suggest dividing the operations of a program into commands and queries. A command mutates data, and a query fetches data. We can apply…

Project – CQS – Mediator and CQRS Design Patterns-3

The test program setup is composed of the following: Once again, the names of the participants are randomly generated. The TestMessageWriter implementation is a little different and accumulates…

Project – CQS – Mediator and CQRS Design Patterns-2

We cover ways to organize commands and queries in subsequent chapters. Let’s start with the JoinChatRoom feature: public class JoinChatRoom{    public record class Command(IChatRoom ChatRoom, IParticipant Requester) :…

Project – CQS – Mediator and CQRS Design Patterns-1

Context: We need to build an improved version of our chat system. The old system worked so well that we need to scale it up. The mediator was…

Implementing the Mediator pattern – Mediator and CQRS Design Patterns-1

The Mediator pattern is another GoF design pattern that controls how objects interact with one another (making it a behavioral pattern). Goal The mediator’s role is to manage…

A high-level overview of Vertical Slice Architecture – Mediator and CQRS Design Patterns

Before you begin: Join our book community on Discord Give your feedback straight to the author himself and chat to other early readers on our Discord server (find…