I’m reading about Autofac – another IoC framework that we use at work. Reading on the autofac page, I found out about CQRS and the more I read about it the more I like it. Being passionate about high scale services, the main concepts of CQRS really resonated with me :
CQRS separates commands (that change the data) from the queries (that read the data).
The design and architecture of a read only service and read-write service are different when it comes to scalability. With read-only services, you can add caching layer to improve hot reads. With read-write services, you have to think about consistency, where caching could turn out to be difficult, depending on the number of machines your services are working on.
More about CQRS – read here.
No comments:
Post a Comment