SlideShare a Scribd company logo
Microservices
with Spring Cloud
Kasim Sert
2016 1
2
Agenda
๏ The Definitions
๏ Monolith vs Micro-Service
๏ Microservices Features
๏ Why HTTP,REST,JSON ?
๏ Case Study
๏ Demos
๏ Conclusion
3
What are Microservices ?
๏ Decomposition of single system into a suite of small
services each running as independent processes and
intercommunicating via well known protocols
4
What are Microservices ?
๏ Decomposition of single system into a suite of small
services each running as independent processes and
intercommunicating via well known protocols
๏ Developing a single application as a suite of small
services each running its own process and
communicating with lightweight mechanisms often
an HTTP resource API, Martin Fowler
5
What are Microservices ?
๏ Decomposition of single system into a suite of small
services each running as independent processes and
intercommunicating via well known protocols
๏ Developing a single application as a suite of small
services each running its own process and
communicating with lightweight mechanisms often
an HTTP resource API, Martin Fowler
๏Fine-Grained SOA, Adrian Cockcroft-Netflix
6
Microservices Features
๏ Composing a single application using small services
๏rather than a single monolithic application
๏ each running as independent processes
๏not just modules in a single executable
๏ intercommunicating via open protocols
๏HTTP/Rest,or Messaging
๏ Separately written deployed scaled and maintained
๏potentially in different languages
๏ Services are independently replaceable and upgradable
7
Microservices Are Not
๏ SOA
๏SOA is about integrating enterprise applications,
Microservices are about decomposing single
applications
๏ A Silver Bullet
๏Microservices approach involves drawbacks and risks
๏ New!
8
Microservices Are Trending
๏ Twitter moved from Ruby/Rails monolith to
Microservices
๏ Facebook moved from PHP monolith to Microservices
๏ Netflix moved from Java monolith to Microservices
9
Benefits of a Microservice
Approach
๏ Extreme Scalability
๏ Organisational Ownership
๏ Cheaper to Start
๏ Ideal for the Cloud
๏ Grasp latest technologies
๏ Promotes Agile Practices
๏ Promotes DevOps
๏ “It’s what the cool people do!”
10
Benefits of a Monolith
๏ Common code infrastructure
๏ More density/efficient allocation of hardware
๏ Less inter-process communication required, less
network hops
๏ Easy to scale(up to some level with load balancer)
๏ Easy to test as a single unit(up to some limit)
11
Monolith vs Microservices
12
HTTP
๏ Available verbs GET, POST, PUT, DELETE (and more)
๏ Mechanisms for

• caching and cache control

• content negotiation

• session management

• user agent and server identification
๏ Status codes in response (200, 404, etc) for

information, success, redirection, client error, server
error
๏ Rich standardised interface for interacting over the net
13
JSON
๏ Minimal and popular data representation format
๏ Schemaless in principle, but can be validated if needed
14
REST
๏ Uniform Interface By;

• Use of known HTTP verbs for manipulating resources

• Resource manipulation through representations which
separated from internal representations 

• Hypermedia as the engine of application state
(HATEOAS): Response contains all allowed operations
and the resource identifiers needed to trigger them
15
Case Study
๏ Consider Monolithic Online Shopping Application
๏Web/Mobile Interfaces
๏Functions for:
๏Searching for products
๏Product catalog
๏Inventory management
๏Shopping cart
๏Checkout
๏Order Fulfilment
๏How would this look with microservices?
16
Basic Diagram
17
Understanding Monolith
Application
18
New Types of Client
19
New Types of Persistence/
Services
20
Monolith Challenges
๏ Language/Framework Lock
๏ Digestion
๏Single developer can not digest
๏Single team can not manage a large
application(amazon’s 2 pizza rule)
๏ Deployment as single unit
๏Can not independently deploy single change (risky)
๏Ready changes should be wait(next deploy)
21
Case Study with Microservices
22
Microservices Advantages
๏ Encapsulate Business capabilities
๏ Not dependent on technology stack
๏ Easy to digest each service
๏ Easy to test, deploy manage, version and scale each
service.
๏ Changes can be deployed as soon as ready
23
Microservices Disadvantages
๏ Complexity moved to operation layer
๏fallacies of distributed computing
๏ Services will be unavailable
๏Design for failure
๏Much more need for monitoring(Healthcheck?)
๏ Remote Calls more expensive than in-process calls
๏ Problem of Transactions (Eventual consistency over
ACID)
๏ Features span multiple services (Hard to Integration
Test)
24
Fallacies of Distributed
Computing
๏ Network is reliable
๏ Latency is zero
๏ Bandwith is infinite
๏ The Network is secure
๏ Topology does not change
๏ There is one administrator
๏ Transport cost is zero
๏ The network is homogenous
25
Spring Cloud Summary
๏ Spring cloud(Using Netflix OSS internally)
๏Apply common patterns needed in distributed/cloud
applications
๏Distributed/Versioned/Centralised Config.
Management
๏Service Registration/Discovery
๏Load Balancing
๏Circuit Brakers
๏Monitoring
๏Based on Spring Boot
26
Spring Cloud Summary
๏ Spring Boot

Stand-alone, production-grade Spring-based applications
๏ Spring Data REST / Spring HATEOAS

Spring-based applications following HATEOAS principles
๏ Spring Cloud Config

Centralised external configuration management, backed by Git
๏ Netflix Eureka

REST-based service discovery and registration for failover and
load-balancing
๏ Netflix Ribbon
IPC library with built-in client-side software load-balancers
๏ Netflix Hystrix

Latency and fault tolerance for distributed system
๏ Netflix Hystrix Dashboard

Web-based UI for monitoring Hystrix 27
Netflix
๏ Reinvented itself in 2007
๏ Moved from DVD mailing to video-on-demand
๏Once USPS biggest customer
๏Now biggest source of Internet Traffic
๏ Became pioneer in Cloud computing
๏since all applications run on AWS
๏ Open sources its cloud projects with name Netflix Open
Source Software
28
Conclusion
๏ Monoliths always bad?
๏ How micro is micro?
๏Small enough for one developer to digest
๏Predictable and easy to experiment
๏If necessary can be rewritten in different technology
stack in two weeks
29
DEMO1-Spring Data REST
30
DEMO2-Spring Config Server
31
DEMO3-Spring Cloud
32
References
๏ https://en.wikipedia.org/wiki/Microservices
๏ http://martinfowler.com/articles/microservices.html
๏ https://start.spring.io
๏ https://projects.spring.io/spring-cloud/
33
Questions?
34

More Related Content

What's hot (20)

PPTX
Web application I have always dreamt of
Victor_Cr
 
PPTX
Microservices
ennVee TechnoGroup Inc.
 
PDF
Spring IO 2016 - Spring Cloud Microservices, a journey inside a financial entity
Toni Jara
 
PPTX
istio: service mesh for all
Mandar Jog
 
PDF
Building microservices web application using scala & akka
Binh Nguyen
 
PPT
Spring Boot. Boot up your development. JEEConf 2015
Strannik_2013
 
PPTX
Building Services with WSO2 Application Server and WSO2 Microservices Framewo...
Sagara Gunathunga
 
PPTX
IPaaS 2.0: Fuse Integration Services (Robert Davies & Keith Babo)
Red Hat Developers
 
PDF
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2
 
PDF
JavaCro'15 - Service Discovery in OSGi Beyond the JVM using Docker and Consul...
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
PPTX
The Hardest Part of Microservices: Calling Your Services
Christian Posta
 
PDF
Asynchronous Microservices in nodejs
Bruno Pedro
 
PPTX
Debugging Microservices - key challenges and techniques - Microservices Odesa...
Lohika_Odessa_TechTalks
 
PDF
Microservice 4.0 Journey - From Spring NetFlix OSS to Istio Service Mesh and ...
Daniel Oh
 
PPTX
Micro services Architecture
Jenis Dharmadurai
 
PDF
Microservices Architecture
Srinivasan Nanduri
 
PDF
Design patterns for microservice architecture
The Software House
 
PPTX
Microservices architecture
Faren faren
 
PPTX
Micro Service Architecture
Eduards Sizovs
 
PPTX
linkerd: The Cloud Native Service Mesh
Dario Simonetti
 
Web application I have always dreamt of
Victor_Cr
 
Spring IO 2016 - Spring Cloud Microservices, a journey inside a financial entity
Toni Jara
 
istio: service mesh for all
Mandar Jog
 
Building microservices web application using scala & akka
Binh Nguyen
 
Spring Boot. Boot up your development. JEEConf 2015
Strannik_2013
 
Building Services with WSO2 Application Server and WSO2 Microservices Framewo...
Sagara Gunathunga
 
IPaaS 2.0: Fuse Integration Services (Robert Davies & Keith Babo)
Red Hat Developers
 
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2
 
JavaCro'15 - Service Discovery in OSGi Beyond the JVM using Docker and Consul...
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
The Hardest Part of Microservices: Calling Your Services
Christian Posta
 
Asynchronous Microservices in nodejs
Bruno Pedro
 
Debugging Microservices - key challenges and techniques - Microservices Odesa...
Lohika_Odessa_TechTalks
 
Microservice 4.0 Journey - From Spring NetFlix OSS to Istio Service Mesh and ...
Daniel Oh
 
Micro services Architecture
Jenis Dharmadurai
 
Microservices Architecture
Srinivasan Nanduri
 
Design patterns for microservice architecture
The Software House
 
Microservices architecture
Faren faren
 
Micro Service Architecture
Eduards Sizovs
 
linkerd: The Cloud Native Service Mesh
Dario Simonetti
 

Viewers also liked (14)

PDF
introduce to spring cloud
Doo Sung Eom
 
ODP
The craft of meta programming on JVM
Igor Khotin
 
PPTX
Next-gen OData/ui5 microservices with Spring Boot
Jan Penninkhof
 
PDF
REST API Best (Recommended) Practices
Rasheed Waraich
 
PDF
Microservices with spring boot
Mesut Can Gurle
 
PPTX
The Fintechs
Software Infrastructure
 
PPTX
Architecture & Workflow of Modern Web Apps
Rasheed Waraich
 
PDF
Deployment - Done Right!
Eberhard Wolff
 
ODP
Spring cloud for microservices architecture
Igor Khotin
 
PDF
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
 
PDF
Microservice With Spring Boot and Spring Cloud
Eberhard Wolff
 
PDF
Divide and Conquer: Easier Continuous Delivery using Micro-Services
Carlos Sanchez
 
PDF
Spring boot introduction
Rasheed Waraich
 
PDF
Microservices with Spring and Cloud Foundry
mimacom
 
introduce to spring cloud
Doo Sung Eom
 
The craft of meta programming on JVM
Igor Khotin
 
Next-gen OData/ui5 microservices with Spring Boot
Jan Penninkhof
 
REST API Best (Recommended) Practices
Rasheed Waraich
 
Microservices with spring boot
Mesut Can Gurle
 
Architecture & Workflow of Modern Web Apps
Rasheed Waraich
 
Deployment - Done Right!
Eberhard Wolff
 
Spring cloud for microservices architecture
Igor Khotin
 
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
 
Microservice With Spring Boot and Spring Cloud
Eberhard Wolff
 
Divide and Conquer: Easier Continuous Delivery using Micro-Services
Carlos Sanchez
 
Spring boot introduction
Rasheed Waraich
 
Microservices with Spring and Cloud Foundry
mimacom
 
Ad

Similar to Microservices with Spring (20)

PPTX
Do You Need A Service Mesh?
NGINX, Inc.
 
PPTX
Service Mesh CTO Forum (Draft 3)
Rick Hightower
 
PPT
Merging microservices architecture with SOA practices
Chris Haddad
 
PDF
The Role of Data Virtualization in an API Economy
Denodo
 
PDF
20141210 - Microservice Container
Jamie (Taka) Wang
 
PDF
.NET Cloud-Native Bootcamp- Los Angeles
VMware Tanzu
 
PPTX
Do I Need A Service Mesh.pptx
PINGXIONG3
 
PPTX
Containers and microservices create new performance challenges kowall - app...
Jonah Kowall
 
PDF
AppSphere 15 - Containers and Microservices Create New Performance Challenges
AppDynamics
 
PDF
170215 msa intro
Sonic leigh
 
PPTX
Iot cloud service v2.0
Vinod Wilson
 
PPTX
Building Big Architectures
Ramit Surana
 
PDF
Microservices Architecture
Lucian Neghina
 
PPTX
Introduction to Microservices
MahmoudZidan41
 
PPTX
DevOps and Microservice
Inho Kang
 
PDF
Introduction to event based microservices
Grigoris Grigoriadis
 
PDF
Move fast and make things with microservices
Mithun Arunan
 
PPTX
Micro Services Architecture
Ranjan Baisak
 
PDF
Developing Enterprise Applications for the Cloud, from Monolith to Microservice
Jack-Junjie Cai
 
PDF
Microservices - opportunities, dilemmas and problems
Łukasz Sowa
 
Do You Need A Service Mesh?
NGINX, Inc.
 
Service Mesh CTO Forum (Draft 3)
Rick Hightower
 
Merging microservices architecture with SOA practices
Chris Haddad
 
The Role of Data Virtualization in an API Economy
Denodo
 
20141210 - Microservice Container
Jamie (Taka) Wang
 
.NET Cloud-Native Bootcamp- Los Angeles
VMware Tanzu
 
Do I Need A Service Mesh.pptx
PINGXIONG3
 
Containers and microservices create new performance challenges kowall - app...
Jonah Kowall
 
AppSphere 15 - Containers and Microservices Create New Performance Challenges
AppDynamics
 
170215 msa intro
Sonic leigh
 
Iot cloud service v2.0
Vinod Wilson
 
Building Big Architectures
Ramit Surana
 
Microservices Architecture
Lucian Neghina
 
Introduction to Microservices
MahmoudZidan41
 
DevOps and Microservice
Inho Kang
 
Introduction to event based microservices
Grigoris Grigoriadis
 
Move fast and make things with microservices
Mithun Arunan
 
Micro Services Architecture
Ranjan Baisak
 
Developing Enterprise Applications for the Cloud, from Monolith to Microservice
Jack-Junjie Cai
 
Microservices - opportunities, dilemmas and problems
Łukasz Sowa
 
Ad

More from Software Infrastructure (20)

PPTX
Stream Analytics
Software Infrastructure
 
PPTX
Quartz Scheduler
Software Infrastructure
 
PPTX
Test Driven Development
Software Infrastructure
 
PPTX
Deep Learning
Software Infrastructure
 
PDF
Progressive Web Apps
Software Infrastructure
 
PPTX
Machine learning
Software Infrastructure
 
PPTX
Raspberry PI
Software Infrastructure
 
PPTX
Codename one
Software Infrastructure
 
PPTX
Hazelcast sunum
Software Infrastructure
 
PPTX
Microsoft bot framework
Software Infrastructure
 
PPTX
Blockchain use cases
Software Infrastructure
 
PPTX
Server Side Swift
Software Infrastructure
 
PPTX
Push Notification
Software Infrastructure
 
PPTX
Java Batch
Software Infrastructure
 
PDF
Big Data & Hadoop
Software Infrastructure
 
Stream Analytics
Software Infrastructure
 
Quartz Scheduler
Software Infrastructure
 
Test Driven Development
Software Infrastructure
 
Deep Learning
Software Infrastructure
 
Progressive Web Apps
Software Infrastructure
 
Machine learning
Software Infrastructure
 
Hazelcast sunum
Software Infrastructure
 
Microsoft bot framework
Software Infrastructure
 
Blockchain use cases
Software Infrastructure
 
Server Side Swift
Software Infrastructure
 
Push Notification
Software Infrastructure
 
Big Data & Hadoop
Software Infrastructure
 

Recently uploaded (20)

PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 

Microservices with Spring

  • 2. 2 Agenda ๏ The Definitions ๏ Monolith vs Micro-Service ๏ Microservices Features ๏ Why HTTP,REST,JSON ? ๏ Case Study ๏ Demos ๏ Conclusion
  • 3. 3
  • 4. What are Microservices ? ๏ Decomposition of single system into a suite of small services each running as independent processes and intercommunicating via well known protocols 4
  • 5. What are Microservices ? ๏ Decomposition of single system into a suite of small services each running as independent processes and intercommunicating via well known protocols ๏ Developing a single application as a suite of small services each running its own process and communicating with lightweight mechanisms often an HTTP resource API, Martin Fowler 5
  • 6. What are Microservices ? ๏ Decomposition of single system into a suite of small services each running as independent processes and intercommunicating via well known protocols ๏ Developing a single application as a suite of small services each running its own process and communicating with lightweight mechanisms often an HTTP resource API, Martin Fowler ๏Fine-Grained SOA, Adrian Cockcroft-Netflix 6
  • 7. Microservices Features ๏ Composing a single application using small services ๏rather than a single monolithic application ๏ each running as independent processes ๏not just modules in a single executable ๏ intercommunicating via open protocols ๏HTTP/Rest,or Messaging ๏ Separately written deployed scaled and maintained ๏potentially in different languages ๏ Services are independently replaceable and upgradable 7
  • 8. Microservices Are Not ๏ SOA ๏SOA is about integrating enterprise applications, Microservices are about decomposing single applications ๏ A Silver Bullet ๏Microservices approach involves drawbacks and risks ๏ New! 8
  • 9. Microservices Are Trending ๏ Twitter moved from Ruby/Rails monolith to Microservices ๏ Facebook moved from PHP monolith to Microservices ๏ Netflix moved from Java monolith to Microservices 9
  • 10. Benefits of a Microservice Approach ๏ Extreme Scalability ๏ Organisational Ownership ๏ Cheaper to Start ๏ Ideal for the Cloud ๏ Grasp latest technologies ๏ Promotes Agile Practices ๏ Promotes DevOps ๏ “It’s what the cool people do!” 10
  • 11. Benefits of a Monolith ๏ Common code infrastructure ๏ More density/efficient allocation of hardware ๏ Less inter-process communication required, less network hops ๏ Easy to scale(up to some level with load balancer) ๏ Easy to test as a single unit(up to some limit) 11
  • 13. HTTP ๏ Available verbs GET, POST, PUT, DELETE (and more) ๏ Mechanisms for
 • caching and cache control
 • content negotiation
 • session management
 • user agent and server identification ๏ Status codes in response (200, 404, etc) for
 information, success, redirection, client error, server error ๏ Rich standardised interface for interacting over the net 13
  • 14. JSON ๏ Minimal and popular data representation format ๏ Schemaless in principle, but can be validated if needed 14
  • 15. REST ๏ Uniform Interface By;
 • Use of known HTTP verbs for manipulating resources
 • Resource manipulation through representations which separated from internal representations 
 • Hypermedia as the engine of application state (HATEOAS): Response contains all allowed operations and the resource identifiers needed to trigger them 15
  • 16. Case Study ๏ Consider Monolithic Online Shopping Application ๏Web/Mobile Interfaces ๏Functions for: ๏Searching for products ๏Product catalog ๏Inventory management ๏Shopping cart ๏Checkout ๏Order Fulfilment ๏How would this look with microservices? 16
  • 19. New Types of Client 19
  • 20. New Types of Persistence/ Services 20
  • 21. Monolith Challenges ๏ Language/Framework Lock ๏ Digestion ๏Single developer can not digest ๏Single team can not manage a large application(amazon’s 2 pizza rule) ๏ Deployment as single unit ๏Can not independently deploy single change (risky) ๏Ready changes should be wait(next deploy) 21
  • 22. Case Study with Microservices 22
  • 23. Microservices Advantages ๏ Encapsulate Business capabilities ๏ Not dependent on technology stack ๏ Easy to digest each service ๏ Easy to test, deploy manage, version and scale each service. ๏ Changes can be deployed as soon as ready 23
  • 24. Microservices Disadvantages ๏ Complexity moved to operation layer ๏fallacies of distributed computing ๏ Services will be unavailable ๏Design for failure ๏Much more need for monitoring(Healthcheck?) ๏ Remote Calls more expensive than in-process calls ๏ Problem of Transactions (Eventual consistency over ACID) ๏ Features span multiple services (Hard to Integration Test) 24
  • 25. Fallacies of Distributed Computing ๏ Network is reliable ๏ Latency is zero ๏ Bandwith is infinite ๏ The Network is secure ๏ Topology does not change ๏ There is one administrator ๏ Transport cost is zero ๏ The network is homogenous 25
  • 26. Spring Cloud Summary ๏ Spring cloud(Using Netflix OSS internally) ๏Apply common patterns needed in distributed/cloud applications ๏Distributed/Versioned/Centralised Config. Management ๏Service Registration/Discovery ๏Load Balancing ๏Circuit Brakers ๏Monitoring ๏Based on Spring Boot 26
  • 27. Spring Cloud Summary ๏ Spring Boot
 Stand-alone, production-grade Spring-based applications ๏ Spring Data REST / Spring HATEOAS
 Spring-based applications following HATEOAS principles ๏ Spring Cloud Config
 Centralised external configuration management, backed by Git ๏ Netflix Eureka
 REST-based service discovery and registration for failover and load-balancing ๏ Netflix Ribbon IPC library with built-in client-side software load-balancers ๏ Netflix Hystrix
 Latency and fault tolerance for distributed system ๏ Netflix Hystrix Dashboard
 Web-based UI for monitoring Hystrix 27
  • 28. Netflix ๏ Reinvented itself in 2007 ๏ Moved from DVD mailing to video-on-demand ๏Once USPS biggest customer ๏Now biggest source of Internet Traffic ๏ Became pioneer in Cloud computing ๏since all applications run on AWS ๏ Open sources its cloud projects with name Netflix Open Source Software 28
  • 29. Conclusion ๏ Monoliths always bad? ๏ How micro is micro? ๏Small enough for one developer to digest ๏Predictable and easy to experiment ๏If necessary can be rewritten in different technology stack in two weeks 29
  • 33. References ๏ https://en.wikipedia.org/wiki/Microservices ๏ http://martinfowler.com/articles/microservices.html ๏ https://start.spring.io ๏ https://projects.spring.io/spring-cloud/ 33