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

Post on 17-Dec-2014

1.468 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

nodel_load()without restrictions

Mongo & Drupal

Gold Sponsor ofDrupalCamp Kyiv 2011

Silver Sponsors ofDrupalCamp Kyiv 2011

Plan

1. About project

2. General scheme

3. Mongo. Save/load node

4. Content assembling: page, listing

5. Resume

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

General scheme

Nginx

Varnish

Client Drupal

Mongo: load node

MySQL

node_load() mongo_node_load()

Mongo

Is Mongo available?

Mongo: save node

mongo_nodeapi()

Mongo

insert

update

delete

Content: listing

Content: page

Node build mode templates

Node-<type>.tpl.php

theme_preprocess_node()

node-<type>-full.tpl.php

node-<type>-teaser.tpl.php

Assambly content listing

Views row style plugin

Views (node) MySql

MongoDB

Отрисовка

Assambly content page

Module Panels Current nodein Full build mode

Current nodein Info build mode

Resume

1. Bricks (node + build mode + tpl)

2. $node as argument in functions

3. Low server load

4. Scalable

Questions please

email: prischepa.p@i20.biz

skype: prischepa.p

top related