Microservice architecture patterns
In the last section, you covered the fundamentals of microservices. Let's now learn about three popular architecture patterns that are often used when creating microservices.
These patterns are as follows:
- Layered architecture
- Event-driven architecture
- Microkernel architecture
In the next sections, you will learn in detail these three common architectures and go through the advantages and disadvantages of each of them.
Layered architecture
This pattern is quite common in software development. As indicated by the name, in this pattern, the code is implemented in layers. Having this layering enables the implementation of "separation of concerns". This is a fancy way of saying that each layer focuses on doing a few things well and nothing else. Having this separation of concerns allows us to optionally run each of these layers on separate servers and therefore allows us to run each layer on hardware that is optimized...