100% found this document useful (1 vote)
30 views4 pages

Horizontal vs Vertical Scaling in Microservices

Horizontal scaling involves creating multiple copies of an application across multiple servers so that if one server fails, requests can be redirected to another server. Vertical scaling uses a single system and increases the capacity of that single system, so if it fails the entire application will be unavailable. Microservices architecture decomposes applications into small, independent services that communicate via REST or RPC calls, allowing individual services to scale horizontally and for the application as a whole to scale more efficiently.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
30 views4 pages

Horizontal vs Vertical Scaling in Microservices

Horizontal scaling involves creating multiple copies of an application across multiple servers so that if one server fails, requests can be redirected to another server. Vertical scaling uses a single system and increases the capacity of that single system, so if it fails the entire application will be unavailable. Microservices architecture decomposes applications into small, independent services that communicate via REST or RPC calls, allowing individual services to scale horizontally and for the application as a whole to scale more efficiently.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Horizontal Scaling vs Vertical Scaling

Horizontal Scaling: Creating multiple copy of the same application and


keeping in multiple servers. If one server goes down, then request can be
redirected to another server.

Vertical Scaling: Using single system and increasing capacity of the same
system. If this system goes down, then application does not work.

Microservices

Monolith Architecture: – Big Rock

Unrestricted
Microservices Architecture:
Functional Decomposition:
In Microservices architecture, we have to decompose applications into small
services and services should communicate each other using REST or RPC calls.
Each service will have their own DB

Search

REST/RPC

Reviews
User 1
REST/RPC

Unrestricted
Users

User2 REST/RPC

Payments
User n
REST/RPC
Shipping

REST/RPC

Notification

User 1 want to make call for reviews and after that users => call to Load Balancer
then it goes to Reviews Microservice and now after that call uses REST or RPC call
to communicate to users microservice.

How to Scale Microservice (Scale Cube)


Data
Partitioning
Functional
Decomposition

Unrestricted
Horizontal Scaling
We can scale microservice using:
1. Functional Decomposition
2. Horizontal Scaling
3. Data Partitioning

1. Functional Decomposition: Divide application into microservices.


2. Horizontal Scaling: Create multiple copy of servers which will have same
service copy.
3. Data Partitioning: Microservices can be divided into small microservices
again to handle data separately.

Search

Reviews

Users
User 1 Payments

Shipping
Notification

User n

Unrestricted

You might also like