Популярное

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

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

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

Топ запросов

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

Let's solve a most popular myth..!!! How does NodeJS handle multiple requests?

Автор: Krish Dinesh

Загружено: 2022-10-23

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

Описание:

There's a lot of confusion out there about concurrency and parallelism. Some people use the terms interchangeably, but they actually refer to two different things.

Concurrency is when two or more tasks can start, run, and complete in overlapping time periods. It doesn't necessarily mean that they'll be running at the same time, but they can be interleaved so that at any given time, there is always one task running.

Parallelism is when two or more tasks can truly run at the same time. In order for this to happen, the tasks must be able to run on separate CPUs or cores.

So why is it important to understand the difference? Concurrency is important because it allows you to structure your code in a way that makes efficient use of resources. Parallelism is important because it can dramatically improve performance by doing more than one thing at a time.

If you're writing code that will be running on a single CPU or core, then you need to be aware of concurrency issues. If your code will be running on multiple CPUs or cores, then you need to be aware of parallelism issues.

NodeJS is a single-threaded platform. This means that it can only process one request at a time. So, how does it handle multiple requests?

This event-driven model is very efficient and allows NodeJS to handle thousands of concurrent requests with ease.

#krishdinesh #nodejs #concurrency

Support to Channel: https://paypal.me/HelloKrish

Facebook:   / krish.dinesh.official  

Instagram :   / krish.dinesh.official  

twitter:   / krishantha   (@Krishantha)

Let's solve a most popular myth..!!! How does NodeJS handle multiple requests?

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

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

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

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

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

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

Execution context | Things every full stack developer must know but would have missed.

Execution context | Things every full stack developer must know but would have missed.

How to secure GraphQL services |GraphQL NestJS and JWT with AWS Cognito

How to secure GraphQL services |GraphQL NestJS and JWT with AWS Cognito

Event Loop от А до Я. Архитектура браузера и Node JS. Движки и рендер. Самое подробное видео

Event Loop от А до Я. Архитектура браузера и Node JS. Движки и рендер. Самое подробное видео

Docker: как никогда раньше | Полное руководство по контейнерам Видео Docker

Docker: как никогда раньше | Полное руководство по контейнерам Видео Docker

Event loop в Node.js

Event loop в Node.js

System Design: Concurrency Control in Distributed System | Optimistic & Pessimistic Concurrency Lock

System Design: Concurrency Control in Distributed System | Optimistic & Pessimistic Concurrency Lock

The Genius Behind Node.js Single Thread Model 🚀

The Genius Behind Node.js Single Thread Model 🚀

Angular 11   Getting Started

Angular 11 Getting Started

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

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

Война завершается / НАТО вступает в бой / Атака на остров

Война завершается / НАТО вступает в бой / Атака на остров

Concurrency vs Parallelism in Node.js

Concurrency vs Parallelism in Node.js

Bull & NestJS = Achieving Scale in Node.js

Bull & NestJS = Achieving Scale in Node.js

Node.js performance analytics and best practices | Sebastian Springer

Node.js performance analytics and best practices | Sebastian Springer

ASP.NET Core Crash Course - C# App in One Hour

ASP.NET Core Crash Course - C# App in One Hour

Guide to Kafka - part 02 (with Demo)| manual ack, heartbeat, batch process

Guide to Kafka - part 02 (with Demo)| manual ack, heartbeat, batch process

The Node.js Event Loop: Not So Single Threaded

The Node.js Event Loop: Not So Single Threaded

Интервью по проектированию системы Google: Design Spotify (с бывшим менеджером по маркетингу Google)

Интервью по проектированию системы Google: Design Spotify (с бывшим менеджером по маркетингу Google)

Глубокое погружение во внутреннее устройство Docker | Fork, Exec, Clone, OverlayFS и правда о кон...

Глубокое погружение во внутреннее устройство Docker | Fork, Exec, Clone, OverlayFS и правда о кон...

Non-blocking I/O and how Node uses it, in friendly terms: blocking vs async IO, CPU vs IO

Non-blocking I/O and how Node uses it, in friendly terms: blocking vs async IO, CPU vs IO

oAuth and OpenID connect | Most confusing topic in plain english

oAuth and OpenID connect | Most confusing topic in plain english

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



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



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