SlideShare a Scribd company logo
NodeJS
Milestones
● Server-side Javascript based on Google V8
● Non-blocking Input/Output event model
● 100% CPU using: one process - one thread -
one core
Google V8
● V8 JavaScript VM is used in Google Chrome
● No JIT, all JavaScript is compiled to
assembler
● Hidden classes optimization from Self (V8 does not
dynamically lookup access properties, instead it uses hidden classes that are created behind the
scene)
● Improved garbage collector
Non-blocking I/O
The non-blocking nature makes node.js a good
fit for comet and next generation realtime web-
applications
nginx: non-blocking
apache: threaded
non-blocking can handle more requests-per-second and uses a lot less memory
NodeJS Perks: front- and backend
● One Javascript - different approaches
● Common libs
● Unit-tests for both sides
NodeJS Perks: Frameworks
Native example:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {
'Content-Type': 'text/plain'
});
res.end('Hello Worldn');
}).listen(3000, '127.0.0.1');
ExpressJS:
var app = express.createServer();
app.get('/', function(req, res){
res.send('Hello World');
});
app.listen(3000);
NodeJS Perks: Comet
Comet is a web application model in which a long-held HTTP request allows
a web server to push data to a browser, without the browser explicitly
requesting it.
● Comet servers need to have a lot of open connections
● One thread-per-connection does not scale
● The solution is to use event based servers
● It’s only possible to create event based servers in
node.js
NodeJS Weaknesses
● Due to Javascript flexible nature it's hard to
locate mistakes
● Strict convention rules are highly
recommended
● One process serve plenty requests: so,
mistake in one request may "freeze" other.
● Non-trivial garbage collector (closures, long-term
processes)
● Strange open-source community (no standards)
● No backward compatibility
NodeJS Scalability
NodeJS Scalability
Resources
1. http://nodejs.org
2. www.nodebeginner.ru
3. http://pacemaker.pp.ua/presentations/Yura_Bogdanov-nodejs_inside_tactoom.ppt
4. http://code.google.com/p/v8/

More Related Content

PPT
Node.js Basics
PDF
Fundamental of Node.JS - Internship Presentation - Week7
PDF
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
PDF
Node.js in 2021
PDF
PPTX
Future of NodeJS
PPTX
Node js introduction
PPTX
Nodejs web service for starters
Node.js Basics
Fundamental of Node.JS - Internship Presentation - Week7
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Node.js in 2021
Future of NodeJS
Node js introduction
Nodejs web service for starters

What's hot (20)

PPTX
Node js for beginners
PDF
Introduction to Node.js
PDF
Node.js scaling in highload
PPTX
NodeJS
PPTX
3 Things Everyone Knows About Node JS That You Don't
PDF
JavaScript as a Server side language (NodeJS): JSConf 2011, Dhaka
PPTX
NodeJS - Server Side JS
PDF
Nodejs presentation
PPT
Node js
PPTX
Nodejs intro
PPTX
Node js Introduction
PDF
(C)NodeJS
PDF
Complete MVC on NodeJS
PDF
Node js (runtime environment + js library) platform
PPTX
Introduction to node.js
PDF
PPSX
Node.js In The Enterprise - A Primer
PPTX
Node js Global Packages
PDF
Best node js course
Node js for beginners
Introduction to Node.js
Node.js scaling in highload
NodeJS
3 Things Everyone Knows About Node JS That You Don't
JavaScript as a Server side language (NodeJS): JSConf 2011, Dhaka
NodeJS - Server Side JS
Nodejs presentation
Node js
Nodejs intro
Node js Introduction
(C)NodeJS
Complete MVC on NodeJS
Node js (runtime environment + js library) platform
Introduction to node.js
Node.js In The Enterprise - A Primer
Node js Global Packages
Best node js course
Ad

Similar to NodeJS overview (20)

PPTX
Beginners Node.js
ODP
Introduce about Nodejs - duyetdev.com
PPTX
Node.js Test
PPTX
introduction to node.js
PPTX
PPT
Node.js
PPTX
An overview of node.js
PDF
Real time web
PPTX
Introduction to Node.js
PPT
18_Node.js.ppt
PPT
18_Node.js.ppt
PPTX
module for backend full stack applications 1.pptx
PPTX
Node.js
ODP
Sfd hanoi2012 nguyen ha duong yang node.js-intro
ODP
Sfd2012Hanoi Nguyễn Hà Dương - Introduction to Node.js
PPTX
Node js installation steps.pptx slide share ppts
PPTX
Kalp Corporate Node JS Perfect Guide
PPT
PDF
Node.js for beginner
PDF
Node.js Web Development SEO Expert Bangladesh LTD.pdf
Beginners Node.js
Introduce about Nodejs - duyetdev.com
Node.js Test
introduction to node.js
Node.js
An overview of node.js
Real time web
Introduction to Node.js
18_Node.js.ppt
18_Node.js.ppt
module for backend full stack applications 1.pptx
Node.js
Sfd hanoi2012 nguyen ha duong yang node.js-intro
Sfd2012Hanoi Nguyễn Hà Dương - Introduction to Node.js
Node js installation steps.pptx slide share ppts
Kalp Corporate Node JS Perfect Guide
Node.js for beginner
Node.js Web Development SEO Expert Bangladesh LTD.pdf
Ad

More from Roman Trukhin (15)

PPTX
Culture map - Book Review
PPTX
Ethics and technologies - Cybersecurity landscape
PPTX
Security awareness for Applied Science Faculty of Ukrainian Catholic University
PPTX
How people behave
PPTX
Estimation
PDF
Web design crash course
PDF
Three-Way-Ballot system
PDF
Nobel Prize
PDF
MacOS Philosophy
PDF
Great Pacific Garbage
PDF
Future of images in the web
PDF
Fonts: how it's made?
PDF
PDF
Bitcoin p2p money
PDF
Scrum in 15 minutes
Culture map - Book Review
Ethics and technologies - Cybersecurity landscape
Security awareness for Applied Science Faculty of Ukrainian Catholic University
How people behave
Estimation
Web design crash course
Three-Way-Ballot system
Nobel Prize
MacOS Philosophy
Great Pacific Garbage
Future of images in the web
Fonts: how it's made?
Bitcoin p2p money
Scrum in 15 minutes

Recently uploaded (20)

PPTX
1. Introduction to Computer Programming.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Mushroom cultivation and it's methods.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
1. Introduction to Computer Programming.pptx
NewMind AI Weekly Chronicles - August'25-Week II
A comparative analysis of optical character recognition models for extracting...
Mushroom cultivation and it's methods.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Digital-Transformation-Roadmap-for-Companies.pptx
Spectroscopy.pptx food analysis technology
Heart disease approach using modified random forest and particle swarm optimi...
A comparative study of natural language inference in Swahili using monolingua...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Programs and apps: productivity, graphics, security and other tools

NodeJS overview

  • 2. Milestones ● Server-side Javascript based on Google V8 ● Non-blocking Input/Output event model ● 100% CPU using: one process - one thread - one core
  • 3. Google V8 ● V8 JavaScript VM is used in Google Chrome ● No JIT, all JavaScript is compiled to assembler ● Hidden classes optimization from Self (V8 does not dynamically lookup access properties, instead it uses hidden classes that are created behind the scene) ● Improved garbage collector
  • 4. Non-blocking I/O The non-blocking nature makes node.js a good fit for comet and next generation realtime web- applications nginx: non-blocking apache: threaded non-blocking can handle more requests-per-second and uses a lot less memory
  • 5. NodeJS Perks: front- and backend ● One Javascript - different approaches ● Common libs ● Unit-tests for both sides
  • 6. NodeJS Perks: Frameworks Native example: var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end('Hello Worldn'); }).listen(3000, '127.0.0.1'); ExpressJS: var app = express.createServer(); app.get('/', function(req, res){ res.send('Hello World'); }); app.listen(3000);
  • 7. NodeJS Perks: Comet Comet is a web application model in which a long-held HTTP request allows a web server to push data to a browser, without the browser explicitly requesting it. ● Comet servers need to have a lot of open connections ● One thread-per-connection does not scale ● The solution is to use event based servers ● It’s only possible to create event based servers in node.js
  • 8. NodeJS Weaknesses ● Due to Javascript flexible nature it's hard to locate mistakes ● Strict convention rules are highly recommended ● One process serve plenty requests: so, mistake in one request may "freeze" other. ● Non-trivial garbage collector (closures, long-term processes) ● Strange open-source community (no standards) ● No backward compatibility
  • 11. Resources 1. http://nodejs.org 2. www.nodebeginner.ru 3. http://pacemaker.pp.ua/presentations/Yura_Bogdanov-nodejs_inside_tactoom.ppt 4. http://code.google.com/p/v8/