filmov
tv
When is NodeJS Single-Threaded and when is it Multi-Threaded?
Показать описание
Node JS Is single threaded asynchronous non-blocking javascript runtime, but its not always single threaded there are occasions where nodejs uses multi-threading, so the questions we will try to answer in this video, when is nodejs single threaded and when does it use multi-threading and how will that affect my app?
* Event main Loop 0:00 single thread, that really just loops for callbacks
* Threading in Node jS (libuv) 4:00
* used for
* IO/intensive
* DNS queries
* file system reads
* CPU intensive
* crypto
* compression
Examples 8:00
Cluster Nodejs 16:00
Example 1
Http server return 1
Http server while 1
Http server with file system read async
Http server with file system read sync
Http server with fetch call to server (dns)
Resources
🎙️Listen to the Backend Engineering Podcast
🏭 Backend Engineering Videos
💾 Database Engineering Videos
🏰 Load Balancing and Proxies Videos
🏛️ Software Archtiecture Videos
📩 Messaging Systems
Become a Member
Support me on PayPal
Stay Awesome,
Hussein
* Event main Loop 0:00 single thread, that really just loops for callbacks
* Threading in Node jS (libuv) 4:00
* used for
* IO/intensive
* DNS queries
* file system reads
* CPU intensive
* crypto
* compression
Examples 8:00
Cluster Nodejs 16:00
Example 1
Http server return 1
Http server while 1
Http server with file system read async
Http server with file system read sync
Http server with fetch call to server (dns)
Resources
🎙️Listen to the Backend Engineering Podcast
🏭 Backend Engineering Videos
💾 Database Engineering Videos
🏰 Load Balancing and Proxies Videos
🏛️ Software Archtiecture Videos
📩 Messaging Systems
Become a Member
Support me on PayPal
Stay Awesome,
Hussein
Комментарии