DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Explain microservices like I am 10 πŸ§’.
Pankaj Tanwar
Pankaj Tanwar

Posted on • Updated on • Originally published at pankajtanwar.in

Explain microservices like I am 10 πŸ§’.

I had a best friendπŸ‘¬ . We used to study together, party together and talk together. But one day, he moved to Surat for his job. I was alone😰, couldn't study with anybody, no parties, and no one to talk with as I only had one friend. ☹️

Then, I decided to make three new friends, one who could help me study πŸ“’, one who loved to partyπŸ•Ί and one who liked to sit around and talk πŸ€—. One day, one who loved to party was sick but fortunately, I had somebody to study with and somebody to talk to.

That one best friend is Monolith. It's great to have such a relationship but if something goes wrong, it's terrible. My group of three friends is microservices - mitigating the risk around by making friends this way!

So, microservices architecture is always good?
No, having 3 friends may lead to more difficult communication and missing out on a deeper connection.

Top comments (2)

Collapse
 
limxingzhi profile image
XING • Edited on

When your restaurant is small, there's only one cook, one waiter and one cleaner and they are all the same person.

A better system will be one where the a dedicated waiter focused just on waitering, a dedicated cook who just do cooking and a dedicated cleaner who just cleans and does the dishes.

Micoservices is about splitting responsibilities.

Collapse
 
pankajtanwarbanna profile image
Pankaj Tanwar

Thanks for your comment. Totally agree. "Microservices is about splitting responsibility" as I divided "studying, party and talking" responsibility among my three friends.

This post blew up on DEV in 2020:

js visualized

πŸš€βš™οΈ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! πŸ₯³

Happy coding!