SlideShare a Scribd company logo
Basics of Microservice Architecture
Presenter: Souvik Ghosh
TOPICSOFDISCUSSION
 What is Microservice?
 What is Monolithic Architecture and It’s Drawbacks
 Why to Use Microservice Architecture?
 Challenges in Microservices Implementation and How to Resolve It
 What is Service Discovery and Eureka?
 Calling Another Microservice and Load Balancing
 Use of API Gateway
 Fault Tolerance With Hystrix
 Centralized Configuration Using Spring Cloud Config Server
 A Sample Microservices Architecture
What are Microservices?
Monolithic Architecture Microservices Architecture
Application A
Application a1 Application a2
Application a3 Application a4
Drawbacks of Monolithic Architecture
1. Large monolithic code base is very difficult to understand
2. It’s not fault tolerant
3. Overloaded Web Container and Overloaded IDE
4. Frequent deployment is difficult
5. Scaling the application is difficult
6. “A monolithic architecture forces you to be married to the technology stack
(and in some cases, to a particular version of the technology) you choose at
the start of the development.”
Why Microservice Architecture?
1. Code base is better understandable
2. Highly maintainable and testable - enables rapid and frequent
development and deployment
3. Loosely coupled with other services so independently deployable
4. Improved fault isolation
5. Adapting new technologies is easier
6. The faster IDE makes developer more productive
Challenges in Microservices Implementation and Solutions
Discovering all the running services and
their instances
Taking care of multiple service calls
Finding easier way of load balancing
Maintaining configuration of multiple
services
Monitoring all the incoming requests to
all the services
Handling Fault Tolerance
Eureka Naming Server by Netflix OSS
Rest Template by Spring Frameworks
Feign Client by Netflix OSS
Ribbon by Netflix OSS
Spring Cloud Config Server
Zuul API Gateway by Netflix OSS
Hystrix By Netflix OSS
What is Service Discovery?
Eureka
Eureka Naming Server
(port:8761)
Ms-A
(8081)
Ms-B
(8082)
Ms-C
(8083)
http://localhost
:8761
Ms-A running on port 8081
Ms-B running on port 8082
Ms-C running on port 8083 &
8084
Ms-C
(8084)
Calling Another Microservice and Load Balancing
Eureka Naming Server
Ms-A
(9091)
Ms-B
(9092)
Ms-B
(9093)
Ms-B
(9094)
Ribbon 2nd call
Client
Use of API Gateway
Ms-A
Ms-B
Ms-C
Ms-D
Client
Zuul API
Gateway
Server
Fault Tolerance With Hystrix
Faulty Ms-B returns a default output to make the other services safe
Ms-A
Ms-B
(Faulty Service)
Ms-C
Client
Centralized Configuration By Config Server
Storing All Configurations in a GIT Repository
Ms-A
Ms-B
Ms-C
Spring Cloud Config
Server
GIT
Repo
Sample
Microservices
Architecture
Thank You

More Related Content

PDF
Securing danish healthcare using cloudnative
PDF
NYC Kubernetes Meetup: Ambassador and Istio - Flynn, Datawire
PDF
Istio : Service Mesh
PDF
Excuse me, your Crypto is showing!
PDF
How to Build a Basic Edge Cloud
PDF
Securing Serverless - By Breaking In
PPTX
DevSecCon Asia 2017 Joel Divekar: Using Open Source Automation tools for DevS...
PDF
Securing Your Containers is Not Enough: How to Encrypt Container Data
Securing danish healthcare using cloudnative
NYC Kubernetes Meetup: Ambassador and Istio - Flynn, Datawire
Istio : Service Mesh
Excuse me, your Crypto is showing!
How to Build a Basic Edge Cloud
Securing Serverless - By Breaking In
DevSecCon Asia 2017 Joel Divekar: Using Open Source Automation tools for DevS...
Securing Your Containers is Not Enough: How to Encrypt Container Data

What's hot (20)

PDF
Serverless Security: What's Left To Protect
PPTX
Jenkins Terraform Vault
PDF
Microservices: A Security Nightmare?
PPTX
MicroProfile as the Istio Programming Model | Virtual Eclipse Community Meetup
PDF
Kubernetes meetup geneva june 2021
PDF
DevSecCon Singapore 2019: Preventative Security for Kubernetes
PPTX
Evaluating container security with ATT&CK Framework
PDF
Shifting security left simplifying security for k8s open shift environments
PDF
Principles of Monitoring Microservices
PDF
Webinar: Introduction to CloudBees Jenkins Platform
PDF
Security threats with Kubernetes - Igor Khoroshchenko
PDF
Using Kubernetes to make cellular data plans cheaper for 50M users
PDF
Cisco Cloud Networking Workshop
PDF
Istio Playground
PDF
Practical Guide to Securing Kubernetes
PDF
Serverless security - how to protect what you don't see?
PPTX
Lacework | Top 10 Cloud Security Threats
PDF
Microservices Practitioner Summit Jan '15 - Maximizing Developer Productivity...
PDF
Spring Security 5.5 From Taxi to Takeoff
PDF
Améliorer OpenStack avec les technologies Intel
Serverless Security: What's Left To Protect
Jenkins Terraform Vault
Microservices: A Security Nightmare?
MicroProfile as the Istio Programming Model | Virtual Eclipse Community Meetup
Kubernetes meetup geneva june 2021
DevSecCon Singapore 2019: Preventative Security for Kubernetes
Evaluating container security with ATT&CK Framework
Shifting security left simplifying security for k8s open shift environments
Principles of Monitoring Microservices
Webinar: Introduction to CloudBees Jenkins Platform
Security threats with Kubernetes - Igor Khoroshchenko
Using Kubernetes to make cellular data plans cheaper for 50M users
Cisco Cloud Networking Workshop
Istio Playground
Practical Guide to Securing Kubernetes
Serverless security - how to protect what you don't see?
Lacework | Top 10 Cloud Security Threats
Microservices Practitioner Summit Jan '15 - Maximizing Developer Productivity...
Spring Security 5.5 From Taxi to Takeoff
Améliorer OpenStack avec les technologies Intel
Ad

Similar to Basics of Microservice Architecture (20)

PPTX
Application Centric Microservices from Redhat Summit 2015
PPTX
Webinar : Microservices and Containerization
PPSX
Microservices Docker Kubernetes Istio Kanban DevOps SRE
PDF
Migrating to Microservices Patterns and Technologies (edition 2023)
PPSX
Microservices Architecture, Monolith Migration Patterns
PPTX
Do You Need A Service Mesh?
PPTX
MicroService Architecture
PDF
Introduction to Microservices
PPTX
Application Centric Microservices Architecture
PDF
The Future of Cloud Innovation, featuring Adrian Cockcroft
PPTX
Executive Briefing: The Why, What, and Where of Containers
PDF
Java Microservices HJUG
PPTX
Webinar Series Part 2 -Recipe for a Successful SaaS Company - Migrating Sing...
PPTX
Microservice Pattern Launguage
PPTX
Intro to spring cloud &microservices by Eugene Hanikblum
PDF
cross cloud inter-operability with iPaaS and serverless for Telco cloud SDN/NFV
PPTX
Microservices with Docker
PPTX
Build12 factorappusingmp
PDF
DCSF19 Adding a Modern API Layer to ‘Dockerized’ Legacy Apps
PDF
Istio as an Enabler for Migrating Monolithic Applications to Microservices v1.3
Application Centric Microservices from Redhat Summit 2015
Webinar : Microservices and Containerization
Microservices Docker Kubernetes Istio Kanban DevOps SRE
Migrating to Microservices Patterns and Technologies (edition 2023)
Microservices Architecture, Monolith Migration Patterns
Do You Need A Service Mesh?
MicroService Architecture
Introduction to Microservices
Application Centric Microservices Architecture
The Future of Cloud Innovation, featuring Adrian Cockcroft
Executive Briefing: The Why, What, and Where of Containers
Java Microservices HJUG
Webinar Series Part 2 -Recipe for a Successful SaaS Company - Migrating Sing...
Microservice Pattern Launguage
Intro to spring cloud &microservices by Eugene Hanikblum
cross cloud inter-operability with iPaaS and serverless for Telco cloud SDN/NFV
Microservices with Docker
Build12 factorappusingmp
DCSF19 Adding a Modern API Layer to ‘Dockerized’ Legacy Apps
Istio as an Enabler for Migrating Monolithic Applications to Microservices v1.3
Ad

Recently uploaded (20)

PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Cloud computing and distributed systems.
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PPT
Teaching material agriculture food technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Programs and apps: productivity, graphics, security and other tools
Network Security Unit 5.pdf for BCA BBA.
Advanced methodologies resolving dimensionality complications for autism neur...
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf
The AUB Centre for AI in Media Proposal.docx
Per capita expenditure prediction using model stacking based on satellite ima...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Approach and Philosophy of On baking technology
Cloud computing and distributed systems.
Encapsulation_ Review paper, used for researhc scholars
MIND Revenue Release Quarter 2 2025 Press Release
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
Teaching material agriculture food technology
Review of recent advances in non-invasive hemoglobin estimation

Basics of Microservice Architecture

  • 1. Basics of Microservice Architecture Presenter: Souvik Ghosh
  • 2. TOPICSOFDISCUSSION  What is Microservice?  What is Monolithic Architecture and It’s Drawbacks  Why to Use Microservice Architecture?  Challenges in Microservices Implementation and How to Resolve It  What is Service Discovery and Eureka?  Calling Another Microservice and Load Balancing  Use of API Gateway  Fault Tolerance With Hystrix  Centralized Configuration Using Spring Cloud Config Server  A Sample Microservices Architecture
  • 3. What are Microservices? Monolithic Architecture Microservices Architecture Application A Application a1 Application a2 Application a3 Application a4
  • 4. Drawbacks of Monolithic Architecture 1. Large monolithic code base is very difficult to understand 2. It’s not fault tolerant 3. Overloaded Web Container and Overloaded IDE 4. Frequent deployment is difficult 5. Scaling the application is difficult 6. “A monolithic architecture forces you to be married to the technology stack (and in some cases, to a particular version of the technology) you choose at the start of the development.”
  • 5. Why Microservice Architecture? 1. Code base is better understandable 2. Highly maintainable and testable - enables rapid and frequent development and deployment 3. Loosely coupled with other services so independently deployable 4. Improved fault isolation 5. Adapting new technologies is easier 6. The faster IDE makes developer more productive
  • 6. Challenges in Microservices Implementation and Solutions Discovering all the running services and their instances Taking care of multiple service calls Finding easier way of load balancing Maintaining configuration of multiple services Monitoring all the incoming requests to all the services Handling Fault Tolerance Eureka Naming Server by Netflix OSS Rest Template by Spring Frameworks Feign Client by Netflix OSS Ribbon by Netflix OSS Spring Cloud Config Server Zuul API Gateway by Netflix OSS Hystrix By Netflix OSS
  • 7. What is Service Discovery? Eureka Eureka Naming Server (port:8761) Ms-A (8081) Ms-B (8082) Ms-C (8083) http://localhost :8761 Ms-A running on port 8081 Ms-B running on port 8082 Ms-C running on port 8083 & 8084 Ms-C (8084)
  • 8. Calling Another Microservice and Load Balancing Eureka Naming Server Ms-A (9091) Ms-B (9092) Ms-B (9093) Ms-B (9094) Ribbon 2nd call Client
  • 9. Use of API Gateway Ms-A Ms-B Ms-C Ms-D Client Zuul API Gateway Server
  • 10. Fault Tolerance With Hystrix Faulty Ms-B returns a default output to make the other services safe Ms-A Ms-B (Faulty Service) Ms-C Client
  • 11. Centralized Configuration By Config Server Storing All Configurations in a GIT Repository Ms-A Ms-B Ms-C Spring Cloud Config Server GIT Repo