pavel prischepa.node load without-restrictions.drupalcamp kiev 2011

15
nodel_load() without restrictions Mongo & Drupal

Upload: campdrupalua

Post on 17-Dec-2014

1.468 views

Category:

Technology


4 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

nodel_load()without restrictions

Mongo & Drupal

Page 2: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Gold Sponsor ofDrupalCamp Kyiv 2011

Page 3: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Silver Sponsors ofDrupalCamp Kyiv 2011

Page 4: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Plan

1. About project

2. General scheme

3. Mongo. Save/load node

4. Content assembling: page, listing

5. Resume

Page 5: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

About project

Large events aggregator

1. High load project

2. 5`000`000 nodes

3. Varied content

4. A lot of content on each page

5. Page generation time 0,4 s

Page 6: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

General scheme

Nginx

Varnish

Client Drupal

Page 7: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Mongo: load node

MySQL

node_load() mongo_node_load()

Mongo

Is Mongo available?

Page 8: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Mongo: save node

mongo_nodeapi()

Mongo

insert

update

delete

Page 9: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Content: listing

Page 10: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Content: page

Page 11: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Node build mode templates

Node-<type>.tpl.php

theme_preprocess_node()

node-<type>-full.tpl.php

node-<type>-teaser.tpl.php

Page 12: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Assambly content listing

Views row style plugin

Views (node) MySql

MongoDB

Отрисовка

Page 13: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Assambly content page

Module Panels Current nodein Full build mode

Current nodein Info build mode

Page 14: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Resume

1. Bricks (node + build mode + tpl)

2. $node as argument in functions

3. Low server load

4. Scalable

Page 15: Pavel Prischepa.node load without-restrictions.DrupalCamp Kiev 2011

Questions please

email: [email protected]

skype: prischepa.p