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

Event sourcing data flows for a simple web application

Read through a lot of the CQRS/DDD/ES blog posts, still unsure a simple blog engine would work. In the case of publishing a post, for instance... User clicks publish → PostPublished event added to Event Store → Triggers the Aggregate Objects (for…
ehfeng
  • 3,807
  • 4
  • 33
  • 42
0
votes
1 answer

Is admin website a good candidate to use event sourcing?

I am thinking of refactoring my admin website for golf databases, which currently uses the traditional CRUD architecture. Is CQRS/Event Sourcing a good model for admin-type websites? It doesn't generate many interesting events, at most it will…
azgolfer
  • 15,087
  • 4
  • 49
  • 46
0
votes
1 answer

How to choose the appropriate event abstraction level

I guess this question could be related to any evented system like Event sourcing / DDD / Lambda architecture, ESB, Actors... I tagged the question so that people experienced with these systems could answer. I'm currently experimenting with my…
Sebastien Lorber
  • 89,644
  • 67
  • 288
  • 419
0
votes
1 answer

RavenDB Index an Index

I am playing around with event sourcing using RavenDB. I am storing all my events as documents in RavenDB then have a map/reduce index to generate the aggregates (similar to what is described here http://ayende.com/blog/4530/raven-event-sourcing).…
Alex
  • 3,245
  • 2
  • 19
  • 17
0
votes
1 answer

NEventStore RavenDB - Obtain Commit Data

I'm working through a basic example of working with NEventStore with RavenDB and I've hit a stumbling block. I've managed to succesfully commit my events to the RavenDB datasource, but now I need to pull them back out, to replay them (CQRS - ES)…
Derek
  • 8,300
  • 12
  • 56
  • 88
0
votes
1 answer

Event Sourcing Event typed against an Aggregate

enter code here I'm looking to enforce the specific type of aggregate, an event can be used with. I have a basic IEventHandler interface :- public interface IEventHandler where TEvent : IEvent { void Handle(TEvent @event); …
Derek
  • 8,300
  • 12
  • 56
  • 88
0
votes
1 answer

CQRS : Where are my aggregate roots?

I have a backoffice configuration system for bus operator and transportation products (currently CRUD oriented ). I need to perform the audit and keep track of the history of all the configuration parameters. I think a CQRS approach could meet my…
Dypso
  • 563
  • 1
  • 5
  • 15
0
votes
1 answer

SQL table event store as a queue in Qt App

I need some advice on my Qt app using just Qt classes. I can accept QtNetwork and QSql modules as solutions but not "3rd party" tools such as RabbitMQ etc. I'm using "Event Store As A Queue" (see Greg Young page 46) with CQRS with Event Sourcing. I…
Derick Schoonbee
  • 2,971
  • 1
  • 23
  • 39
0
votes
2 answers

Duplicating all data in Lucene index

We are creating lucene indexes from data being stored in event store as a stream of events. Those indexes are used to provide efficient paging/sorting/search capabilities with our data. It happens that we have to duplicate all data in indexes in…
Maxím G.
  • 860
  • 10
  • 14
0
votes
1 answer

How to let akka event sourcing (akka-persistence) use parallel journal actors

I am testing event sourcing (akka-persistence) and wrote my own Journal plugin. But when running performance tests, I quickly noticed that not all CPU resources are used. The class which writes messages to the journal is an actor (e.g. is executes…
sebdehne
  • 332
  • 3
  • 7
0
votes
1 answer

How to map Aggregate with lots of writes

To evaluation purpose I'm trying to set-up an event-sourcing application, its a "Personal Finance Software", the first attempt is to create an Aggregate Root (Account) who you can add entities (Transaction/s). Account will receive lots of…
peterbrown
  • 574
  • 6
  • 13
0
votes
1 answer

Persisting an Entity that is a part of an Aggregate

Consider we have a BankCard Entity that is a part of Client Aggregate. Client may want to cancel her BankCard class CancellBankCardCommandHandler { public function Execute(CancelBankCardCommand $command) { $client =…
0
votes
2 answers

Generating commands when events happen in Akka Persistence

I am implementing an EventSourcing application that handles a large number of original and derived data points. In short, we have an PersistentActor functioning as an Aggregate Root accepting commands: UpdateValue(name, value,…
0
votes
1 answer

CQRS/ES Update Aggregate Command

I'm currently in a situation where I'm replacing the domain layer of an application but must retain the existing MVVM UI. We definitely want an event store, but I'm struggling with some aspects of our current CQRS implementation. We have some…
agartee
  • 445
  • 2
  • 15
0
votes
1 answer

How to implement facebook signin in cqrs?

I am learning cqrs and event source and trying to use it in my project. And I was stuck in the 1st step: facebook sign in. What I want to implement is the controller for the facebook callback. The basic logic is very simple, just search the…
Ron
  • 6,037
  • 4
  • 33
  • 52