cqrs Questions

4

I have been trying to figure out the preferred way of doing "Event Sourcing" while using the NestJS CQRS recipe (https://docs.nestjs.com/recipes/cqrs). I've been looking at the NestJS fra...
Bautram asked 23/12, 2018 at 18:6

4

I’m currently learning about the Actor design pattern, or model, and it seems quite interesting. However, I’m struggling to find any decent real-world examples of how, or where, this model could be...
Intradermal asked 11/2, 2021 at 11:45

3

Solved

I have been reading about using Command objects to represent use cases that our domain exposes, and Command Handler objects to process those commands. For example: RegisterUserCommand RegisterUs...
Insphere asked 29/6, 2014 at 9:40

3

Solved

I have a MediatR Pipeline behavior for validating commands with the FluentValidation library. I've seen many examples where you throw a ValidationException from the behavior, and that works fine fo...
Jasun asked 9/1, 2019 at 6:8

1

I've got a simple document management system I'm putting together, I'm trying to follow solid DDD principals and things have been coming together. One area I've been questioning is what the cleanes...
Musketeer asked 19/1, 2019 at 0:58

2

Or is that considered bad practice or something? I have one notification triggers 4-5 handlers, which in turn call database to retrieve data. Each those calls can also be called separately,...
Twitter asked 1/3, 2018 at 3:23

2

Solved

Recently I've read multiple times that two-phase commits are bad, but always as a side note. So there was never a good explanation with it. For example in CQRS Journey Chapter 5: Second, we're ...
Kvass asked 2/10, 2015 at 13:38

5

Solved

What is the difference between CQRS (Command Query Responsibility Segregation) and Event Sourcing? I believe Event Sourcing is a type of CQRS. What distinguishes each, and what makes Event Sourcin...
Insurer asked 1/11, 2017 at 5:38

2

I was looking in to event base architecture and came to know about two architecture Event Sourcing & Event Driven Architecture. My understanding is following Event driven : used for distribute...
Redwine asked 11/2, 2022 at 16:39

3

Solved

I try to make .NET Core API with CQRS, but i cannot build it because of MediatR error: System.AggregateException: 'Some services are not able to be constructed (Error while validating the service ...
Pontonier asked 1/5, 2020 at 13:41

5

Solved

I know that CQRS can be implemented with or without event sourcing, but does it work the other side? Does event sourcing without CQRS make sense? If so, how it should be implemented?

11

Solved

What is the difference between commands and events in architectures that emphasize events? The only distinction I can see is that commands are usually sourced/invoked by actors outside the system, ...
Maddie asked 10/2, 2011 at 21:13

14

Solved

My team and I have been discussing using the CQRS (Command Query Responsibility Segregation) design pattern and we are still trying to asses the pros and cons of using it. According to: http://mart...
Bombazine asked 11/1, 2012 at 14:14

3

I am working an ASP.NET Core 6.0 Web API project. I use the CQRS design pattern. I want to update an airlines table (code-first EF Core). So first I need to find the ID of airline. I have GetAirlin...
Charwoman asked 24/1, 2022 at 9:52

12

Danger ... Danger Dr. Smith... Philosophical post ahead The purpose of this post is to determine if placing the validation logic outside of my domain entities (aggregate root actually) is actually...
Connotation asked 4/6, 2012 at 9:54

2

Solved

I am re-designing a dotnet backend api using the CQRS approach. This question is about how to handle the Query side in the context of a Kubernetes deployment. I am thinking of using MongoDb as the ...
Southwick asked 17/6, 2021 at 18:41

3

I am using MediatR and CQRS in a real project using the Clean Architecture principles. Is it correct to: Call Command from NotificationHandler? Call Command in Command? Call Query in Command? ...
Neuroglia asked 19/9, 2022 at 4:38

2

I'm currently evaluating options for designing/implementing Event Sourcing + CQRS architectural approach to system design. Since we want to use Apache Kafka for other aspects (normal pub-sub messag...

4

I am trying to implement event sourcing/CQRS/DDD for the first time, mostly for learning purposes, where there is the idea of an event store and a message queue such as Apache Kafka, and you have e...
Renell asked 24/6, 2019 at 1:44

2

Solved

I have an async controller and I am trying to call two different Async functions from it. like this public async void Approvefiles(string[] data) { var response = await _mediator.Send(new perso...
Nellenelli asked 24/6, 2021 at 8:57

7

Solved

Although I've come across Kafka before, I just recently realized Kafka may perhaps be used as (the basis of) a CQRS, eventstore. One of the main points that Kafka supports: Event capturing/storing...
Newsome asked 17/7, 2013 at 19:22

1

Solved

So for the login, since it doesn't really make anything new in the database but rather just returns if we've logged in, and possibly some user data, should it be a command or query? And as for the ...
Tetchy asked 8/4, 2022 at 13:27

1

I'm working on an application for managing bank credit cards. CQRS and Event Sourcing architecture was chosen for the app. The most important aggregate in the app is CreditCard which controls the c...
Recommendation asked 14/11, 2020 at 18:18

4

When we talk about sourcing events, we have a simple dual write architecture where we can write to database and then write the events to a queue like Kafka. Other downstream systems can read those ...

1

Solved

Currently I learn CQRS and DDD without Event Sourcing (not yet). I need to return from my repository to a query handler a model different from a domain model. Should I create a read model in a doma...

© 2022 - 2025 — McMap. All rights reserved.