4 ms·
I always hoped that materialized views would rise to the occasion and we could have the best of both worlds. Events for writes and current data for most reads.
by hinkley 10y ago
I always hoped that materialized views would rise to the occasion and we could have the best of both worlds.
Events for writes and current data for most reads.
- rreppel 10y agoJust don't do eventual consistency if the domain doesn't allow for it and if performance is OK. From a functional perspective there is no need for it in CQRS/ES systems. However ... if going with eventual consistency, it's essential that the write side is consistent. The read models - not so much. This is because every aggregate (... if Domain Driven Design terminology is your thing) represents a transactional boundary within which state needs to be consistent in order for the business rules to work correctly. Read models are more forgiving.