SlideShare a Scribd company logo
MICROSERVICES
RANGA RAO
KARANAM
Top Instructor on Udemy
Author of "Mastering Spring 5.0"
IN28MINUTES
Create more great programmers
Help you make the right career choices
Spring to Cloud - REST To Microservices
Spring to Cloud - REST To Microservices
Spring to Cloud - REST To Microservices
WE LOVE
BUZZWORDS
MICROSERVICES IS
THE LATEST ONE!
MICROSERVICES VS
MONOLITH
What are you doing today?
MONOLITH
LARGE
Application Size
Release Cycles
Teams
SCALABILITY
CHALLENGES
NEW TECHNOLOGY
ADOPTION
AGILE?
AUTOMATION
TESTING?
ADAPTING TO
MODERN
DEVELOPMENT
PRACTICES?
ADAPTING TO DEVICE
EXPLOSION?
SOLUTION?
MICROSERVICES
Small autonomous services that work
together - Sam Newman
Developing a single application as a
suite of small services each running in
its own process and communicating
with lightweight mechanisms, o en an
HTTP resource API....contd
These services are built around
business capabilities and
independently deployable by fully
automated deployment
machinery...contd
There is a bare minimum of centralized
management of these services, which
may be written in different
programming languages and use
different data storage technologies -
James Lewis and Martin Fowler
MICROSERVICES
REST
& Small Well Chosen Deployable Units
& Cloud Enabled
HOW DOES IT LOOK?
MONOLITH
Spring to Cloud - REST To Microservices
Spring to Cloud - REST To Microservices
ADVANTAGES?
NEW TECHNOLOGY & PROCESS
ADAPTION
FASTER RELEASE CYCLES
SCALING
LET'S GET TO
CHALLENGES!
QUICK SETUP
NEEDED
AUTOMATION
VISIBILITY
BOUNDED CONTEXT
CONFIGURATION
MANAGEMENT
DYNAMIC SCALE UP
AND SCALE DOWN
PACK OF CARDS
DEBUGGING
CONSISTENCY
SOLUTIONS
SPRING BOOT
Enable building production ready
applications quickly
PROVIDE NON-FUNCTIONAL FEATURES
embedded servers
metrics
health checks
externalized configuration
DEMO
SPRING VS SPRING
MVC VS SPRING
BOOT
KEY FEATURES
AUTO
CONFIGURATION
STARTER PROJECTS
SPRING CLOUD
DYNAMIC SCALE UP AND DOWN
Naming Server (Eureka)
Ribbon (Client Side Load Balancing)
Feign (Easier REST Clients)
VISIBILITY AND MONITORING
Zipkin Distributed Tracing
Netflix API Gateway
CONFIGURATION MANAGEMENT
Spring Cloud Config Server
FAULT TOLERANCE
Hystrix
Microservices
CURRENCY EXCHANGE SERVICE
http://localhost:8000/currency-exchange/from/EUR/to/INR
{
id: 10002,
from: "EUR",
to: "INR",
conversionMultiple: 75,
port: 8000
}
CURRENCY CONVERSION
SERVICE
http://localhost:8100/currency-converter/from/USD/to/INR/quant
{
id: 10001,
from: "USD",
to: "INR",
conversionMultiple: 65,
quantity: 10,
totalCalculatedAmount: 650,
port: 8000
}
Currency Conversion Service
Currency Exchange Service
HOW TO PROVIDE
LOCATION
TRANSPARENCY?
Eureka Naming Server
HOW TO PROVIDE
DYNAMIC LOAD
BALANCING?
Ribbon Load Balancing
http://localhost:8100/currency-converter-feign/from/EUR/to/INR
Zipkin Distributed Tracing
API GATEWAYS
Authentication, authorization and security
Rate Limits
Fault Tolerance
Service Aggregation
Microservices Environments and
Configuration
LIMITS SERVICE
@Component
@ConfigurationProperties("limits-service")
public class Configuration {
private int minimum;
private int maximum;
@GetMapping("/limits")
public LimitConfiguration retrieveLimitsFromConfigurations() {
return new LimitConfiguration(configuration.getMaximum(),
configuration.getMinimum());
}
Spring Cloud Config Server
Server Dependency - spring-cloud-config-server
Client Dependencies - spring-cloud-starter-config
Limits Service <--> Spring Config Server
bootstrap.properties
spring.application.name=limits-service
spring.cloud.config.uri=http://localhost:8888
spring.profiles.active=qa
Limits Service <--> Spring Config Server
@SpringBootApplication
@EnableHystrix
public class LimitsServiceApplication {
@GetMapping("/fault-tolerance-example")
@HystrixCommand(fallbackMethod="fallbackRetrieveConfiguration"
public LimitConfiguration retrieveConfiguration() {
throw new RuntimeException("Not available");
}
public LimitConfiguration fallbackRetrieveConfiguration() {
return new LimitConfiguration(999, 9);
}
Fault Tolerance with Hystrix
QUESTIONS
Spring to Cloud - REST To Microservices

More Related Content

Similar to Spring to Cloud - REST To Microservices (20)

PPTX
Microservices
Shubhani Jain
 
PDF
Introduction to Microservices
Paulo Gandra de Sousa
 
PPTX
Microservice Architecture and Components
Rupak Chaulagain
 
PPTX
Dismantling the Monolith: Scaling with Microservices
OKL Engineering
 
PDF
Everything you want to know about microservices
Youness Lasmak
 
PPTX
05 microservices microdeck
fenggang wang
 
PPTX
Microservices why?
Sascha Düpre
 
PDF
Microservices
Stephan Lindauer
 
PPTX
MicroserviceArchitecture in detail over Monolith.
PLovababu
 
PPTX
Elastically scalable architectures with microservices. The end of the monolith?
Javier Arias Losada
 
PDF
Introduction to Microservices
Duduman Bogdan Vlad
 
PDF
Micro services
Mateusz Bukowicz
 
PPTX
Concurrency at Scale: Evolution to Micro-Services
Randy Shoup
 
PPTX
Microservices Architecture
Kanushka Gayan
 
PDF
From Monolith to micro-services and back : The Self Contained Systems
Rudy De Busscher
 
PDF
What are the Advantages and Disadvantages of Microservices?
Zoe Gilbert
 
PPSX
Microservices Architecture, Monolith Migration Patterns
Araf Karsh Hamid
 
PPTX
Micro Services Architecture
Ranjan Baisak
 
PDF
Airbnb, From Monolith to Microservices: How to Scale Your Architecture, Futur...
New Relic
 
PDF
Introduction to Microservices.pdf
ShehanNIlanka
 
Microservices
Shubhani Jain
 
Introduction to Microservices
Paulo Gandra de Sousa
 
Microservice Architecture and Components
Rupak Chaulagain
 
Dismantling the Monolith: Scaling with Microservices
OKL Engineering
 
Everything you want to know about microservices
Youness Lasmak
 
05 microservices microdeck
fenggang wang
 
Microservices why?
Sascha Düpre
 
Microservices
Stephan Lindauer
 
MicroserviceArchitecture in detail over Monolith.
PLovababu
 
Elastically scalable architectures with microservices. The end of the monolith?
Javier Arias Losada
 
Introduction to Microservices
Duduman Bogdan Vlad
 
Micro services
Mateusz Bukowicz
 
Concurrency at Scale: Evolution to Micro-Services
Randy Shoup
 
Microservices Architecture
Kanushka Gayan
 
From Monolith to micro-services and back : The Self Contained Systems
Rudy De Busscher
 
What are the Advantages and Disadvantages of Microservices?
Zoe Gilbert
 
Microservices Architecture, Monolith Migration Patterns
Araf Karsh Hamid
 
Micro Services Architecture
Ranjan Baisak
 
Airbnb, From Monolith to Microservices: How to Scale Your Architecture, Futur...
New Relic
 
Introduction to Microservices.pdf
ShehanNIlanka
 

More from GeekNightHyderabad (20)

PPTX
Testing strategies in microservices
GeekNightHyderabad
 
PDF
Metaprogramming ruby
GeekNightHyderabad
 
PPTX
Scaling enterprise digital platforms with kubernetes
GeekNightHyderabad
 
PDF
FreedomBox & Community Wi-Fi networks
GeekNightHyderabad
 
PDF
Rendezvous with aucovei (autonomous connected car)
GeekNightHyderabad
 
PDF
Role of AI & ML in beauty care industry
GeekNightHyderabad
 
PPTX
Breaking down a monolith
GeekNightHyderabad
 
PDF
Design lean agile_thinking presentation
GeekNightHyderabad
 
PPTX
Scaling pipelines
GeekNightHyderabad
 
PDF
Blockchain beyond bitcoin
GeekNightHyderabad
 
PPTX
Http/2
GeekNightHyderabad
 
PPTX
Hardware hacking and internet of things
GeekNightHyderabad
 
PDF
Serverless
GeekNightHyderabad
 
PPTX
Building Cloud Native Applications Using Spring Boot and Spring Cloud
GeekNightHyderabad
 
PPTX
Progressive Web Applications - The Next Gen Web Technologies
GeekNightHyderabad
 
ODP
Scaling a Game Server: From 500 to 100,000 Users
GeekNightHyderabad
 
PPTX
Big Data - Need of Converged Data Platform
GeekNightHyderabad
 
PDF
Building a Data Lake - An App Dev's Perspective
GeekNightHyderabad
 
PPTX
Understanding the Intelligent Cloud
GeekNightHyderabad
 
PDF
GeekNight 22.0 Multi-paradigm programming in Scala and Akka
GeekNightHyderabad
 
Testing strategies in microservices
GeekNightHyderabad
 
Metaprogramming ruby
GeekNightHyderabad
 
Scaling enterprise digital platforms with kubernetes
GeekNightHyderabad
 
FreedomBox & Community Wi-Fi networks
GeekNightHyderabad
 
Rendezvous with aucovei (autonomous connected car)
GeekNightHyderabad
 
Role of AI & ML in beauty care industry
GeekNightHyderabad
 
Breaking down a monolith
GeekNightHyderabad
 
Design lean agile_thinking presentation
GeekNightHyderabad
 
Scaling pipelines
GeekNightHyderabad
 
Blockchain beyond bitcoin
GeekNightHyderabad
 
Hardware hacking and internet of things
GeekNightHyderabad
 
Serverless
GeekNightHyderabad
 
Building Cloud Native Applications Using Spring Boot and Spring Cloud
GeekNightHyderabad
 
Progressive Web Applications - The Next Gen Web Technologies
GeekNightHyderabad
 
Scaling a Game Server: From 500 to 100,000 Users
GeekNightHyderabad
 
Big Data - Need of Converged Data Platform
GeekNightHyderabad
 
Building a Data Lake - An App Dev's Perspective
GeekNightHyderabad
 
Understanding the Intelligent Cloud
GeekNightHyderabad
 
GeekNight 22.0 Multi-paradigm programming in Scala and Akka
GeekNightHyderabad
 
Ad

Recently uploaded (20)

PDF
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
PPTX
Top Managed Service Providers in Los Angeles
Captain IT
 
PDF
GITLAB-CICD_For_Professionals_KodeKloud.pdf
deepaktyagi0048
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
PDF
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
PDF
"Effect, Fiber & Schema: tactical and technical characteristics of Effect.ts"...
Fwdays
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Sustainable and comertially viable mining process.pdf
Avijit Kumar Roy
 
PDF
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Productivity Management Software | Workstatus
Lovely Baghel
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PDF
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
Top Managed Service Providers in Los Angeles
Captain IT
 
GITLAB-CICD_For_Professionals_KodeKloud.pdf
deepaktyagi0048
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
"Effect, Fiber & Schema: tactical and technical characteristics of Effect.ts"...
Fwdays
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Sustainable and comertially viable mining process.pdf
Avijit Kumar Roy
 
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Productivity Management Software | Workstatus
Lovely Baghel
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Ad

Spring to Cloud - REST To Microservices