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.
nodel_load()without restrictions Mongo & Drupal
Gold Sponsor ofDrupalCamp Kyiv 2011
Silver Sponsors ofDrupalCamp Kyiv 2011
Plan1. About project2. General scheme3. Mongo. Save/load node4. Content assembling: page, listing5. Resume
About project            Large events aggregator1. High load project2. 5`000`000 nodes3. Varied content4. A lot of content...
General schemeClient                    Drupal             VarnishNginx
Mongo: load nodenode_load()        mongo_node_load()                Is Mongo                available?  MySQL             ...
Mongo: save nodemongo_nodeapi()             insert             update       Mongo             delete
Content: listing
Content: page
Node build mode templatestheme_preprocess_node() Node-<type>.tpl.php                node-<type>-full.tpl.php              ...
Assambly content listing Views (node)                        MySqlViews row style plugin          MongoDB                 ...
Assambly content pageModule Panels       Current node                 in Full build mode                    Current node  ...
Resume1. Bricks (node + build mode + tpl)2. $node as argument in functions3. Low server load4. Scalable
Questions please   email: prischepa.p@i20.biz   skype: prischepa.p
Upcoming SlideShare
Loading in …5
×

Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

1,973 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

  1. 1. nodel_load()without restrictions Mongo & Drupal
  2. 2. Gold Sponsor ofDrupalCamp Kyiv 2011
  3. 3. Silver Sponsors ofDrupalCamp Kyiv 2011
  4. 4. Plan1. About project2. General scheme3. Mongo. Save/load node4. Content assembling: page, listing5. Resume
  5. 5. About project Large events aggregator1. High load project2. 5`000`000 nodes3. Varied content4. A lot of content on each page5. Page generation time 0,4 s
  6. 6. General schemeClient Drupal VarnishNginx
  7. 7. Mongo: load nodenode_load() mongo_node_load() Is Mongo available? MySQL Mongo
  8. 8. Mongo: save nodemongo_nodeapi() insert update Mongo delete
  9. 9. Content: listing
  10. 10. Content: page
  11. 11. Node build mode templatestheme_preprocess_node() Node-<type>.tpl.php node-<type>-full.tpl.php node-<type>-teaser.tpl.php
  12. 12. Assambly content listing Views (node) MySqlViews row style plugin MongoDB Отрисовка
  13. 13. Assambly content pageModule Panels Current node in Full build mode Current node in Info build mode
  14. 14. Resume1. Bricks (node + build mode + tpl)2. $node as argument in functions3. Low server load4. Scalable
  15. 15. Questions please email: prischepa.p@i20.biz skype: prischepa.p

×