Domain-Driven Design and Microservices
Author | : Nitesh Malviya |
Publisher | : |
Total Pages | : 21 |
Release | : 2020-09-22 |
ISBN-10 | : 9788194292647 |
ISBN-13 | : 8194292646 |
Rating | : 4/5 (47 Downloads) |
Book excerpt: Domain-Driven Design (DDD) concept was introduced by first Eric Evans in 2003. The concept of microservices did not exist at that time. So basically DDD was introduced to solve the problem of a large monolithic code base. In the monolithic world, once the codebase starts growing with the growth of the business, it becomes difficult to maintain the code organized and structured as it was originally designed. Monolithic applications designed using MVC architecture have good separation between the business layer and the presentation layer. But in the absence of the strict architectural guidelines, the business layer does not provide specific rules to maintain responsibility boundaries between different modules and classes. That’s why as the code base grows it increases the risk of logic breakdown, responsibility leakage between the different components of the application.