Codele / System design
Microservices
One big program that does everything is easy to start. Many small programs that talk over the network are easier to keep running when one breaks, but harder to understand.
- A monolith is one big program that does everything. It is simple to build, run and debug.
- Microservices split the work into small programs, each with one job, that call each other over the network.
- If one service breaks, the others can keep working, so only the jobs that need it fail.
- The price: more network trips that can fail, more things to run and watch, and bugs that cross several services.
- Start with a monolith. Split a service out only when a real problem, like team size or heavy load, asks for it.
Loading the playable lesson…