DEV Community

Discussion on: Explain Microservices Like I'm Five

Collapse
 
monknomo profile image
Gunnar Gissel

You can run everything in one big program, but it gets crowded. It's a bit like when the garage is messy, we have to do a lot of work every time we want to take your bicycle out to play.

Microservices are like giving everything in the garage their own garage. A garage for your bike, a garage for my wrench, a garage for my hammer, and so on and so forth.

The smaller garages are really easy to put stuff in and takes stuff out of, but when you want to do something big, like have a squirt gun fight with your friends, you have to unlock lots of little garages to get your water balloons and squirt guns.

When you only have one garage, sometimes it's hard to tell where to start cleaning, or where something is in the garage. When you have many tiny garages, sometimes you lose a whole garage!