Questions tagged [ncqrs]

Ncqrs is an open source CQRS (Command Query Responsibility Segregation) framework built on .NET.

Resources

16 questions
117
votes
5 answers

Difference between CQRS and CQS

I am learning what is CQRS pattern and came to know there is also CQS pattern. When I tried to search I found lots of diagrams and info on CQRS but didn't found much about CQS. Key point in CQRS pattern In CQRS there is one model to write (command…
Mr punch
  • 1,756
  • 4
  • 16
  • 23
50
votes
6 answers

CQRS without Event Sourcing - what are the drawbacks?

Besides missing some of the benefits of Event Sourcing, are there any other drawbacks to adapting an existing architecture to CQRS without the Event Sourcing piece? I'm working on large application and the developers should be able to handle…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
32
votes
2 answers

What difference between NEventStore and EventStoreDB

Recently I'm learning CQRS and want to change my system to use event-sourcing patterns. But I found that on .Net platform, there is two Event Store implementations. NEventStore(formerly JOliver EventStore) EventStoreDB(from EventStore.com) The two…
JasonMing
  • 561
  • 8
  • 16
5
votes
3 answers

DDD with .NET - Is there common infrastructure library available?

We're starting a web application using DDD and CQRS (using the ncqrs framework) and before we get started writing our own infrastructure class library, i wanted to see if any are already available. I'd think at least some basic interfaces and…
jaminto
  • 3,895
  • 3
  • 32
  • 36
3
votes
2 answers

Ncqrs: How to raise an Event without having an Aggregate Root

Given I have two Bounded Contexts: Fleet Mgt - simple CRUD-based supporting sub-domain Sales - which is my CQRS-based Core Domain When a CRUD operation occurs in the fleet management, an event reflecting the operation should be…
Dennis Traub
  • 50,557
  • 7
  • 93
  • 108
2
votes
3 answers

requesting data from the readmodel in command handler

I have the need to send an email to a list of admins as a response to a command sent from the UI. The admins that need to be notified are retrieved from a query against the read model. At the moment - from my understanding as it stands I only have…
user156888
2
votes
2 answers

Benefits of Ncqrs snapshots?

In preparation of a future application design, I've started some investigations on CQRS-style applications and especially Ncqrs. While most concepts are quite clear, I'm a bit confused by the concept of a snapshot. I can see why rebuilding an object…
Steve B
  • 36,818
  • 21
  • 101
  • 174
2
votes
3 answers

Guid of created aggregate root in CQRS

Looking at this code from here: [Serializable] public class CreateClientCommand : Command { public string ClientName { get; private set; } public string Street { get; private set; } public string StreetNumber { get; private set; } …
cs0815
  • 16,751
  • 45
  • 136
  • 299
2
votes
1 answer

Reporting in the CQRS/ES world

I think I understand the idea of the read model in the context of ES + CQRS (please correct me if not). However, I still have a few doubts about using it in the context of ‘serious’ reporting. Let us say I use a relational db plus some ORM to crud…
cs0815
  • 16,751
  • 45
  • 136
  • 299
1
vote
3 answers

Ncqrs recreate the complete ReadModel

Using Ncqrs, is there a way to replay every single event ever happened (all aggregate types) and feed these through my denormalizers in order to recreate the whole read model from scratch? Edit: I though it's be good to provide a more specific use…
Kristoffer Lindvall
  • 2,674
  • 1
  • 18
  • 27
1
vote
1 answer

Ncqrs: How to store events as part of test set-up

How do I store events as part of setting up my tests? Currently I'm initializing application state by sending commands like this: Given some commands were sent When sending another command Then some events should have been published I'm using…
Dennis Traub
  • 50,557
  • 7
  • 93
  • 108
1
vote
1 answer

reporting in cqrs - unforeseen stats

I understand that basic stats in the read model can be computed on the fly as events from the domain model are generated. Does this really work for more complicated situations? What happens if new stats are required in the future - do you run past…
cs0815
  • 16,751
  • 45
  • 136
  • 299
0
votes
1 answer

NCQRS: how do you load from the domain?

Take the standard registration process: user signs up user is sent email with link activate account user activates account the issue i'm talking about is: when we create the initial account we store the username, password, email, activation…
user156888
0
votes
3 answers

MVC strongly-typed view, and server side setting properties before sending to lower layers?

I have a layered application that send commands to the business layer (actually, the application is based on ncqrs framework, but I don't think it's important here). A command looks like this : public class RegisterUserCommand : CommandBase { …
Steve B
  • 36,818
  • 21
  • 101
  • 174
0
votes
1 answer

NServiceBus and Generic Event Types

I am doing some work using the NCQRS frameworks and NServiceBus 3.3.4. I have been struggling with getting some subscriptions to fire and as far as I can tell all my config is 100% correct. After some digging I noticed that the MessageType name…
Ross Jones
  • 973
  • 7
  • 20
1
2