Micro Service PP T
Micro Service PP T
AGENDA
Monolith Application
Drawbacks of Monolithic Architecture
Microservices, its benefits and challenges
Spring Cloud and its components
Example
MONOLITH APPLICATION
Fault Isolation: If one microservice fails, it doesn’t necessarily bring down the whole
system.
Easier Maintenance and Upgrades: Microservices make it easier to isolate bugs and
make updates without impacting other parts of the system.
SOLUTIONS BY
CHALLENGES SPRING CLOUD
Discovering all the running
Eureka Naming Server
services and their instances
Different services need to communicate with each other, and service discovery helps by making
it easier for services to find each other without hardcoded IP addresses or hostnames.
Eureka provides both a Service Registry and a Client. The service registry acts as a central
directory where services register themselves and can be discovered by others.
MS-A
(8081)
Eureka Naming
Server
MS-B
th cal
l (9092)
nd 4
1s a
t
Ribbon MS-B
MS-A 2 nd
call (9093)
(9091)
Client 3 rd
cal
l MS-B
(9094)
API GATEWAY
API Gateway is a key component that acts as a single entry point for all client requests to the
various microservices. It serves as an intermediary layer between the client (like a web or
mobile application) and the microservices, helping manage communication, routing, and
security.
API
Gateway
Server MS-B
Client
MS-C
MS-A
MS-D
FAULT TOLERANCE WITH
HYSTRIX
MS-B
MS-A (Faulty Service) MS-C
Client
CENTRALIZED CONFIGURATION
MS-A
Spring Cloud
GIT MS-B
Repo Config Server
MS-C
EXAMPLE – E-Commerce Application
Thank You