Devoxx 2016 - Dropwizard : Création de services REST production-ready
-
Upload
alexander-dejanovski -
Category
Engineering
-
view
1.166 -
download
1
Transcript of Devoxx 2016 - Dropwizard : Création de services REST production-ready
![Page 1: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/1.jpg)
#DevoxxFR
1
Dropwizard
Création rapide de services REST "production-ready"
Alexander Dejanovski
#dropdevoxx
#dropdevoxx @alexanderdeja
![Page 2: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/2.jpg)
#DevoxxFR
Alexander DejanovskiDéveloppeur chez Chronopost
Datastax MVP for Apache Cassandra 2015-2016
Développeur d’un driver JDBC Cassandra
Cassandra fan boy (jusqu’à la mauvaise foi…)
@alexanderdeja
github.com/adejanovski
2#dropdevoxx @alexanderdeja
![Page 3: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/3.jpg)
#DevoxxFR
Chronopost recrute…
… des développeurs Java passionnés tous niveaux [email protected]
3#dropdevoxx @alexanderdeja
![Page 4: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/4.jpg)
#DevoxxFR
Dropwizard : c’est quoi ?
• Framework light pour microservices REST
• Jetty + Jersey + Jackson + Dropwizard Metrics + …
4#dropdevoxx @alexanderdeja
![Page 5: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/5.jpg)
#DevoxxFR
Architecture
5#dropdevoxx @alexanderdeja
![Page 6: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/6.jpg)
#DevoxxFR
Un projet dropwizard
6#dropdevoxx @alexanderdeja
![Page 7: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/7.jpg)
#DevoxxFR
Dropwizard : pourquoi c’est bien?
• (super) simple et (super) léger
• Production ready : –Jar autonome (shade) + fichier de config
yaml–Supervision : healthchecks–Métrologie : métriques
• Extensible : modules.dropwizard.io/thirdparty/
7#dropdevoxx @alexanderdeja
![Page 8: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/8.jpg)
#DevoxxFR
Production ready c’est aussi...• Une (bonne) gestion des timeouts
• Se protéger des défaillances des dépendances
• « Circuit breaker » prêt à l’usage8#dropdevoxx @alexanderdeja
![Page 9: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/9.jpg)
#DevoxxFR
Circuit breaker = fusible• Protège votre programme en évitant l’engorgement
• Protège la dépendance en arrêtant de l’appeler
9#dropdevoxx @alexanderdeja
![Page 10: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/10.jpg)
#DevoxxFR
Roadmap
10#dropdevoxx @alexanderdeja
![Page 11: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/11.jpg)
#DevoxxFR
Q&A après la démo(si on a le temps…)
11#dropdevoxx @alexanderdeja
![Page 12: Devoxx 2016 - Dropwizard : Création de services REST production-ready](https://reader033.fdocuments.in/reader033/viewer/2022051300/5878940b1a28ab375f8b6393/html5/thumbnails/12.jpg)
#DevoxxFR
Sources
https://github.com/adejanovski/Devoxx2016
#dropdevoxx @alexanderdeja