Microservices - Back-End (How the big apps run?)

Microservices - Back-End

How the big apps such as Netflix, YouTube, and Instagram run.?

"This article targets the back-end work"


Let's agree that there are two types of ways to build apps.


1- monolithic

2- Microservices - also known as the microservice architecture


The first type that we all do is one application that includes all services.

This method is full of defects, the most famous one:

If the server (that has our application) fails, the whole application will fail as well.


The second drawback is the difficulty of dividing the tasks between programmers, It will be hard if 4 programmers work on 1 project at the same time.


From here, the microservice method is used to solve problems, but it also has flaws.


For example, Netflix consists of 4 servers


- recording system

- subscription system

- Viewing system

- Suggestion system

 And others. 


Microservice means every service from those above is treated as a new project with its databases.


If there is a problem, for example, in the registration system, the rest of the systems will not be affected.


This is what we notice on Facebook. for example, sometimes Messenger does not work even though Facebook is working?

Or when Messenger sends normal messages, but it does not send pictures.


Of course, each of these services communicates with each other with something called event bus, and there are certain ways to connect these services to each other through Docker and others.


Docker: In simple terms, is a software platform that simplifies the process of building, running," managing, and distributing applications. It does this by virtualizing the operating system of the computer on which it is installed and running."


One of the advantages using microservice is that you can find services written in Java and other services written in Python.


Now: tell me your opinion regarding this matter :)


You can read also: HOW TO BECOME A PYTHON DEVELOPER?

No comments:

Post a Comment

Pages