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.

L'avenir de LAMP

2,757 views

Published on

présentation de 4 outils supplémentaires pour révolutionner l'organisation d'une application LAMP, et maîtriser plus efficacement la montée en charge.

Published in: Technology
  • 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://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 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

L'avenir de LAMP

  1. 1. L’AVENIR DE LAMP Innovation dans la pile AFUP, Paris, 12 novembre 2009
  2. 2. C’EST GLACHMMP!
  3. 3. C’EST GLACHMMP! S’il vous plait, utilisez plus de voyelles dans les noms de projets Open Source
  4. 4. ORDRE DU JOUR D’éléphpants De canapés D’engrenages D’esclaves De cochons
  5. 5. INTERVENANT Damien Seguy Services expert Open Source Eleveur d’éléphpants damien.seguy@alterway.fr
  6. 6. ARCHI Approche classique
  7. 7. CACHE LOCAL Cache local Redondance Cache Cache Double travail Web Web Limitation à la capacité locale
  8. 8. AVEC MEMCACHE Cache partagé Capacité doublée Memcache Partage des résultats Web Web La capacité dépasse les limitations physiques
  9. 9. PRATIQUE COURANTE Cache partagé Memcache Capacité extensible Web Web Web Centralisation des caches
  10. 10. MEMCACHE http://memcached.org/ Un cache géant en mémoire Une table de hashage extensible Intégrée dans PHP
  11. 11. EXEMPLE <?php $memcache = new Memcache; $memcache->connect('memcache.wan', 11211); $membre = new Membre_AFUP(); $membre->nom = 'Seguy'; $membre->prenom = 'Damien'; $membre->elephpants = 1009; $memcache->set( $membre->nom. $membre->prenom,  $membre, false, 0); ?>
  12. 12. EXEMPLE add <?php $memcache = new Memcache; get $memcache->connect('memcache.wan', 11211); $membre = $memcache->get('DamienSeguy'); set var_dump($membre); ?> replace increment
  13. 13. UTILISATION Reproduction rapide d’objets/ contextes Résultats de requêtes SQL Fichiers distants (RSS, etc...) Stockage de sessions
  14. 14. ARCHI Approche avec cache
  15. 15. STOCKAGE DE BLOB Memcache == stockage de BLOB Stockage plus structuré ? Tableaux de données, multi-dimensionnels
  16. 16. ENTREPÔTS CLÉ/VALEUR Uniquement des paires clé => valeur Les lignes deviennent un document Les tables deviennent des collections Il n’y a plus de modèle de données Quelques types : date, entier, chaîne, booléen, list, map
  17. 17. STRUCTURE { "_id": "ABBC89DDEBC", "_rev": "876BBDC", "type": "blog", "titre": "Un nouveau paradigme de bases de données", "contenus": "Un nouveau paradigme de bases de données", "tags": ["bd", "json", "super"], "publié": true }
  18. 18. STRUCTURE Format JSON (comme XML, mais plus simple) { "_id": "ABBC89DDEBC", "_rev": "876BBDC", "type": "blog", "titre": "Un nouveau paradigme de bases de données", "contenus": "Un nouveau paradigme de bases de données", "tags": ["bd", "json", "super"], "publié": true }
  19. 19. STRUCTURE Format JSON (comme XML, mais plus simple) Clé primaire pour tous { "_id": "ABBC89DDEBC", "_rev": "876BBDC", "type": "blog", "titre": "Un nouveau paradigme de bases de données", "contenus": "Un nouveau paradigme de bases de données", "tags": ["bd", "json", "super"], "publié": true }
  20. 20. STRUCTURE Format JSON (comme XML, mais plus simple) Clé primaire pour tous { "_id": "ABBC89DDEBC", "_rev": "876BBDC", Numéro de révision "type": "blog", "titre": "Un nouveau paradigme de bases de données", "contenus": "Un nouveau paradigme de bases de données", "tags": ["bd", "json", "super"], "publié": true }
  21. 21. STRUCTURE Format JSON (comme XML, mais plus simple) Clé primaire pour tous { "_id": "ABBC89DDEBC", "_rev": "876BBDC", Numéro de révision "type": "blog", "titre": "Un nouveau paradigme de bases de données", "contenus": "Un nouveau paradigme de bases de données", "tags": ["bd", "json", "super"], "publié": true } Booléen
  22. 22. STRUCTURE Format JSON (comme XML, mais plus simple) Clé primaire pour tous { "_id": "ABBC89DDEBC", "_rev": "876BBDC", Numéro de révision "type": "blog", "titre": "Un nouveau paradigme de bases de données", "contenus": "Un nouveau paradigme de bases de données", "tags": ["bd", "json", "super"], "publié": true } Liste Booléen
  23. 23. VUES function (doc) { for(var i in doc.tags) emit(doc.tags[i], 1); } Les vues sont écrites en JavaScript "bd" "json" Possibilités de filtrer, retraiter "super" Approche map/reduce Groupages multiples, sous-requêtes...
  24. 24. VUES function (doc) { for(var i in doc.tags) emit(doc.tags[i], 1); } Les vues sont écrites en JavaScript "bd",1 "bd" "json",2 "json" Possibilités de filtrer, retraiter "super",1 "super" Approche map/reduce function (Key, Values) { var sum = 0; Groupages multiples, sous-requêtes... for(var i in Values) sum += Values[i]; return sum; }
  25. 25. AVANTAGES Une approche naturelle des documents Migration naturelle, pas de NULL Pas de délire avec les jointures Indexation Partitionnement, réplication, clustering, fail over, MVCC API REST en HTTP
  26. 26. LIMITATIONS Ce n’est pas une base objet Syndrome de PHP3! Pas de transactions Attention aux conflits!
  27. 27. ACTUELLEMENT Apache’s CouchDB, Cassandra, MongoDB Utilisés en production par Digg, Facebook. Amazon simpleDB
  28. 28. ARCHI Sources de données
  29. 29. CONCEPTION DE SCRIPT Application de forum Modèle hiérarchique : entrée >> sortie modèle adjacent : sortie >> entrée PHP assume le travail, en ligne avec l’internaute!
  30. 30. ARCHI La transaction Web doit attendre chaque élément de l’architecture
  31. 31. ARCHI PHP est assez rapide pour servir le client
  32. 32. ARCHI Il faut exporter les tâches lourdes
  33. 33. GEARMAN Anagramme de manager Un système de distribution de tâches Trois acteurs : serveur, gearmand : distribue les tâches client, gearman : émet les commandes esclave, worker : effectue les tâches
  34. 34. Miniatures PDF Miniatures PDF Recherche
  35. 35. FONCTIONNEMENT PHP assure le filtrage des données, l’enregistrement des commandes, la restitution au navigateur Gearman répartit les tâches entre esclaves Si la charge augmente, il faut ajouter des esclaves Spécialisation des serveurs, réorganisation Découplage des frontaux Web
  36. 36. ARCHI Avec tâches lourdes
  37. 37. MAP/REDUCE Découpage du travail en Corpus lots Traitement du lot : MAP Map Map Map Map m1:1; m2:2 m2:1 m1:3; m3:1 Concentration des résultats : reduce Regroupement Résultat final m1:1,3 m2:2,1 m3:1 Reduce Reduce Reduce Hadoop fait tout sauf map et réduce m1:4 m2:3 m3:1
  38. 38. UN MODÈLE ROBUSTE Détection des crash Relance des tâches de map et reduce Doublement des tâches lentes Map et reduce fonctionnent simultanément Résultats intermédiaires possibles Addition des capacités de traitement
  39. 39. HADOOP Fonctions exportables via stdin/out Hive : HADOPP appliqué aux bases de données HDFS : cluster de stockage 1 Po de données, triées en 16h15 1 To de données triées en 62 secondes 3800 machines approx.
  40. 40. MAÎTRISE Personnalisation Public/ répétition Contexte Cohérence Tâches de fond Tâches lourdes
  41. 41. QUESTIONS?

×