Relative Content

Tag Archive for cqrs

REST Service and CQRS

I am struggling with architecture on a new project. I am using the following patterns/technology.

REST Service and CQRS

I am struggling with architecture on a new project. I am using the following patterns/technology.

Encapsulate one business story/use case in one class?

I don’t like classes like *Service, with bunch of business methods – aka anemic model. I was thinking, instead, to have a class per use case. This was inspired (if not the same) from CQRS. Even if we are not using event sourcing, I believe that this kind of encapsulation would make sense. Then the service layer (application layer) would simple consist of commands that user can instantiate and pass to some executer.