Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Microservices avec Spring Cloud
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Florian Beaufumé
September 01, 2019
Programming
0
72
Microservices avec Spring Cloud
Introduction aux microservices et exemple de mise en oeuvre avec Spring Cloud.
Florian Beaufumé
September 01, 2019
Tweet
Share
More Decks by Florian Beaufumé
See All by Florian Beaufumé
Programmation réactive avec Spring 5 et Reactor
fbeaufume
0
99
Programmation concurrente en Java
fbeaufume
0
69
Nouveautés de Java 8
fbeaufume
0
80
WebSocket avec Java EE 7
fbeaufume
0
57
Other Decks in Programming
See All in Programming
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
0
190
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.8k
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
670
CSC307 Lecture 05
javiergs
PRO
0
490
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
5.9k
今から始めるClaude Code超入門
448jp
7
7.9k
Package Management Learnings from Homebrew
mikemcquaid
0
170
AgentCoreとHuman in the Loop
har1101
5
210
Oxlintはいいぞ
yug1224
5
1.2k
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
170
Python札幌 LT資料
t3tra
7
1.1k
AI時代の認知負荷との向き合い方
optfit
0
130
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
170
Building Adaptive Systems
keathley
44
2.9k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
430
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
88
Building Flexible Design Systems
yeseniaperezcruz
330
40k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
150
Prompt Engineering for Job Search
mfonobong
0
150
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
150
Transcript
Microservices avec Spring Cloud Florian Beaufumé @fbeaufume 09/2019 v1.1
• Architecte logiciel et expert Java • Freelance • Brown
bag lunch • @fbeaufume Florian Beaufumé
Monolithe vs microservices @fbeaufume
Un modèle d'architecture basé sur l'utilisation de services indépendants, limités,
orientés métier et communicants Microservices @fbeaufume
• Cycles de développement indépendants • Builds et livraisons simplifiés
et moins risqués • Isolation runtime • Configuration fine • Scaling horizontal fin • Robustesse • Migrations techniques • Programmation polyglotte Bénéfices @fbeaufume
• Identification et découper les services et données • Communications
entre services • Cohérence des données • Event driven • Automatisation • Besoins de monitoring Difficultés @fbeaufume
Spring Kubernetes & Istio Boot Cloud Netflix Solutions @fbeaufume
Spring Cloud @fbeaufume
Client applications Gateway Order Stock Mongo H2 Service registry Config
server Git Spring Boot Spring Boot Spring Boot Spring Cloud Gateway Spring Boot Netflix Eureka Spring Boot Spring Cloud Config Lookup Register Get config 8081 8082 8080 8888 8761 Architecture Spring Cloud Netflix @fbeaufume
https://github.com/fbeaufume/microshop
pom.xml main application.yml Config server @fbeaufume
@fbeaufume
http://localhost:8888/order/default @fbeaufume
Service registry pom.xml main @fbeaufume
http://localhost:8761/
http://localhost:8761/eureka/apps/order @fbeaufume
Microservice métier pom.xml boostrap.xml @fbeaufume
Load balancer et circuit breaker @Configuration RestConfiguration @Service OrderService 2
3 4 1
Gateway pom.xml main application.yml @fbeaufume
Routage • Par cookie • Par header • Par host
• Par date • Etc. @fbeaufume
Filtrage Served GET 'http://localhost:8080/api/orders' as 200 in 16 msec 2
3 4 5 1
Traces distribuées Gateway Order Stock pom.xml @fbeaufume
http://localhost:9411/zipkin/ Zipkin application.yml @fbeaufume
@fbeaufume
@Component @Aspect ZipkinTracingAspect Interception des méthodes 1 2 3 5
4
Spring Boot Admin http://localhost:8090/
None
Merci @fbeaufume