SlideShare a Scribd company logo
SPRING CLOUD
MICROSERVICES WITH
NETFLIX OSS
BOSTON JAVA MEETUP, CAMBRIDGE, MA
NOVEMBER 12, 2019
Miya W Longwe
Founder of Ezcloud Technologis Inc,
mlongwe@gmail.com
@mlongwe
PRESENTATION GOAL
Define the Microservice Architecture
Explain what that means and why it
matters
Review implementation using Spring
Cloud and Neflix OSS
@mlongwe
ABOUT MIYA
@mlongwe
ABOUT MIYA
Consultant and developer
focusing on modern
application architectures
including microservices
Technology evangelist
AGENDA
A brief refresher on software architecture
The journey monolith to microservices
Microservices != silver bullet
Applying the microservice pattern language
@mlongwe
ABOUT SOFTWARE
ARCHITECTURE
“The software architecture of a computing system is the
set of structures needed to reason about the system,
which comprise software elements, relations among
them, and properties of both.”
Documenting Software Architectures, Bass et al
Architecture
=
(elements, relations, properties)
@mlongwe
@crichardson
The monolithic architecture
is an architectural style
that structures the application
as a single executable
component
Implementation view
@crichardson
Tomcat/App. Server
Traditional: Monolithic
architecture
Browser/
Client
WAR/EAR
MySQL
Database
Review
Management
Catalog
Management
Recommendation
Management
StoreFrontUI
Order
Management
HTML
REST/JSON
Logical view
Implementation view
But successful applications keep
growing….
Development
Team
Application
@crichardson
… and growing
Development
Team A
ApplicationDevelopment
Team B
Development
Team C
@longwe
Technology stack becomes
increasingly obsolete
BUT
Arewrite is not feasible
@crichardson
TIPPING POINT
& &
Organizational Growth Diverse Functionality Bottleneck in
Monolithic stack
MONOLITHIC APPS – FAILURE & AVAILABILITY
MicroServices
You Think??
MONOLITHIC APP (VARIOUS COMPONENTS LINKED TOGETHER)
Comparing Monolithic to Micro-Services
The microservice architecture
is an architectural style
that structures an
application as a
set of loosely coupled,
services organized around
business capabilities
MICRO-SERVICES – SEPARATE SINGLE PURPOSE SERVICES
Monolithic Architecture (Revisiting)
Load Balancer
Monolithic App
Account
Component
Catalog
Component
Recommendation
Component
Customer Service
Component
Database
Micro-services Architecture
Load Balancer
Account Service Catalog
Service
Recommendation
Service
Customer Service
Service
Catalog DB
API Gateway
Customer DB
Concept -> Service Dependency Graph
Your
App/Service
Service X
Service Y
Service Z
Service L
Service M
CHARACTERISTICS
 Many smaller (fine grained), clearly scoped services
 Single Responsibility Principle
 Domain Driven Development
 Bounded Context
 Independently Managed
 Clear ownership for each service
 Typically need/adopt the “DevOps” model
Attribution: Adrian Cockroft, Martin Fowler …
WHY?
 Faster and simpler deployments and rollbacks
 Independent Speed of Delivery (by different teams)
 Right framework/tool/language for each domain
 Recommendation component using Python?, Catalog Service in Java ..
 Greater Resiliency
 Fault Isolation
 Better Availability
 If architected right 
Micro-Services
- Challenges
CHALLENGES
Can lead to chaos if not designed right …
OVERALL COMPLEXITY
• Distributed Systems are inherently Complex
• Latency, Fault Tolerance, Retry storms ..
• Operational Overhead
• TIP: Embrace DevOps Model
CREATING MICRO-SERVICES
SPRING CLOUD
CREATING MICRO-SERVICES– SPRING BOOT
SERVICE ARCHITECTURE
SPRING BOOT & SPRING CLOUD NETFLIX OSS
SERVICE DISCOVERY
• 100s of Micro-Services
• Need a Service Metadata Registry (Discovery Service)
Account Service Catalog
Service
Recommendation
Service
Customer Service
Service
X
Service Y
Service
Z
Service
Registry
Service
(e.g. Netflix Eureka)
Central (Proxy) Loadbalancer
Account Service Load
Balancer
Account Service 1
Recommendation
Service 1
Customer Service
Service 1
API Gateway
Account Service N
Recommendation
Service N
Customer Service
Service N
Customer Service Load
Balancer
Reco Service
Load Balancer
Resiliency/Availability
NO SILVER BULLETS
http://en.wikipedia.org/wiki/Fred_Brooks
@crichardson
* Benjamin Franklin
* Inspired by Benjamin Franklin
three
CHALLENGES - SUMMARY
• Service Discovery
• Operational Overhead (100s of services; DevOps model absolutely required)
• Distributed Systems are inherently Complex
• N/W Latency, Fault Tolerance, Serialization overhead ..
• Service Interface Versioning, Mismatches?
• Testing (Need the entire ecosystem to test)
• Fan out of Requests -> Increases n/w traffic
Best Practices/Tips
Best Practices contd..
• Test Services for Resiliency
• Latency/Error tests (via Simian Army)
• Dependency Service Unavailability
• Network Errors
DEMO
Takeaways
Takeaways
• Monolithic apps – good for small organizations
• MicroServices – have its challenges, but the benefits are many
• Consider adopting when your organization scales
• Leverage Best Practices
• An Elastic Cloud provides the ideal environment (Auto Scaling etc.)
• NetflixOSS has many libraries/samples to aid you
Questions?

More Related Content

PDF
PDF
Spring cloud
PPTX
Adaptive and Iterative Integration for Microservices and Cloud Native Archite...
PDF
PDF
بالعربي التطور في البرمجة باستخدام ال .Net
PDF
Bridging Microservices, APIs and Integration
PPTX
Containers & Microservices
PDF
Integration Microservices
Spring cloud
Adaptive and Iterative Integration for Microservices and Cloud Native Archite...
بالعربي التطور في البرمجة باستخدام ال .Net
Bridging Microservices, APIs and Integration
Containers & Microservices
Integration Microservices

What's hot (20)

PDF
Microservices Integration Patterns with Kafka
PPTX
Intro to Knative
PPTX
Communication in a Microservice Architecture
PPTX
Eco system apps
PPTX
Microservice.net by sergey seletsky
PPTX
Microservices at Netflix
PPTX
Microservices and the Cloud based future of integration final
PDF
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBM
PPTX
Atlanta Microservices Day: Istio Service Mesh
PDF
Microservices:
 The phantom menace
. Istio Service Mesh: 
the new hope
PDF
An eventful tour from enterprise integration to serverless and functions
PDF
Microservices: Architecture for the Real-time Organization
PPTX
API Gateways are going through an identity crisis
PPTX
Microservices
PDF
Andreas Nauerz and Michael Behrendt - Event Driven and Serverless Programming...
PDF
GDG Taipei 2020 - Cloud and On-premises Applications Integration Using Event-...
PDF
Testing Event Driven Architectures: How to Broker the Complexity | Frank Kilc...
PDF
Microservices & API Gateways
PPTX
Evolution of integration and microservices patterns with service mesh
PPTX
CloudNativeLondon 2017: "What is a Service Mesh, and Do I Need One when Devel...
Microservices Integration Patterns with Kafka
Intro to Knative
Communication in a Microservice Architecture
Eco system apps
Microservice.net by sergey seletsky
Microservices at Netflix
Microservices and the Cloud based future of integration final
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBM
Atlanta Microservices Day: Istio Service Mesh
Microservices:
 The phantom menace
. Istio Service Mesh: 
the new hope
An eventful tour from enterprise integration to serverless and functions
Microservices: Architecture for the Real-time Organization
API Gateways are going through an identity crisis
Microservices
Andreas Nauerz and Michael Behrendt - Event Driven and Serverless Programming...
GDG Taipei 2020 - Cloud and On-premises Applications Integration Using Event-...
Testing Event Driven Architectures: How to Broker the Complexity | Frank Kilc...
Microservices & API Gateways
Evolution of integration and microservices patterns with service mesh
CloudNativeLondon 2017: "What is a Service Mesh, and Do I Need One when Devel...
Ad

Similar to Spring cloud-netflix-oss-microservices (20)

PPTX
Introduction to microservices
PPTX
MicroserviceArchitecture in detail over Monolith.
PPTX
building microservices
PPTX
Microservices Corporate Style
PPTX
Microservice architecture
PPTX
Microservices
PPTX
Micro Services Architecture
PPTX
Microservices in Action
PDF
Microservices for Application Modernisation
PPTX
An introduction to Microservices
PPTX
Microservices Architecture - Bangkok 2018
PPTX
Microservices on - Monolithic Application
PPTX
From Monolithic applications to Microservices
PDF
Introduction to Microservices.pdf
PPTX
MicroService Architecture
PDF
Microservices for java architects it-symposium-2015-09-15
ODP
Microservice Architecture JavaCro 2015
PPTX
Microservice intro
PDF
Introduction to Microservices Architecture - SECCOMP 2020
PDF
Microservices Interview Questions and Answers PDF By ScholarHat
Introduction to microservices
MicroserviceArchitecture in detail over Monolith.
building microservices
Microservices Corporate Style
Microservice architecture
Microservices
Micro Services Architecture
Microservices in Action
Microservices for Application Modernisation
An introduction to Microservices
Microservices Architecture - Bangkok 2018
Microservices on - Monolithic Application
From Monolithic applications to Microservices
Introduction to Microservices.pdf
MicroService Architecture
Microservices for java architects it-symposium-2015-09-15
Microservice Architecture JavaCro 2015
Microservice intro
Introduction to Microservices Architecture - SECCOMP 2020
Microservices Interview Questions and Answers PDF By ScholarHat
Ad

Recently uploaded (20)

PDF
medical staffing services at VALiNTRY
PPTX
Computer Software and OS of computer science of grade 11.pptx
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Transform Your Business with a Software ERP System
PPTX
history of c programming in notes for students .pptx
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Nekopoi APK 2025 free lastest update
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Cost to Outsource Software Development in 2025
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
top salesforce developer skills in 2025.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
medical staffing services at VALiNTRY
Computer Software and OS of computer science of grade 11.pptx
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
wealthsignaloriginal-com-DS-text-... (1).pdf
Transform Your Business with a Software ERP System
history of c programming in notes for students .pptx
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Why Generative AI is the Future of Content, Code & Creativity?
Operating system designcfffgfgggggggvggggggggg
Nekopoi APK 2025 free lastest update
Design an Analysis of Algorithms I-SECS-1021-03
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Cost to Outsource Software Development in 2025
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PTS Company Brochure 2025 (1).pdf.......
iTop VPN Free 5.6.0.5262 Crack latest version 2025
top salesforce developer skills in 2025.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

Spring cloud-netflix-oss-microservices