4 ms·
I believe this is what Command Query Responsibility Segregation (CQRS) is all about. By having one object handling writes, and another for reads, things are eas
by SimonKinds 9y ago
I believe this is what Command Query Responsibility Segregation (CQRS) is all about. By having one object handling writes, and another for reads, things are easier to reason about among other benefits. An event bus is kind of required in this kind of architecture if the view that's reading wants to stay updated, as it may no longer access a return value.
Source: https://martinfowler.com/bliki/CQRS.html https://martinfowler.com/bliki/CQRS.html
- leoc 9y agoI think Fowler would describe the model in the article as more like "Event-carried State Transfer": https://www.youtube.com/watch?v=STKCRSUsyP0 https://www.youtube.com/watch?v=STKCRSUsyP0 .