Skip to main content

Questions tagged [eventual-consistency]

1 vote
3 answers
152 views

Does quorum protocols circumvent fundamental limitations posed by the CAP theorem?

I can have multiple replicas of my database to ensure high availability. Then I can have a quorum such that R+W > N to ensure consistency. So does strategies like quorum base read/write or ...
rahulaga-msft's user avatar
1 vote
0 answers
173 views

DDD -Can an aggregate consumes its own events?

I'm facing to an issue with my design in DDD with "Always valid Domain Model" principale and eventual consistency. I have an aggregate with several public methods to mutate its state. class ...
Paul Contremoulin's user avatar
-2 votes
1 answer
220 views

What is the difference between Eventual Consistency, Strong Eventual Consistency, and Causal Consistency?

I read articles about CRDTs and frequently come across the terms 'Strong Eventual Consistency,' 'Eventual Consistency,' and 'Causal Consistency.' What is the relationship between these consistency ...
Ershetz's user avatar
  • 11
2 votes
2 answers
229 views

Avoid updating multiple Aggregates in Library Application

I am currently analysing the project ddd-library which is really helping in learning designing a system based on DDD principles. However there is one thing I have a problem with. In case of placing a ...
securita's user avatar
0 votes
0 answers
224 views

Event sourcing, bulk update and storing multiple events vs one event with multiple ids

Event-sourcing often implies to have one row per aggregate id : event_id event_type entity_type entity_id event_data 102 OrderCreated Order 101 {...} 103 OrderUpdated Order 101 {...} This is perfectly ...
djflex68's user avatar
0 votes
1 answer
699 views

Ordering events across multiple topics in a distributed system

Our platform is growing in the number of events we're raising, and these different events are often related to one another: ProductCreated ProductUpdated ProductTakenOffSale ProductPutOnSale ...
FBryant87's user avatar
  • 323
1 vote
2 answers
94 views

Phantom read race condition keeping RDBMS in sync with external storage

Here's an interesting scenario, consider a cache with many buckets, and resources that can be shared between buckets: Bucket Highest to lowest priority Foo A, B, C, D Bar B, C, D Baz A In the example ...
danielrs's user avatar
  • 111
3 votes
0 answers
277 views

Microservice architecture but with strong data consistency [closed]

I'm working on a project that has microservice based architecture. Recently we started facing problems where a single user requests requires updating multiple microservices each having it's own ...
JavaLearner's user avatar
0 votes
0 answers
72 views

Designing Aggregate Roots with Logic Spanning over Roots

This seems like a common scenario that someone must have solved by now! I have a setup where a Company may have a set of Default Roles assigned, and Users of that Company should inherit those roles. ...
BuddhiP's user avatar
  • 193
2 votes
1 answer
647 views

Internal/external commands in CQRS

I have several questions related to CQRS in eventually consistent systems with a need of resilient Command/Event processing. Is it OK to have external/public synchronous Commands (triggered by API, e....
Andrew Dunai's user avatar
0 votes
1 answer
1k views

Handling asynchronous domain events with multiple handlers & allowing them to fail independently

We're building a service using DDD, CQRS, & Hexagonal Architecture that allows the user to upload a CSV feed for which every row will be transformed and sent to a third party over HTTP. We have ...
Andrew Dunai's user avatar
2 votes
3 answers
360 views

Foreign key check without data duplication in separate microservices

If for example we have a user, project and a task service where a task is assigned to a single user and user can be part of multiple projects - how can one enforce a rule so that one cannot assign a ...
kisibip183's user avatar
1 vote
2 answers
266 views

How is cross device eventual consistency achieved in real time?

Assume there is a distributed system which works on the principles of eventual consistency. Let's consider a scenario where I update my profile picture using my phone. If I log in using another system,...
Toji's user avatar
  • 121
-1 votes
2 answers
356 views

Transactional and eventual consistency together -- which operations MUST be transactionally consistent?

I find a lot of resources regarding strong consistency versus eventual consistency, and when to choose one or the other. I'm wondering how and when you would have both together. Consider this specific ...
AleksG's user avatar
  • 115
0 votes
1 answer
264 views

Is publishing to the same event store stream from multiple places an anti pattern in a distributed transaction?

Below is a little context to the problem I'm trying to solve. There are two separate microservices with separate frontends , APIs and databases. Customer Microservice - Manages customers Orders ...
cah1r's user avatar
  • 302

15 30 50 per page
1
2 3 4 5 6