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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Florian Beaufumé
September 01, 2019
Programming
96
0
Share
Microservices avec Spring Cloud
Introduction aux microservices et exemple de mise en oeuvre avec Spring Cloud.
Florian Beaufumé
September 01, 2019
More Decks by Florian Beaufumé
See All by Florian Beaufumé
Performance de backend Spring : les techniques que tout dev devrait connaître
fbeaufume
1
27
Bien débuter avec Spring AI
fbeaufume
1
43
Programmation réactive avec Spring 5 et Reactor
fbeaufume
0
120
Programmation concurrente en Java
fbeaufume
0
91
Nouveautés de Java 8
fbeaufume
0
94
WebSocket avec Java EE 7
fbeaufume
0
77
Other Decks in Programming
See All in Programming
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
300
Modding RubyKaigi for Myself
yui_knk
0
390
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
170
今さら聞けないCancellationToken
htkym
0
160
iOS26時代の新規アプリ開発
yuukiw00w
0
180
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
220
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
200
継続的な負荷検証を目指して
pyama86
3
1.4k
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
2.2k
OCRを使ってゲームのアイテムをデータ化する
kishikawakatsumi
0
110
空間オーディオの活用
objectiveaudio
0
160
Swiftのレキシカルスコープ管理
kntkymt
0
180
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
930
The Spectacular Lies of Maps
axbom
PRO
1
760
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
190
We Have a Design System, Now What?
morganepeng
55
8.1k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
140
Bash Introduction
62gerente
615
210k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
54k
The agentic SEO stack - context over prompts
schlessera
0
780
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
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