Search code examples
node.jsmicroservicesdomain-driven-design

What are the differents between microservices and domain driven design?


What are the differents between microservices and domain driven design?

Are they the same?

Microservices concept for my best understanding is to keep apart every service that mean build and deploy separately than other services.

ddd is for keep apart every domain (service?) and create Bounded Context between domains I think it's the same as microservices but with difference words.


Solution

  • Microservices and Domain-driven design are two different things but it comes hand to hand while implementing the microservices.

    Domain-driven design is a logical separation of data.

    Every microservice always belongs to some domain. Further, it also caters to the sub-domain level.

    Benefits of using DDD in microservices architecture:

    1)Microservices get separated by domain so it is very easy to maintain.

    2)Developing and deploying the microservice will be as per domain.

    3)Maintaining config maps for domain and at sub-domain level.

    4)Maintaining the code repositories, CI/CD pipeline, and deployment as per domain.

    5)Boundary gets defined between microservices for communications.