DEV Community

Discussion on: CQRS In Microservices – Breaking the Rules

Collapse
 
kspeakman profile image
Kasey Speakman • Edited

So one logical service could well be a combination of two separate read/write services?

Sure, if we are talking about stateless services. The database is probably going to require scaling before the compute resources do. When you do need to scale compute due to read load, it probably doesn't cost that much memory to also carry command handling code along for the ride even if it is mostly dormant. And you still retain the option to split the command and query sides off into different services if the need arises.