DEV Community

Care
Care

Posted on

Docker: Monolithic vs. Microservice Server Architecture

Today we'll be diving into docker and what Monoliths and microservices are. I've never heard of such words before so if you're the same, let's take a dive together.

As far as researched, a Monolith is composed in a singular piece; everything is connected, and it's like a tool/one controller such as hammer.

Microservices, meanwhile, are moving all the services out of the one body into their own processes; it's like separating the full stack and making smaller areas of work; specialization.

Now let's discuss Docker. What is it? Docker let's you create container environments and instances over a operating system. It's much like VMware but much more lightweight!
Containers allow developing in more isolated environments in order to not affect other services or applications. It also allows for the storage of dependencies giving quick setup and testing.

An example of containers could be a scratch pad coming with all the necessary tools for each page allowing a developer to test and sample changes. Before with monolithic architecture, someone verifying changes would be necessary for something as simple as adding a single user. Imagine whole teams changing a whole system and having to go through that. Yeah, it wasted a lot of time. Now with microservices, processes for devops are a lot easier and smoother. It's much like sending a package from one side of the world to the other (assuming the postal system was equally reliable).

Microservices allowed for more reliable transferring between and across platforms without executables breaking.

To put it basically, much like web components, containers and microservices are like taking a large of list of items on a "To-Do" paper and breaking it up into smaller parts, doing each task separately. This might not be the most accurate way of thought but it's the beginning of such things like compartmentalizing and breaking a large monolithic creation into smaller more manageable pieces of work for a team.

The concept itself seems hard to grasp so I may have rambled, but ramble on!

Video on This: https://youtu.be/yzqyTWlmkIE

Top comments (0)