Hi, I am Sanjeet Tiwari...
Let's talk about

Back to Notes

Monolithic VS Microservices

Web

What is Monolithic Architecture ?

Monolithic Architecture simple means - All resides in one place. The entirety of application resides in a single code base. There can be multiple modules associated with the application like - payments, listings and authentication. The code for all the modules follows a single tech stack, and resides in a single code repository.

Monolithic Arch

Disadvantages

Advantages

What is Microservices Architecture ?

Microservices architecture came into picture to tackle the disadvantages of Monolithic Architecture, wherein, a separate codebase, a separate repository and separate deployment pipelines are maintained for separate modules. Many big companies, like Netflix in 2009 switched from a monolithic to microservices architecture.

Microservices Arch

Advantages

Disadvantages

How do different microservices talk to each other ?

Special note

When migrating from a monolithic to microservices architecture, there is no hard rule to determine which parts of the code base will be moved out to a separate code base. It really depends on the business needs and business requirements.

Microservices Architecture is not an ideal choice for small projects, as the cost overhead and complexities will far outweigh the advantages.

Video Source

What are MicroServices? When & Why is it used? | Monolithic vs Microservices Architecture

What are MicroServices? When & Why is it used? | Monolithic vs Microservices Architecture

Apna College

Last updated on 06-09-2024