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
86
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é
Bien débuter avec Spring AI
fbeaufume
1
21
Programmation réactive avec Spring 5 et Reactor
fbeaufume
0
110
Programmation concurrente en Java
fbeaufume
0
82
Nouveautés de Java 8
fbeaufume
0
89
WebSocket avec Java EE 7
fbeaufume
0
70
Other Decks in Programming
See All in Programming
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
220
Claude Code の Skill で複雑な既存仕様をすっきり整理しよう
yuichirokato
1
380
AI 開発合宿を通して得た学び
niftycorp
PRO
0
120
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.8k
モダンOBSプラグイン開発
umireon
0
130
「抽象に依存せよ」が分からなかった新卒1年目の私が Goのインターフェースと和解するまで
kurogenki
0
120
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
400
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
110
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
250
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
8.1k
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
550
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
120
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
66k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
220
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
110
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
200
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Evolving SEO for Evolving Search Engines
ryanjones
0
150
SEO for Brand Visibility & Recognition
aleyda
0
4.4k
Making Projects Easy
brettharned
120
6.6k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
390
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
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