Questions:
- What is the definition of a microservice?
- List three reasons why microservices can be helpful.
- List three reasons not to choose microservices.
- List four differences between a monolith and microservices.
Answers:
- A microservice is a small business unit operating as independently as possible.
- Three reasons:
- Independently scalable
- Independently maintainable
- Decreased complexity
- Three reasons:
- Too small for a project (only one microservice).
- Not enough time or resources available to convert all legacy code.
- Increased initial work.
- Four differences:
- A monolith has one code base; each microservice has its own.
- Monoliths usually operate with only one database; each microservice has its own database.
- Monoliths are hard to scale as the entire service must be scaled, while microservices can be scaled individually.
- Monoliths...