Enviar búsqueda
Cargar
Node.js Concurrency Event Loop Non-Blocking I/O
•
3 recomendaciones
•
724 vistas
Título mejorado por IA
A
Anupom Syam
Seguir
Tecnología
Denunciar
Compartir
Denunciar
Compartir
1 de 47
Recomendados
Webconf nodejs-production-architecture
Webconf nodejs-production-architecture
Ben Lin
Understanding the Single Thread Event Loop
Understanding the Single Thread Event Loop
TorontoNodeJS
NodeJS Concurrency
NodeJS Concurrency
pgriess
Introduction to node.js GDD
Introduction to node.js GDD
Sudar Muthu
Node.js and Ruby
Node.js and Ruby
Michael Bleigh
Node.js concurrency
Node.js concurrency
Giacomo Fornari
JavaScript Event Loop
JavaScript Event Loop
Thomas Hunter II
Getting Started with MongoDB and Node.js
Getting Started with MongoDB and Node.js
Grant Goodale
Recomendados
Webconf nodejs-production-architecture
Webconf nodejs-production-architecture
Ben Lin
Understanding the Single Thread Event Loop
Understanding the Single Thread Event Loop
TorontoNodeJS
NodeJS Concurrency
NodeJS Concurrency
pgriess
Introduction to node.js GDD
Introduction to node.js GDD
Sudar Muthu
Node.js and Ruby
Node.js and Ruby
Michael Bleigh
Node.js concurrency
Node.js concurrency
Giacomo Fornari
JavaScript Event Loop
JavaScript Event Loop
Thomas Hunter II
Getting Started with MongoDB and Node.js
Getting Started with MongoDB and Node.js
Grant Goodale
Node.js introduction
Node.js introduction
Prasoon Kumar
Create a RESTful API with NodeJS, Express and MongoDB
Create a RESTful API with NodeJS, Express and MongoDB
Hengki Sihombing
Building a REST API with Node.js and MongoDB
Building a REST API with Node.js and MongoDB
VivochaLabs
Node js
Node js
Krishna Chaytaniah
NodeJS ecosystem
NodeJS ecosystem
Yukti Kaura
[Js hcm] Deploying node.js with Forever.js and nginx
[Js hcm] Deploying node.js with Forever.js and nginx
Nicolas Embleton
Node.js and How JavaScript is Changing Server Programming
Node.js and How JavaScript is Changing Server Programming
Tom Croucher
Non-blocking I/O, Event loops and node.js
Non-blocking I/O, Event loops and node.js
Marcus Frödin
Complete MVC on NodeJS
Complete MVC on NodeJS
Hüseyin BABAL
A slightly advanced introduction to node.js
A slightly advanced introduction to node.js
Sudar Muthu
NodeJS
NodeJS
Predhin Sapru
Node.js
Node.js
Jan Dillmann
Node js introduction
Node js introduction
Joseph de Castelnau
NodeJS - Server Side JS
NodeJS - Server Side JS
Ganesh Kondal
OSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js Tutorial
Tom Croucher
Lighting fast rails with zeus
Lighting fast rails with zeus
Philipp Fehre
MongoDB, Node.js And You: PART II
MongoDB, Node.js And You: PART II
Mitch Pirtle
Node.js Introduction
Node.js Introduction
Kentucky JavaScript Users Group
Horizontally Scaling Node.js and WebSockets
Horizontally Scaling Node.js and WebSockets
James Simpson
Introduction to Node.js
Introduction to Node.js
Jack Franklin
Как работодателю получить сертификат доверия от ГИТ
Как работодателю получить сертификат доверия от ГИТ
Директор по персоналу & Кадровое Дело
Speed Up Your Website
Speed Up Your Website
Anupom Syam
Más contenido relacionado
La actualidad más candente
Node.js introduction
Node.js introduction
Prasoon Kumar
Create a RESTful API with NodeJS, Express and MongoDB
Create a RESTful API with NodeJS, Express and MongoDB
Hengki Sihombing
Building a REST API with Node.js and MongoDB
Building a REST API with Node.js and MongoDB
VivochaLabs
Node js
Node js
Krishna Chaytaniah
NodeJS ecosystem
NodeJS ecosystem
Yukti Kaura
[Js hcm] Deploying node.js with Forever.js and nginx
[Js hcm] Deploying node.js with Forever.js and nginx
Nicolas Embleton
Node.js and How JavaScript is Changing Server Programming
Node.js and How JavaScript is Changing Server Programming
Tom Croucher
Non-blocking I/O, Event loops and node.js
Non-blocking I/O, Event loops and node.js
Marcus Frödin
Complete MVC on NodeJS
Complete MVC on NodeJS
Hüseyin BABAL
A slightly advanced introduction to node.js
A slightly advanced introduction to node.js
Sudar Muthu
NodeJS
NodeJS
Predhin Sapru
Node.js
Node.js
Jan Dillmann
Node js introduction
Node js introduction
Joseph de Castelnau
NodeJS - Server Side JS
NodeJS - Server Side JS
Ganesh Kondal
OSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js Tutorial
Tom Croucher
Lighting fast rails with zeus
Lighting fast rails with zeus
Philipp Fehre
MongoDB, Node.js And You: PART II
MongoDB, Node.js And You: PART II
Mitch Pirtle
Node.js Introduction
Node.js Introduction
Kentucky JavaScript Users Group
Horizontally Scaling Node.js and WebSockets
Horizontally Scaling Node.js and WebSockets
James Simpson
Introduction to Node.js
Introduction to Node.js
Jack Franklin
La actualidad más candente
(20)
Node.js introduction
Node.js introduction
Create a RESTful API with NodeJS, Express and MongoDB
Create a RESTful API with NodeJS, Express and MongoDB
Building a REST API with Node.js and MongoDB
Building a REST API with Node.js and MongoDB
Node js
Node js
NodeJS ecosystem
NodeJS ecosystem
[Js hcm] Deploying node.js with Forever.js and nginx
[Js hcm] Deploying node.js with Forever.js and nginx
Node.js and How JavaScript is Changing Server Programming
Node.js and How JavaScript is Changing Server Programming
Non-blocking I/O, Event loops and node.js
Non-blocking I/O, Event loops and node.js
Complete MVC on NodeJS
Complete MVC on NodeJS
A slightly advanced introduction to node.js
A slightly advanced introduction to node.js
NodeJS
NodeJS
Node.js
Node.js
Node js introduction
Node js introduction
NodeJS - Server Side JS
NodeJS - Server Side JS
OSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js Tutorial
Lighting fast rails with zeus
Lighting fast rails with zeus
MongoDB, Node.js And You: PART II
MongoDB, Node.js And You: PART II
Node.js Introduction
Node.js Introduction
Horizontally Scaling Node.js and WebSockets
Horizontally Scaling Node.js and WebSockets
Introduction to Node.js
Introduction to Node.js
Destacado
Как работодателю получить сертификат доверия от ГИТ
Как работодателю получить сертификат доверия от ГИТ
Директор по персоналу & Кадровое Дело
Speed Up Your Website
Speed Up Your Website
Anupom Syam
Ruby Hell Yeah
Ruby Hell Yeah
Anupom Syam
ME 1770 Presentation
ME 1770 Presentation
Evan Williamson
Presentación de organizadores
Presentación de organizadores
Cristian0913
Todo sobre halloween
Todo sobre halloween
emersonhernandezlozano
abstracts
abstracts
Anne-Christin Hauschild
GTAG: Documents de référence
GTAG: Documents de référence
ISACA Chapitre de Québec
2009 Crofton DNT Thyroid Disruptors NBTS Meeting
2009 Crofton DNT Thyroid Disruptors NBTS Meeting
KevinCrofton
Anti patterns part 2
Anti patterns part 2
Return on Intelligence
Biopesticide
Biopesticide
Bijaya Kumar Uprety
Destacado
(11)
Как работодателю получить сертификат доверия от ГИТ
Как работодателю получить сертификат доверия от ГИТ
Speed Up Your Website
Speed Up Your Website
Ruby Hell Yeah
Ruby Hell Yeah
ME 1770 Presentation
ME 1770 Presentation
Presentación de organizadores
Presentación de organizadores
Todo sobre halloween
Todo sobre halloween
abstracts
abstracts
GTAG: Documents de référence
GTAG: Documents de référence
2009 Crofton DNT Thyroid Disruptors NBTS Meeting
2009 Crofton DNT Thyroid Disruptors NBTS Meeting
Anti patterns part 2
Anti patterns part 2
Biopesticide
Biopesticide
Similar a Node.js Concurrency Event Loop Non-Blocking I/O
Node.js: A Guided Tour
Node.js: A Guided Tour
cacois
Operating Systems R20 Unit 2.pptx
Operating Systems R20 Unit 2.pptx
Prudhvi668506
introduction to node.js
introduction to node.js
orkaplan
Multithreading 101
Multithreading 101
Tim Penhey
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
Tech in Asia ID
Threads
Threads
atikkazimca
Introduction to Node.js: What, why and how?
Introduction to Node.js: What, why and how?
Christian Joudrey
NodeJS.ppt
NodeJS.ppt
ssusera2e068
NodeJS.ppt
NodeJS.ppt
Noah449554
NodeJS.ppt
NodeJS.ppt
rani marri
NodeJS introduction and examples of event loops
NodeJS introduction and examples of event loops
Lalith86
Optimizing your java applications for multi core hardware
Optimizing your java applications for multi core hardware
IndicThreads
Node.js Workshop - Sela SDP 2015
Node.js Workshop - Sela SDP 2015
Nir Noy
Here comes the Loom - Ya!vaConf.pdf
Here comes the Loom - Ya!vaConf.pdf
Krystian Zybała
The Pillars Of Concurrency
The Pillars Of Concurrency
aviade
Introduction to Node.JS
Introduction to Node.JS
Collaboration Technologies
3rd Generation Web Application Platforms
3rd Generation Web Application Platforms
Naresh Chintalcheru
4.Process.ppt
4.Process.ppt
AkfeteAssefa
Node js presentation
Node js presentation
martincabrera
No callbacks, No Threads - Cooperative web servers in Ruby 1.9
No callbacks, No Threads - Cooperative web servers in Ruby 1.9
Ilya Grigorik
Similar a Node.js Concurrency Event Loop Non-Blocking I/O
(20)
Node.js: A Guided Tour
Node.js: A Guided Tour
Operating Systems R20 Unit 2.pptx
Operating Systems R20 Unit 2.pptx
introduction to node.js
introduction to node.js
Multithreading 101
Multithreading 101
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
"You Don't Know NODE.JS" by Hengki Mardongan Sihombing (Urbanhire)
Threads
Threads
Introduction to Node.js: What, why and how?
Introduction to Node.js: What, why and how?
NodeJS.ppt
NodeJS.ppt
NodeJS.ppt
NodeJS.ppt
NodeJS.ppt
NodeJS.ppt
NodeJS introduction and examples of event loops
NodeJS introduction and examples of event loops
Optimizing your java applications for multi core hardware
Optimizing your java applications for multi core hardware
Node.js Workshop - Sela SDP 2015
Node.js Workshop - Sela SDP 2015
Here comes the Loom - Ya!vaConf.pdf
Here comes the Loom - Ya!vaConf.pdf
The Pillars Of Concurrency
The Pillars Of Concurrency
Introduction to Node.JS
Introduction to Node.JS
3rd Generation Web Application Platforms
3rd Generation Web Application Platforms
4.Process.ppt
4.Process.ppt
Node js presentation
Node js presentation
No callbacks, No Threads - Cooperative web servers in Ruby 1.9
No callbacks, No Threads - Cooperative web servers in Ruby 1.9
Último
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
The Digital Insurer
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
SeasiaInfotech2
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
NavinnSomaal
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
Zilliz
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
Zilliz
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
charlottematthew16
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
hariprasad279825
Último
(20)
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
Node.js Concurrency Event Loop Non-Blocking I/O
1.
node.js
2.
Concurrency?
3.
In system level
it is achieved by Time Division Multiplexing
4.
1. Process Forking
5.
6.
Process Forking
7.
8.
9.
10.
a. Context switching
between threads is faster than that between processes
11.
a. Context switching
between threads is faster than that between processes a. Context switching between threads is not free
12.
b. Multiple threads
within a process share state as well as memory and other resources
13.
b. Multiple threads
within a process share state as well as memory and other resources b. Call stack associated with a thread is > 0 bytes
14.
15.
c. Scaling is
achieved by creating a new thread per connection.
16.
c. Scaling is
achieved by creating a new thread per connection. c. For massive concurrency we can not use one O/S thread per connection.
17.
18.
d. Creating a
thread is faster than creating a process.
19.
d. Creating a
thread is faster than creating a process. d. Thread creation is not really cheap, and in some systems it's costlier than forking.
20.
21.
Threaded model drops
in performance as concurrency increases
22.
1. Using Java
NIO/MQ for asynchronous calls, I/O operations. 2. Using green threads 3. Thread pooling
23.
But it needs
expert knowledge and system level hacking in some cases.
24.
Concurrency?
25.
3. Event Loop
26.
27.
a. Long running
routines will block the loop
28.
Event loop can
not support long running blocking routines
29.
What is long
running?
30.
I/O
31.
I/O latency eats
CPU cycles
32.
Non blocking, asynchronous
I/O
33.
node.js
34.
Provides a
simplistic API to write extremely scalable event-driven server
35.
36.
Evented non/blocking i/o
37.
Built on V8
Engine
38.
CommonJS standard
39.
Evented non blocking
platform to write high concurrent applications
40.
How it works?
41.
42.
Non blocking I/O
43.
Interrupts
44.
How to use
it?
45.
// Old blocking
style resultSet = database.select("something"); // wait... tap tap tap doStuff(resultSet);
46.
// New non-blocking
style database.select("something", function(resultSet) { // called on completion doStuff(resultSet); });
47.
var sys =
require('sys'), http = require('http'); http.createServer(function (req, res) { setTimeout(function () { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World!'); }, 2000); }).listen(8000); sys.puts('Server running at http://127.0.0.1:8000/'); Hello World!
48.
Where can we
use it?
49.
50.
real time application
51.
socket apps
52.
...
53.
54.
Loads of available
modules
55.
It's JS, easy
to install and deploy
56.
57.
var sys =
require("sys"); sys.puts("Happy Hacking!");