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
-1
votes
1 answer

Should event sourcing database provide ACID properties

Not sure which term to use "Database" or "Event store" but I'm talking about where we store our events. I wonder if Event store should have ACID properties, especially the Atomicity. What I mean by that, should we be able to rollback the state, in…
Patrick
  • 734
  • 11
  • 26
-1
votes
1 answer

In Event Sourcing, How to make changes in database using arrays and no ORM?

I have a class like this: class Community{ public List Moderators = new(); public void AddModerator(Moderator moderator) => Moderators.Add(moderator) } When i run the replay for all events from my EventStore, its ok to…
-1
votes
1 answer

How to create a event source system with nodejs and mongodb

I am quite new to event source concept but got glimpse that i need to divide my each task or operation to event and save those, but my basic do but is if for each request if you save each step as event then should not be the db size increase and…
-1
votes
2 answers

Design guides for Event Sourced microservices

I am thinking what is the best way to structure your micro-services, in the past the team I was working with used Axon Framework and PostgreSQL and each microservice had its own event store in the PostgreSQL database, then we built communication…
OMG-1
  • 498
  • 1
  • 6
  • 20
-1
votes
1 answer

Do I need to store last state of object in separate table in Event Sourcing

I'm still learning event sourcing i dont undestand something. When i get a command to change object, do I first recreate that object from event store than change it and save event, or should i have separate table that holds last state? What is…
milandjukic88
  • 1,065
  • 3
  • 13
  • 30
-1
votes
3 answers

How to replay Event Sourcing events reliably?

One of great promises of Event Sourcing is the ability to replay events. When there's no relationship between entities (e.g. blob storage, user profiles) it works great, but how to do replay quckly when there are important relationships to…
iirekm
  • 8,890
  • 5
  • 36
  • 46
-1
votes
2 answers

Why CQRS and Event Sourcing design pattern is getting popular recently?

Command Query Responsibility Separation (CQRS) and Event Sourcing (ES) pattern has been around for more than a decade. However, in recent years, many people are familiarizing themselves with these patterns. Is there any reason like technological…
-1
votes
1 answer

Event Sourcing - Event Store

I am trying to understand the DDD / Event-sourcing / CQRS etc. Lets consider an e-comm application with below Microservices. order-service shipping-service payment-service Can you clarify these questions? We can relate domain as a large…
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
-1
votes
2 answers

Event Sourcing - How to aggregate

I am trying to understand how to implement this in Event sourcing model / DDD. Assume a distributed application in which user submits an application for something, say Job/Loan. So the application raises an UserApplied Event. There are few micro…
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
-1
votes
1 answer

Need to define command handler and EventSourcingHandler in the children entity

*I am trying to migrate command handlers and EventSourcingHandler to the mapping class to tableB class. Also I am defining my command handler and event as follow.Please suggest how can I migrate the command handlers from TableA to TableB class…
Misthi
  • 33
  • 10
-1
votes
2 answers

CQRS: Should I use different event for Read Model?

I have a project with the CQRS & Event Sourcing already implemented. Now I am going to implement a Read Model. At the moment, the ProductCreated event has the EventID and the Product ID. But we for the read model, I want to use different fields -…
vhurryharry
  • 1,875
  • 1
  • 10
  • 28
-1
votes
1 answer

How to enforce invarients in aggregate relationships

I am new to event sourcing and ddd and trying to create a simple app to learn more, but I'm strruggling with how to model a relationship between two aggregates. The idea is to allow companies to create activities that can then be searched for by…
-1
votes
2 answers

Symfony, proopgh, event soursing Error 42S02. Maybe the event streams table is not setup?

Good day/night, I'm really new in prooph event sourcing. Try to understand how it works with symfony. Take a look on this project. https://github.com/prooph/proophessor-do-symfony What should I do with the DB in the beginning ? I run the…
alytvynov
  • 81
  • 12
-1
votes
2 answers

Event sourcing concurrency issue across multiple instances

I am new to Event sourcing concept so there are a couple of moments I don't understand. One of them is how to handle following scenario: I've got 2 instances of a service. Both of them listen to a event queue. There are two messages: CreateUser and…
Alexander Capone
  • 528
  • 3
  • 16
-1
votes
1 answer

DDD & Event Sourcing: Handle changings

I've been reading about Event Sourcing and DDD for a several weeks. So, I need to create a ubiquitous language. What does it exactly mean? I need to create some library defining some domain classes, doesn't it? So, I would have created an…
Jordi
  • 20,868
  • 39
  • 149
  • 333
1 2 3
81
82