Quiz Entry - updated: 2026.12.01
What is the difference between a monolith and a microservices architecture, and how do containers fit in?
A monolith is one big application deployed as a unit; microservices split it into small independent services. Each container is one service.
| Monolith | Microservices | |
|---|---|---|
| Structure | All functions (UI, logic, data access) in one codebase and one process | Many small services, each doing one job and talking over the network (HTTP, queues) |
| Deployment | Any change means rebuilding and redeploying everything | Each service is built, deployed and replaced independently, even while the rest keeps running |
| Scaling | Scale the whole thing | Scale only the busy service (run five web containers, one database) |
| Failure | One bug can take everything down | A failing service can be restarted on its own |
| Downside | Grows hard to understand and maintain | More moving parts: networking, service discovery, distributed debugging |
Containers suit microservices naturally: one service per container, its dependencies packaged with it, started and replaced in seconds. Docker Compose (on one host) or Kubernetes (across many) then describes how the services fit together.
* One deployable unit versus independent services. *
Go deeper:
Martin Fowler and James Lewis: Microservices — the classic article defining the style and its trade-offs.
Wikipedia: Microservices — an overview with criticism and the monolith comparison.