DEV Community

loading...

What Are Microservices And Why Are They Taking Over?

kerndesigns profile image Kern Designs ・1 min read

Monoliths

Monolith Server Architecture is a thing of the past, but to understand that we have to understand what it is. Traditionally we hosted resources in one environment which made it versatile, but also heavy and very difficult to update changes. Everything was happening in one pipeline, so if one part crashed it all did.

Microservices

Like always, the technology is changed and microservices are just one example. Microservices are used to split up tasks into specific operations. In the picture below, you can see all the small microservices one interface may be running on multiple machines. The whole functionality of a backend is now in thousands of containers all over the world.

image

Why Switch?

As hinted at this new system is a lot more reliable. You can update code easily and often with a lot fewer issues because you are only changing one container, not all of them. They are flexible in adding and deleting functionality. They may not be perfect for every project, but I would definitely consider them for your next one.

Docker Example

If you are interested in spinning up some microservices with Docker, follow my tutorial!

Discussion (0)

pic
Editor guide