Сергей Черебедов - integration drupal with nodejs. what is it and why you need it?

42
Integration Drupal with NodeJS What is it and why You need it? Sergey Cherebedov

Upload: drupalsib

Post on 24-Jan-2017

255 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Integration Drupal with NodeJSWhat is it and why You need it?

Sergey Cherebedov

Page 2: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

About my experience in Drupal development

● Experience with Drupal - 1 year● Commercial development● Support Drupal community

Page 3: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Page 4: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Ryan Dahl

2009

Page 5: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

No blocking IO

Page 6: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Task Task Task Task

Done

Task Task Task Task

Done

Typical programming

language

Page 7: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Files system

Database

Other

Event loopEvent Queue Resources

Page 8: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

T1

T2

T3

Page 9: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Why not ?

Page 10: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

JavaScript Engine

Page 11: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Total packages

215,389Downloads in the last month

3,023,539,225

Page 12: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

What is Drupal?

===

Page 13: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Drupal is...

Page 14: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Drupal is...

Page 15: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Page 16: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Node.js integration(nodejs)

Drupal.org

Page 17: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

CHANNEL

MESSAGE

Page 18: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Clie

nt

Dru

pal

Nod

eJS

Client requests Drupal page

Drupal send down HTML with JS token

Client send auth token to NodeJS

NodeJs verifies token with Drupal

Drupal send appropriate channels for the user

NodeJs notifies the client of successful auth

Page 19: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

➔ Ajax➔ Long polling➔ Web sockets

Page 20: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Ajax

Page 21: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Long polling

Page 22: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Web sockets

Page 23: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Where is Drupal modules?I want to click the mouse!

Page 25: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

NodeJs Watchdog

Page 27: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Views NodeJS

Page 29: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Rules action with NodeJS

Page 31: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Rules action with NodeJS

Page 32: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Private messages NodeJS

Page 34: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

➔ NodeJS integration➔ Views NodeJS➔ Private Message NodeJS➔ Rules action with NodeJS

Page 35: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Resources

x1=

1GB

5,000 usersonline

+

Page 36: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

= 5-15$per month

Page 37: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Jivosite

Basic is freePro ~ 8$ per month

Page 38: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Simple project

Page 39: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Hard project

Page 40: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal Developer

Who use NodeJs?

Page 42: Сергей Черебедов - Integration Drupal with NodeJS. What is it and why You need it?

Sergey CherebedovDrupal developer

Sergey CherebedovDrupal Developer

[email protected]+7 905 956-13-24

Золотой спонсор:

Thank you!

При поддержке: Серебряный спонсор: