Questions tagged [event-sourcing]

Event Sourcing is a design pattern that captures all changes to an application's state as a sequence of events.

A design pattern publicized by Martin Fowler in which changes to application state are represented as events which contain snapshots of data that describe the change. See Event Sourcing at MartinFowler.com.

1220 questions
0
votes
1 answer

nodeEventStore publish twice

I am new to event source, and I am using nodeEventStore. So I wrote the following simple test console application, and I found that the event will be published twice, could anyone help me to figure out why? thanks. var eventstore =…
Ron
  • 6,037
  • 4
  • 33
  • 52
0
votes
1 answer

No route specified for message

am following Mark Nihof (Fohjin) architecture for develop a cqrs based ecommerce application. My development framework is Asp.net MVC5. Reporting side work fine but when i try to execute command by browsing localhost:63738/api/Security/Signup it…
Mojammel Haque
  • 651
  • 1
  • 7
  • 19
0
votes
3 answers

Domain Events in CQRS & Changing Code?

I'm on a crusade to learn CQRS (ala Greg Young). Currently reading CQRS The Example by Mark Nijhof and working with his example for the book. The first thing i'm starting to get confused with is domain events and replaying the events to arrive at…
coding4fun
  • 8,038
  • 13
  • 58
  • 85
0
votes
1 answer

No Handler Registered CQRS-ES

I am creating a cqrs-es test application. I scan command handler against command by following code public class StructureMapCommandHandlerFactory : ICommandHandlerFactory { public ICommandHandler GetHandler() where T : Command …
Mojammel Haque
  • 651
  • 1
  • 7
  • 19
0
votes
0 answers

How to dispatch commands from aggregate root whilst avoiding 2pc

I'm using (the excellent) NEventStore to persist a stream of aggregate root events. In response to some state changes the aggregate dispatches commands to another endpoint. The aggregate root sends the command using a service that's passed in. …
Joe
  • 333
  • 3
  • 10
0
votes
5 answers

CQRS Eventual Consistency Event Dependencies

I'm new to the CQRS and eventual consistency models, so forgive me if this is a stupid question. Given that I'm just getting started, I have a local in memory CommandBus and EventPublisher. My events are persisted to a RavenDB database for replay…
Jeff
  • 35,755
  • 15
  • 108
  • 220
0
votes
1 answer

CQRS/ES - changing two aggregates

I’ve got problem with DDD. I just started using it so I don’t have a lot of experience. There are two bounded contexts: Maintenance and Clients. Each Client has list of parts of an engine. In Maintenance are stored Companies whose occupation is…
Max
  • 41
  • 1
  • 3
0
votes
1 answer

How to version logic in a distributed event-sourced system

Example My distributed event-sourced system simulates houses being built and purchased over a period of time. For simplicity sake, we will use the year as the distributed clock value (forgetting vector clocks for now). Houses take 1 year to build in…
0
votes
1 answer

Event sourcing: Write event before or after updating the model

I'm reasoning about event sourcing and often I arrive at a chicken and egg problem. Would be grateful for some hints on how to reason around this. If I execute all I/O-bound processing async (ie writing to the event log) then how do I handle, or…
Magnus
  • 3,691
  • 5
  • 27
  • 35
0
votes
2 answers

EDA: "Cascading" Events or Explicit commands?

Scenario Lets say I have three major components of a system: UI - Collects input from the user and creates a LoginUserCommand that is sent over a message bus. The user interface then listens to this message bus for MessageReceivedEvent(s). User…
Codebrain
  • 5,565
  • 4
  • 28
  • 21
0
votes
1 answer

EventSource Error with Dart

I'am trying to use EventSource with Dart. var source = new EventSource('/myUrl'); source.on.error.add((Event e) => print('error')); source.on.message.add((MessageEvent me) => print(me.data)); The messages are well received, but 'error' is always…
0
votes
2 answers

Event Sourcing and rebuilding logic

I am new to event sourcing and i am bit confused about Rebuilding the Objects from the event Stream. I believe we need to run load all the events happened from the chronological order to rebuild the object state. So for Example If i have a Object…
satish
  • 2,425
  • 3
  • 23
  • 40
0
votes
2 answers

Adding events to the beginning of an Rx observable using ReplaySubject - possible?

I am implementing a bus using Rx (reactive framework) and so far it looks good. The problem that I am facing right now is how to add events before the beginning of a stream. To give more context, this is for an Event Source (a la CQRS/ES). When the…
Erick T
  • 7,009
  • 9
  • 50
  • 85
0
votes
2 answers

documentation through testing Commands and events

I am willing to generate some documentation through my test. So far my test look like this : public class creation_of_a_new_inventory_item : BaseClass { private Guid _Id = Guid.NewGuid(); private string _Name =…
Arthis
  • 2,283
  • 21
  • 32
-1
votes
2 answers

How to get last non null values and aggregated non null values by timestamp from event sourcing JSONB column in PostgreSQL?

I'm working with event sourced data where all of the important fields are combined to a JSONB column and many of the keys are missing from most of the database rows. I would want to get: Aggregated combined values of included arrays in the JSONB…
Onni Hakala
  • 563
  • 4
  • 18