What is the difference between a monolith and microservices?
IntermediateConceptCore DevOps concepts
Answer
- Monolith: the whole application is one codebase and one deployment. Simple to start, but a small change requires redeploying everything, and one bug can bring down the whole app.
- Microservices: many small services deployed separately. Teams can move independently and scale only what they need, but you take on more operational complexity (networking, monitoring, many pipelines).
Many companies start with a monolith and split it into microservices as they grow.