eShopOnWeb Architecture (15/16) – has a really nice example of the Interface Segregation Principle

We can see a nice example of the interface segregation principle in eShopOnWeb.

For its repository interfaces eShopOnWeb have two interfaces… IRepository and IReadRepository. This means that if a repository for any particular aggregate root only needs to query a DB it can just implement IReadRepository without having to worry about all the update related methods.

Click the image below for a larger view in a new tab…

One thought on “eShopOnWeb Architecture (15/16) – has a really nice example of the Interface Segregation Principle”

Leave a Reply

Your email address will not be published. Required fields are marked *