Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Architecture d'une 
application full API 
orientée micro service
Présentation 
• Yves Heitz 
DevOps Klubup 
• Xavier Gorse / @xgorse 
CTO & Co-fondateur Klubup 
Fondateur Elao
Qu’est ce qu’un micro service ? 
http://martinfowler.com/articles/microservices.html
Qu’est ce qu’un micro service ? 
http://martinfowler.com/articles/microservices.html
Klubup 
• Connecter les @personnes et les #passions 
autour de la notion du Klub 
• On est membre d’un Klub 
• On partage ...
Klubup 
• Liste des services
Services 
Klub SF2 Mysql 
Search Silex SOLR 
Pics Silex - 
Register NodeJS Redis 
Provider NodeJS - 
Metrics GO Logentries...
Applications 
Front Backbone 
iOS ObjectiveC 
Android Java 
Mirador SF2 
Twitter streaming MeteorJS 
GraphManager MeteorJS
Pourquoi ? 
• Appli monolithique de 60 Bundles 
• Mobile 
• Application full Javascript 
• Optimisation des dev Back/Front
Bon candidat à un service 
• Scope fonctionnel délimité 
• Datastore spécifique 
• Bootstrap d’un nouveau fonctionnel 
• N...
Mauvais candidat à un service 
• Data existante 
• Transactionnel 
• Nano service 
• Nouvelle techno
Quelle techno pour mon service ? 
• Compétences 
• Productivité 
• Performance 
• Evolution de techno
Communication 
• HTTP : Universel 
• API REST JSON : Universel, Simple 
• Consommation directe 
• Consommation encapsulée ...
Gestion d’erreurs 
• Accepter 
• Criticité 
• Front 
• Back
Sécurité 
• OAuth2 pour les applications 
• OAuth2, Hawk et réseau privé pour les services 
• OAuth2 pas adapté entre les ...
Transactionnel 
• Pas de gestion de transaction cross services 
• Seulement au sein d'un service 
• Accepter l’erreur pour...
Monitoring / Reporting 
• Basé sur les log avec Logentries 
• RequestId pour regrouper les logs 
• UserAgent des applicati...
Monitoring / Reporting 
• Basé sur les log avec Logentries 
• RequestId pour regroupé les logs 
• UserAgent des applicatio...
Scalabilité 
• Isolation 
• Horizontalement / Verticalement 
• Séparation API Lecture / Ecriture 
• Concurrency des worker...
Performance 
• Rendre la main le plus vite possible au front 
• Difficulté de la parallélisation en PHP 
• Limiter les reb...
Asynchrone 
• Iron.io SAAS : IronMQ & IronWorker 
• Callback HTTP 
• Messaging avec workers 
• Généralisation des messages...
Iron.io
Cache 
• Pas de cache au niveau applicatif 
• Séparation /public/* et /private/* 
• Public : Cache HTTP via Varnish 
• Pri...
Infra 
• Provisionning avec Chef OpsCode 
• VM via OpenVz 
• Autonomie des deploy Applications/Services 
• Impact nouveau ...
Conclusion 
• Composant 
• Orienté métier 
• Approche produit 
• Décentralisation 
• Infrastructure automatisée 
• Gestion...
Conclusion 
• Couplage : Applications, Services, Infra 
• Bootstrap rapide 
• Industrialisation et refactoring douloureux ...
Next Step ? 
• Baptême du feu à la charge 
• Rationalisation 
• Industrialisation 
• Docker
Merci 
Recrute sur Lyon Recrute sur Paris
Upcoming SlideShare
Loading in …5
×

Architecture d'une application Full API orienté micro service

17,031 views

Published on

A travers un retour d'expérience sur le projet Klubup.com, nous explorerons une architecture applicative est basée sur les Micro Service, avec des API REST exploitées par les applications web principales (Symfony/BackboneJS), par les applications mobiles ( iOS et Android), mais aussi des petites applications métier basé sur d'autres techno comme Silex, Meteor ou NodeJS.

Nous aussi aborderons la problématique d'authentification (Oauth), la gestion asynchrone via la solution Iron.io, mais aussi la partie infra avec la virtualisation, le provisionning avec Chef et la gestion des logs avec Logentries.

Published in: Engineering
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Architecture d'une application Full API orienté micro service

  1. 1. Architecture d'une application full API orientée micro service
  2. 2. Présentation • Yves Heitz DevOps Klubup • Xavier Gorse / @xgorse CTO & Co-fondateur Klubup Fondateur Elao
  3. 3. Qu’est ce qu’un micro service ? http://martinfowler.com/articles/microservices.html
  4. 4. Qu’est ce qu’un micro service ? http://martinfowler.com/articles/microservices.html
  5. 5. Klubup • Connecter les @personnes et les #passions autour de la notion du Klub • On est membre d’un Klub • On partage dans un Klub • On sponsorise un Klub
  6. 6. Klubup • Liste des services
  7. 7. Services Klub SF2 Mysql Search Silex SOLR Pics Silex - Register NodeJS Redis Provider NodeJS - Metrics GO Logentries Notification PHP Iron.io Firebase
  8. 8. Applications Front Backbone iOS ObjectiveC Android Java Mirador SF2 Twitter streaming MeteorJS GraphManager MeteorJS
  9. 9. Pourquoi ? • Appli monolithique de 60 Bundles • Mobile • Application full Javascript • Optimisation des dev Back/Front
  10. 10. Bon candidat à un service • Scope fonctionnel délimité • Datastore spécifique • Bootstrap d’un nouveau fonctionnel • Nouvelle techno
  11. 11. Mauvais candidat à un service • Data existante • Transactionnel • Nano service • Nouvelle techno
  12. 12. Quelle techno pour mon service ? • Compétences • Productivité • Performance • Evolution de techno
  13. 13. Communication • HTTP : Universel • API REST JSON : Universel, Simple • Consommation directe • Consommation encapsulée via un service
  14. 14. Gestion d’erreurs • Accepter • Criticité • Front • Back
  15. 15. Sécurité • OAuth2 pour les applications • OAuth2, Hawk et réseau privé pour les services • OAuth2 pas adapté entre les services • HTTPS
  16. 16. Transactionnel • Pas de gestion de transaction cross services • Seulement au sein d'un service • Accepter l’erreur pour éviter les transactions
  17. 17. Monitoring / Reporting • Basé sur les log avec Logentries • RequestId pour regrouper les logs • UserAgent des applications et des services
  18. 18. Monitoring / Reporting • Basé sur les log avec Logentries • RequestId pour regroupé les logs • UserAgent des applications et des services
  19. 19. Scalabilité • Isolation • Horizontalement / Verticalement • Séparation API Lecture / Ecriture • Concurrency des workers • Humaine : 1 team / 1 service
  20. 20. Performance • Rendre la main le plus vite possible au front • Difficulté de la parallélisation en PHP • Limiter les rebonds entre les services • Latence HTTP • Traitement asynchrone
  21. 21. Asynchrone • Iron.io SAAS : IronMQ & IronWorker • Callback HTTP • Messaging avec workers • Généralisation des messages sur toutes les API
  22. 22. Iron.io
  23. 23. Cache • Pas de cache au niveau applicatif • Séparation /public/* et /private/* • Public : Cache HTTP via Varnish • Private : pas de cache pour l’instant
  24. 24. Infra • Provisionning avec Chef OpsCode • VM via OpenVz • Autonomie des deploy Applications/Services • Impact nouveau service / nouvelle techno
  25. 25. Conclusion • Composant • Orienté métier • Approche produit • Décentralisation • Infrastructure automatisée • Gestion des erreurs
  26. 26. Conclusion • Couplage : Applications, Services, Infra • Bootstrap rapide • Industrialisation et refactoring douloureux • Ouverture du code • Setup et debug compliqués
  27. 27. Next Step ? • Baptême du feu à la charge • Rationalisation • Industrialisation • Docker
  28. 28. Merci Recrute sur Lyon Recrute sur Paris

×