SlideShare a Scribd company logo
Microservices with Spring
Boot, Eureka and
Spring Cloud
Prepared By @TIN LINN SOE
Spring Cloud Related Component
 Using Spring Boot in cloud-native development
 Providing Service Registry for all microservices with Spring Cloud Netflix Eureka
 Distributed configuration with Spring Cloud Config
 API Gateway pattern using a new project inside Spring Cloud: Spring Cloud Netflix
Zull Proxy (Gateway)
 Spring Cloud Netflix Feign for communication between Microservices
 Correlating logs with Spring Cloud Sleuth
Spring Products
Spring Products Con’t
Spring Cloud Microservice Architecture
Spring Cloud Config Server
Spring Cloud -> Netflix Euraka Registry
Server
Spring Cloud -> Netflix Zuul Proxy
(Gateway)
Demonstration
 We have three independent microservices
 which register themself in service discovery
 fetch properties from configuration service and communicate with each other.
 The whole system is hidden behind API gateway.
let’s take a look on the diagram. It illustrates
the architecture of our sample demonstration.
Communication between microservice with
Spring Cloud -> Netflix Feign
SourceCode: Sample Microservices
Each service is defined their related
configuration in Config Server
Config Server running on Port 8088
Configurations is stored in memory
Employee Service retrieve configuration
from Config Server
Spring Cloud Netflix Feign for communication
between Microservices
Enabling API specification on gateway using
Swagger2 on Zuul Proxy(Gateway)
http://localhost:8060/swagger-ui.html.
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Netflix Eureka Service Registry, Netflix Zull Gateway and Swagger UI
Running applications
 (1) After starting organization-service connects to config-service available under
address localhost:8088
 (2) Basing on remote configuration settings it is able to register itself in Eureka
 (3) When the endpoint of organization-service is invoked by external client via
gateway
 (4) available under address localhost:8060, the request is forwarded to instance of
organization-service basing on entries from service discovery
 (5) Then organization-service lookup for address of department-service in Eureka
 (6) and call its endpoint
 (7) Finally department-service calls endpont from employee-service. The request
as load balanced between two available instance of employee-service by Ribbon
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Netflix Eureka Service Registry, Netflix Zull Gateway and Swagger UI
Let’s take a look on the Eureka Dashboard
available under address http://localhost:8061.
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Netflix Eureka Service Registry, Netflix Zull Gateway and Swagger UI
Now, let’s call endpoint
http://localhost:8060/organization/1/with-
departments-and-employees
Correlating logs between independent
microservices using Spring Cloud Sleuth
Correlating logs Con’t
 There are four entries inside braces [] generated by Spring Cloud Stream. The
most important for us is the second entry, which indicates on traceId, that is set
once per incoming HTTP request on the edge of the system.
Reference
 http://projects.spring.io/spring-cloud/
 https://piotrminkowski.wordpress.com/2018/04/26/quick-guide-to-
microservices-with-spring-boot-2-0-eureka-and-spring-cloud/
 https://github.com/piomin/sample-spring-microservices-new
THANK YOU
 Next Agenda
 Hystrix Circuit Breaker
 Spring Cloud Sleuth (Distributed Tracing)

More Related Content

PDF
Microservices with Java, Spring Boot and Spring Cloud
PPTX
Microservice architecture design principles
PPTX
Introduction to Microservices
PPTX
Springboot Microservices
PPTX
MSA ( Microservices Architecture ) 발표 자료 다운로드
PDF
Microservice With Spring Boot and Spring Cloud
PPTX
What is AWS?
PPTX
AWS Lambda
Microservices with Java, Spring Boot and Spring Cloud
Microservice architecture design principles
Introduction to Microservices
Springboot Microservices
MSA ( Microservices Architecture ) 발표 자료 다운로드
Microservice With Spring Boot and Spring Cloud
What is AWS?
AWS Lambda

What's hot (20)

PDF
Microservices architecture
PDF
Service discovery with Eureka and Spring Cloud
PPTX
Introduction to microservices
PDF
Ansible Automation Platform.pdf
PPTX
Introduction To Microservices
PPTX
Introduction to microservices
PPTX
Java Spring Framework
PDF
Arm 기반의 AWS Graviton 프로세서로 구동되는 AWS 인스턴스 살펴보기 - 김종선, AWS솔루션즈 아키텍트:: AWS Summi...
PDF
고객 경험을 통한 AWS 클라우드 이전을 위한 지름길 - 김효정 (AWS 솔루션즈 아키텍트)
PDF
[오픈소스컨설팅] 서비스 메쉬(Service mesh)
PPTX
Microservice vs. Monolithic Architecture
PPTX
Apache tomcat
PDF
Microservice Architecture | Microservices Tutorial for Beginners | Microservi...
PPT
VMware Presentation
PDF
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
PPTX
PDF
Api Gateway
PDF
Ansible - Hands on Training
PPTX
SpringBoot with MyBatis, Flyway, QueryDSL
PDF
클라우드 마이그레이션 성공적인 여정, 그 중요한 시작 "Readiness Assessment (전환 준비 평가)" - 김준범, AWS Mi...
Microservices architecture
Service discovery with Eureka and Spring Cloud
Introduction to microservices
Ansible Automation Platform.pdf
Introduction To Microservices
Introduction to microservices
Java Spring Framework
Arm 기반의 AWS Graviton 프로세서로 구동되는 AWS 인스턴스 살펴보기 - 김종선, AWS솔루션즈 아키텍트:: AWS Summi...
고객 경험을 통한 AWS 클라우드 이전을 위한 지름길 - 김효정 (AWS 솔루션즈 아키텍트)
[오픈소스컨설팅] 서비스 메쉬(Service mesh)
Microservice vs. Monolithic Architecture
Apache tomcat
Microservice Architecture | Microservices Tutorial for Beginners | Microservi...
VMware Presentation
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
Api Gateway
Ansible - Hands on Training
SpringBoot with MyBatis, Flyway, QueryDSL
클라우드 마이그레이션 성공적인 여정, 그 중요한 시작 "Readiness Assessment (전환 준비 평가)" - 김준범, AWS Mi...
Ad

Similar to Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Netflix Eureka Service Registry, Netflix Zull Gateway and Swagger UI (20)

PPTX
Microservices
PDF
Create Home Directories on Storage Using WFA and ServiceNow integration
PDF
OpenStack Federated Cloud Services using API-Proxy and third party solutions
PPTX
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
PDF
How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...
DOCX
Microservices with asp dot net core, a next gen technology
PPTX
Sumo Logic Cert Jam - Advanced Metrics with Kubernetes
PDF
Openstack starter-guide-diablo
PDF
Openstack starter-guide-diablo
PPTX
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
PDF
All About Microservices and OpenSource Microservice Frameworks
PDF
Service Discovery in MicroServices
PDF
Building Continuous Application with Structured Streaming and Real-Time Data ...
PPTX
I hear you like meshes, here’s a mesh to connect your meshes
PPTX
Integration of mule esb with microsoft azure
PDF
ApacheCon NA - Apache Camel K: a cloud-native integration platform
PDF
Keycloak Single Sign-On
PPTX
Cloud computing and OpenStack
PDF
OpenStack Identity - Keystone (kilo) by Lorenzo Carnevale and Silvio Tavilla
PPTX
SESSION8_AWS how to deploy the resources and services
Microservices
Create Home Directories on Storage Using WFA and ServiceNow integration
OpenStack Federated Cloud Services using API-Proxy and third party solutions
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...
Microservices with asp dot net core, a next gen technology
Sumo Logic Cert Jam - Advanced Metrics with Kubernetes
Openstack starter-guide-diablo
Openstack starter-guide-diablo
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
All About Microservices and OpenSource Microservice Frameworks
Service Discovery in MicroServices
Building Continuous Application with Structured Streaming and Real-Time Data ...
I hear you like meshes, here’s a mesh to connect your meshes
Integration of mule esb with microsoft azure
ApacheCon NA - Apache Camel K: a cloud-native integration platform
Keycloak Single Sign-On
Cloud computing and OpenStack
OpenStack Identity - Keystone (kilo) by Lorenzo Carnevale and Silvio Tavilla
SESSION8_AWS how to deploy the resources and services
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
A Presentation on Artificial Intelligence
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
MYSQL Presentation for SQL database connectivity
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Monthly Chronicles - July 2025
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Diabetes mellitus diagnosis method based random forest with bat algorithm
A Presentation on Artificial Intelligence
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Modernizing your data center with Dell and AMD
Chapter 3 Spatial Domain Image Processing.pdf
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25 Week I
The AUB Centre for AI in Media Proposal.docx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
MYSQL Presentation for SQL database connectivity
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...

Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Netflix Eureka Service Registry, Netflix Zull Gateway and Swagger UI