Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

When is NodeJS Single-Threaded and when is it Multi-Threaded?

Автор: Hussein Nasser

Загружено: 2021-03-23

Просмотров: 77841

Описание:

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
process.env.UV_THREADPOOL_SIZE=1

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

https://nodejs.org/en/docs/guides/don...

http://docs.libuv.org/en/v1.x/index.html

🎙️Listen to the Backend Engineering Podcast
https://husseinnasser.com/podcast

🏭 Backend Engineering Videos
https://backend.husseinnasser.com

💾 Database Engineering Videos
   • Database Engineering  

🏰 Load Balancing and Proxies Videos
   • Proxies  

🏛️ Software Archtiecture Videos
   • Software Architecture  

📩 Messaging Systems
   • Message Queues & PubSub Systems  

Become a Member
   / @hnasr  

Support me on PayPal
https://bit.ly/33ENps4


Stay Awesome,
Hussein

When is NodeJS Single-Threaded and when is it Multi-Threaded?

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

What are web servers and how do they work (with examples httpd and nodejs)

What are web servers and how do they work (with examples httpd and nodejs)

The Node.js Event Loop: Not So Single Threaded

The Node.js Event Loop: Not So Single Threaded

The Genius Behind Node.js Single Thread Model 🚀

The Genius Behind Node.js Single Thread Model 🚀

Browser Caching Best Practices,  When to use no-cache vs max-age without breaking your site

Browser Caching Best Practices, When to use no-cache vs max-age without breaking your site

When should you shard your database?

When should you shard your database?

RAG | ВСЁ, что тебе нужно знать (+ 11 Продвинутых стратегий)

RAG | ВСЁ, что тебе нужно знать (+ 11 Продвинутых стратегий)

Подождите... ЧТО умеет Nginx?!

Подождите... ЧТО умеет Nginx?!

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

Лучший Гайд по Kafka для Начинающих За 1 Час

Лучший Гайд по Kafka для Начинающих За 1 Час

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

4 Hours Chopin for Studying, Concentration & Relaxation

4 Hours Chopin for Studying, Concentration & Relaxation

Database Indexing Explained (with PostgreSQL)

Database Indexing Explained (with PostgreSQL)

Publish-Subscribe Pattern vs Message Queues vs Request Response (Detailed Discussions with Examples)

Publish-Subscribe Pattern vs Message Queues vs Request Response (Detailed Discussions with Examples)

JWT - JSON Web Token Crash Course (NodeJS & Postgres)

JWT - JSON Web Token Crash Course (NodeJS & Postgres)

WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more

WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more

ДОКАЗАТЕЛЬСТВО JavaScript — многопоточный язык

ДОКАЗАТЕЛЬСТВО JavaScript — многопоточный язык

Introduction to libuv: What's a Unicorn Velociraptor? - Colin Ihrig, Joyent

Introduction to libuv: What's a Unicorn Velociraptor? - Colin Ihrig, Joyent

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

Scaling Websockets with Redis, HAProxy and Node JS - High-availability Group Chat Application

Scaling Websockets with Redis, HAProxy and Node JS - High-availability Group Chat Application

Understanding and Debugging Memory Leaks in Your Node.js Applications [I]

Understanding and Debugging Memory Leaks in Your Node.js Applications [I]

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]