Microservices vs Monolith
System architecture is important part while we design our product.
Source n-ix.com/microservices-vs-monolith-which-ar..
Definitions
Monolith
Huge systems running entire system, need not to be single, i.e. we can scale horizontally.
Advantages
- Good for small team.
- Less complex, easy to maintain.
- Less duplication of code.
- Faster, procedure call is faster, cuz its within same machine
Disadvantage
- More frequent deployments, as everything is interconnected
- If server crashes, whole system will stop
Microservices
When monolith breaks into pieces called micro services. Small business unit running specific functions.
Advantages
- Easy to scale, each service is concerned with some function
- Team management is easy.
- Parallel development is easy.
- Analysis of service is easy.
Disadvantage
- Not easy to design
Migrate from monolith to microservices
When our product grows larger, need for microservice architecture increases, so different teams can work on different services, some changes may break the existing code. New services should be separatly