👨💻Цикл событий JavaScript простым языком — [14:38]
Наверняка многие задумывались, как NodeJS способен обрабатывать такие серьёзные нагрузки, учитывая, что он работает всего в одном потоке. На самом деле, правда заключается в том, что большая часть времени, которую сервер тратит на обработку одного клиента, — это ожидание. Либо ожидание ответа от клиента, либо сама отправка запроса через сеть.
NodeJS умеет делать все эти операции ожидания неблокирующими. То есть, пока он ждёт завершения какого-то системного вызова или завершения операции с сетью, он может обрабатывать другие соединения и благодаря этому не проигрывать, а порой даже выигрывать серверы, написанные в пусть и многопоточном, но блокирующем стиле.
В этом видео вы узнаете, как это работает и почему это очень круто.
#js#nodejs
R✨e✨m✨e✨m✨b✨e✨r
Never forget
- Good luck, Have Fun, Don't Die.. 2026 Film putting it right in our faces. Real eyes Realize Real Lies. ..
,•°°•ꨄ•°°•,
✨🌞✨
’•✧•’
( Big Homie )¯\_(ツ)_/¯
All the world is their stage. 🎬
𝐄 𝐍 𝐉 𝐎 𝐘 | 🌟🌟🌿
#Wisdom
It's not what we bought but what we built
It's not what we got but what we shared
It's not our competence but our characters
And it's not our success but our significance
Live a life that matters. Live a life of love.
Unknown
#wisdom
@quietworld🍃
The day the child realizes that all adults are imperfect he becomes an adolescent; the day he forgives them, he becomes an adult; the day he forgives himself he becomes wise.
– Alden N –
#wisdom
@quietworld🍃
We judge people by what they see and hear, but we do not see the qualities that are hidden in their hearts. Avoid suspicion. Let's not say bad things about each other. Let us not gossip or insult.
#wisdom
We can control the words we say, but we can't control what people understand.
We can control what we say to people, but we can't control what other people say to others about us.
That's normal and just a part of life so be it. I'm at peace when I control only what I can control and refuse to take part in things that I cannot control especially those which do not matter at all. ☺️✨🦋
#thoughts#wisdom
@quietworld🍃
To live only for some future goal is shallow. It’s the sides of the mountain that sustain life, not the top.
– Robert M. Prisig
#life#wisdom
@quietworld🍃