Upload
thanasis-polychronakis
View
485
Download
0
Embed Size (px)
DESCRIPTION
An introduction to Node.js
Citation preview
Intro to node.js#SKGNode
#SKGNode@thanpolas
Core Concepts
#SKGNode@thanpolas
Why Node?
● Asynchronous● Robust● Blazingly FAST● Javascript / Browserify● Largest growth year over year● Largest frontend tool belt
#SKGNode@thanpolas
Asynchronous
● Event Based Development
● Real Time Applications
● Single Threaded
● Non Blocking I/O
#SKGNode@thanpolas
Robust
● Very small footprint / stack● Hundreds thousand production installations● Easily Scalable● Every major company is deploying node
○ Yahoo○ Paypal○ eBay○ LinkedIn
#SKGNode@thanpolas
Blazingly Fast
● Superior V8 engine under the hood● 2x speed compared to Threaded langs
○ PHP○ Java○ Ruby
● Wins both in RPS and Response Time
#SKGNode@thanpolas
Why Blazingly Fast
source: http://strongloop.com/strongblog/node-js-is-faster-than-java/
#SKGNode@thanpolas
Javascript & Browserify
● Javascript is the Lingua Franca of the web
● Huge & Growing developer pool
● Minimum context switching for back / front
#SKGNode@thanpolas
Largest Growth
source: http://www.modulecounts.com/
● 95k NPM Modules
● Grows at 159m/day
● Second is Maven with 73/d
#SKGNode@thanpolas
Largest Frontend Tool Belt
#SKGNode@thanpolas
A Quick Look Under the Hood
#SKGNode@thanpolas
Philosophy
● No Frameworks
● Small reusable libraries
● NPM
● Open Source
#SKGNode@thanpolas
A Typical Node Web App
Your AppCore HTTP ExpressJS
#SKGNode@thanpolas
Middleware Pattern
HTTP Request
Express JS
Mat
ched
Rou
te
CO
RS
Mid
dlew
are
CS
RF
Mid
dlew
are
Aut
h M
iddl
ewar
e
Mai
n Ta
sk
HTTP Response
Thank you!Thanasis Polychronakis@[email protected]
#SKGNodeMeetup Group: http://bit.ly/skgnode
Slides: http://bit.ly/nodeIntro
Questions?Thanasis Polychronakis@[email protected]
#SKGNodeMeetup Group: http://bit.ly/skgnode
Slides: http://bit.ly/nodeIntro