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
17
votes
3 answers

Framework suggestion for CQRS and EventSourcing

Are there any other Java frameworks for CQRS and Event Sourcing other than Axon Framework? I am specifically looking for Java based framework. Must support event sourcing.
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
16
votes
5 answers

How to "join" two Aggregate Roots when preparing View Model?

Assume that Book and Author are Aggregate Roots in my model. In read model i have table AuthorsAndBooks which is a list of Authors and Books joined by Book.AuthorId When BookAdded event is fired i want to receive Author data to create a new…
Dmitry Schetnikovich
  • 1,752
  • 17
  • 26
16
votes
3 answers

Event-sourcing: when (and not) should I use Message Queue?

I am building a project from scratch using event-sourcing with Java and Cassandra. My apps we be based on microservices and in some use cases information will be processed asynchronously. I was wondering what part a Message Queue (such as Rabbit,…
Felipe
  • 259
  • 1
  • 3
  • 9
16
votes
2 answers

How granular should a domain event be?

I am wondering how granular should a domain event be? For example I have something simple, like changing the firstName, the secondName and the email address on a profile page. Should I have 3 different domain events or just a single one? By coarse…
inf3rno
  • 24,976
  • 11
  • 115
  • 197
16
votes
3 answers

Can we use REST + Event Sourcing + CQRS together

I understand the basics of REST + Event Sourcing. I never worked on a strict RESTful API and not either in any Event Sourcing project. Can someone explain if both can be used together? As in event sourcing, the client send events, does this mean…
Sebastien Lorber
  • 89,644
  • 67
  • 288
  • 419
16
votes
3 answers

Why should the event store be on the write side?

Event sourcing is pitched as a bonus for a number of things, e.g. event history / audit trail, complete and consistent view regeneration, etc. Sounds great. I am a fan. But those are read-side implementation details, and you could accomplish the…
Jeremy Rosenberg
  • 792
  • 6
  • 18
15
votes
1 answer

what is the difference between event driven and domain driven design Microservices?

What is event driven design and Domain driven design? What are the specific benefits using of Domain driven design, event driven design in MicroServices.
G SriHAri
  • 706
  • 2
  • 9
  • 27
15
votes
4 answers

Is Event sourcing using Database CDC considered good architecture?

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 events and act on/use them accordingly. But the…
RBanerjee
  • 957
  • 1
  • 9
  • 18
15
votes
2 answers

What software to use for Event Storming?

With regard to Event Sourcing and Domain Driven Design, I'm looking for a good software solution to help my team model our Aggregates electronically during an Event Storming session. I have considered simple sticky note applications but they leave a…
Velice Naumoski
  • 153
  • 1
  • 1
  • 4
15
votes
3 answers

EventStore Subscribing to a stream for a category

I have started creating a test application in .Net, that uses EventStore by Greg Young as the backing store for CQRS/ES. In order to make it easy to load up a full aggregate, I save to a stream with a name of "agg-123". For example for a product…
eyeballpaul
  • 1,725
  • 2
  • 25
  • 39
15
votes
5 answers

Event sourcing infrastructure implementation

I implement Event Sourcing and CQRS pattern in my application. I inspired by CQRS journey where I downloaded sample code. There I found whole infrastructure for Event sourcing (CommandHandlers, EventHandlers, Events, Envelopes ... etc.), but it is…
y0j0
  • 3,369
  • 5
  • 31
  • 52
15
votes
4 answers

Is Reactive Extensions a good fit for a bus?

I have been using Rx for a little bit now to create an event bus (think CQRS/ES) within a single application, and it seems to work great. However, after surveying a bunch of different Event Sourcing frameworks, I have not seen Rx used once. It seems…
Erick T
  • 7,009
  • 9
  • 50
  • 85
14
votes
3 answers

Event Sourcing: Events that trigger others & rebuilding state

I'm struggling to get my head around what should happen when rebuilding the model by replaying events from the EventStore, in particular when events may trigger other events to happen. For example, a user who has made 10 purchases should be…
Kirschstein
  • 14,570
  • 14
  • 61
  • 79
14
votes
5 answers

Event sourcing without CQRS

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?
k13i
  • 4,011
  • 3
  • 35
  • 63
14
votes
1 answer

Real World Microservices gRPC vs Event Sourcing

I am trying to learn about microservices, and am confused about which approach is better between service orchestration and event sourcing ( service choreography) . There seems to be very few frameworks available which allow you to just build your…
John
  • 505
  • 4
  • 20
1 2
3
81 82