When building microservices, we can use a number of best practices to build a robust system. It is important to think about not only one service, but how the service connects to a larger system. We'll go over some best practices in the next sections.
Microservices best practices
Domain Driven Design
Domain Driven Design[9] is a software design technique that's used to understand and solve complex problems. It advocates for decomposing the problem into smaller and more understandable pieces. Services should be modeled around business domains. Problems are seen as various domains and subdomains.
Each business domain should have a clearly defined role and a boundary separating it from other domains. Hence, each model...