Node.js: Whats the Big Deal? Presented and JS Meetup Chicago

25
Node.js: Whats the Big Deal? & the Opportunity for jStack Developer By Aziz Ali Chief Instructor @

Transcript of Node.js: Whats the Big Deal? Presented and JS Meetup Chicago

Node.js:Whats the Big Deal?

& the Opportunity forjStack Developer

By Aziz AliChief Instructor @

Every Language Has A Runtime,That Runs the Language,Understands its Code andProcesses the Instructions

Javascript Runtime was buildwithin the Browser

Node.js is aRuntime for Javascripton the Machine

There has been other attempts to makeJavascript runtime on the machine,

so why did Node.js take off?

What is so special about Node.js?

FAST

NODE.JS is:Non-blocking (Asynchronous)

Event Driven (Event Loop)

Single-Threaded

NODE.JS is:Non-blocking (Asynchronous)

Event Driven (Event Loop)

Single-Threaded

NODE.JS is:Non-blocking (Asynchronous)

Event Driven (Event Loop)

Single-Threaded

EVENT DRIVENRuby: Event Machine

Perl: AnyEventPython: Twisted

NODE.JS is:Non-blocking (Asynchronous)

Event Driven (Event Loop)

Single-Threaded

Event Loop

Task 3

Task 2

Task 1

Task 4

Event Loop

Task 3

Task 2

Task 1

Task 4

New Task

Event Loop

Task 3

Task 2

Task 1

Task 4

File System

Database

Web Request

etc.

New Task

Event Loop

Task 3

Task 2

Task 1

Task 4

File System

Database

Web Request

etc.

New Task

Callback complete

The jStack Opportunity

● Build Mobile Apps○ Windows 8 supports that○ PhoneGap

● Build Desktop Apps○ Node-Webkit (NW.js)

Aziz Ali● 630.724.7322● [email protected]● twitter.com/iLoveCodingOrg