Web Workers Explained

  Рет қаралды 23,617

Awesome

Awesome

Күн бұрын

How and why to use Web Workers.
💬 Topics:
- What are web workers?
- The JavaScript event loop, queue and stack;
- JavaScript single threaded vs. multi threaded;
- Blocking the UI thread;
#javascript
Patreon: / awesomeclub

Пікірлер: 72
@user-zl5gi8sv7u
@user-zl5gi8sv7u 8 ай бұрын
Oh god another fireship rip off
@awesome-coding
@awesome-coding 8 ай бұрын
Is it the best rip off though?
@user-my6un7sq6i
@user-my6un7sq6i 7 ай бұрын
that was a great explanation, thanks@@awesome-coding
@awesome-coding
@awesome-coding 7 ай бұрын
@@user-my6un7sq6i Glad it was helpful!
@drfeinstein
@drfeinstein 6 ай бұрын
Spicy European flavor Fireship
@namahshrestha3226
@namahshrestha3226 3 ай бұрын
@@awesome-coding Best one yet.
@UsernameUsername0000
@UsernameUsername0000 11 ай бұрын
The way you’ve just managed to explain a topic from scratch without making any part of it cryptic is something this space needs!
@awesome-coding
@awesome-coding 11 ай бұрын
Thank you! I'm glad you found this useful!
@TheEletricboy
@TheEletricboy 3 ай бұрын
Fireship clone or not, great job at explaining this subject in a concise manner with real world use-cases and easy to follow reactive visuals. We need more creators like you
@awesome-coding
@awesome-coding 3 ай бұрын
Much appreciated!
@JaskierRezzo
@JaskierRezzo 11 ай бұрын
I'm really loving these short concept videos about things we all know because we have heard it somewhere and everyone understand the bare-bones definition of but rarely the much needed details! Another banger video.
@awesome-coding
@awesome-coding 11 ай бұрын
Glad you like them! That's the main reason I'm doing these videos. Too often I'm like - "yea, I know what that is", but then, when I'm really thinking about it I realise I don't fully understand some of the basics.
@damilolaadeyemi8383
@damilolaadeyemi8383 5 ай бұрын
8 years experience and damn, this is the best explanation of non-blocking I've seen
@awesome-coding
@awesome-coding 5 ай бұрын
Thank you! I'm glad you found it useful!
@ybenjamin
@ybenjamin 11 ай бұрын
Great work on the presentation, using a real world example always improves the understanding!
@awesome-coding
@awesome-coding 11 ай бұрын
Thank you for your feedback!
@markyer3996
@markyer3996 11 ай бұрын
Another awesome video! Great visuals, too
@awesome-coding
@awesome-coding 11 ай бұрын
Thank you! Cheers!
@AveN7ers
@AveN7ers 11 ай бұрын
Great video! This is an excellent introduction to workers
@awesome-coding
@awesome-coding 11 ай бұрын
Glad you think so! Thank you!
@rizwank658
@rizwank658 11 ай бұрын
Hey Great Video! Finally I understood the proper use-case for this. Thanks!
@awesome-coding
@awesome-coding 11 ай бұрын
Glad it helped!
@krateskim4169
@krateskim4169 11 ай бұрын
Awesome video, waiting for next one
@awesome-coding
@awesome-coding 11 ай бұрын
More to come! Thank you!
@6little6fang6
@6little6fang6 11 ай бұрын
Thanks for these beacons of knowledge.
@aghileslounis
@aghileslounis 11 ай бұрын
short and excellent
@yuhanlian991
@yuhanlian991 11 ай бұрын
what a hidden gem, thank you so much!
@awesome-coding
@awesome-coding 11 ай бұрын
Glad you like it!
@Aksht-h9u
@Aksht-h9u 26 күн бұрын
This was awesome explanation
@renatolins4670
@renatolins4670 4 ай бұрын
That helped me, thanks for such an awesome and practical explanation!
@awesome-coding
@awesome-coding 4 ай бұрын
Glad it helped!
@couragic
@couragic 11 ай бұрын
0:40 I guess this visualization of current stack execution can confuse some people. You have several functions in queue and in the stack and it looks like node can pick several functions from queue and execute them sequentially at once (at one loop cycle). But the stack is actually just one function from queue.
@awesome-coding
@awesome-coding 11 ай бұрын
This is a very good point! Thank you for mentioning it!
@ozzyfromspace
@ozzyfromspace 11 ай бұрын
@@awesome-coding your illustration is fine. sometimes a function will call other functions, or even itself recursively. The call stack can hold other execution context's in this way. Granted, I understand @couragic's valid concern about confusing some people. Overall, nice video! Best wishes to the both of you.
@MeesvanStiphout
@MeesvanStiphout 2 ай бұрын
Clear explanation! thanks so much!
@awesome-coding
@awesome-coding 2 ай бұрын
Glad it was helpful!
@JohnSmithhh
@JohnSmithhh 5 ай бұрын
Thanks! Good explanation
@awesome-coding
@awesome-coding 5 ай бұрын
Glad it was helpful!
@emongtindero
@emongtindero 11 ай бұрын
Enlightenment, thanks
@awesome-coding
@awesome-coding 11 ай бұрын
Glad you enjoyed it!
@the3dcapybara
@the3dcapybara 9 ай бұрын
Thanks, it was pretty good explanation!
@awesome-coding
@awesome-coding 9 ай бұрын
Glad it was helpful!
@ashleyfreebush
@ashleyfreebush 11 ай бұрын
This type of content is the best
@awesome-coding
@awesome-coding 11 ай бұрын
Thank you!
@pourlamouvance
@pourlamouvance 11 ай бұрын
Thanks!
@RedStone576
@RedStone576 7 ай бұрын
very nice
@pratiknaik261
@pratiknaik261 9 ай бұрын
Nice and short
@anantawijaya1594
@anantawijaya1594 8 ай бұрын
what a nice video
@awesome-coding
@awesome-coding 8 ай бұрын
Thanks!
@navidghasemi9685
@navidghasemi9685 11 ай бұрын
great
@Ahmed-yr8wb
@Ahmed-yr8wb 7 ай бұрын
YOU ARE SO FUCKING AWESOME, THANK YOUUUUUUUUUUUUUUUUU
@awesome-coding
@awesome-coding 7 ай бұрын
Glad you found this useful! ✌️
@uhhHandle
@uhhHandle 11 ай бұрын
Yay
@whatsanimesh
@whatsanimesh 8 күн бұрын
What do you recommend Web Workers or WASM ?
@awesome-coding
@awesome-coding 8 күн бұрын
It depends on the use case. I'd go with web workers if possible because of the simplicity. WASM usually implies adding another language in the mix.
@emondoraon
@emondoraon 11 ай бұрын
How about async?
@awesome-coding
@awesome-coding 11 ай бұрын
Async / await is just sintactic sugar on top of the Promise API - so this is just the usual Event Loop.
@dragosudrea12
@dragosudrea12 11 ай бұрын
Can you make a video about web coponents ?
@awesome-coding
@awesome-coding 11 ай бұрын
Hey! I did a Web Components related video recently which might be of interest to you - kzfaq.info/get/bejne/gN9gl7Cql9eofaM.html Also, I can break down web components in a separate video for certain! Thanks for the suggestion!
@dragosudrea12
@dragosudrea12 11 ай бұрын
@@awesome-coding wow thank you, I didn't expected a response
@AlexanderSuraphel
@AlexanderSuraphel 11 ай бұрын
Like #42 :)
@awesome-coding
@awesome-coding 11 ай бұрын
the answer to the Ultimate Question of life, the universe and pretty much everything
@AlexanderSuraphel
@AlexanderSuraphel 11 ай бұрын
@@awesome-coding :) took 7.5 milliion years to find out!
@awesome-coding
@awesome-coding 11 ай бұрын
@@AlexanderSuraphel That's like 10 seconds in JavaScript time!
@gauravsharma3444
@gauravsharma3444 11 ай бұрын
Just JavaScript being javascript. Mf, someone tell me is it single threaded or not.
@tylerarrigoni7700
@tylerarrigoni7700 3 ай бұрын
Nicely done
@awesome-coding
@awesome-coding 3 ай бұрын
Thank you! Cheers!
JavaScript Web Workers Explained
12:52
DevSage
Рет қаралды 92 М.
The Simplest Tech Stack
9:38
Awesome
Рет қаралды 67 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 23 МЛН
PROOF JavaScript is a Multi-Threaded language
8:21
Beyond Fireship
Рет қаралды 272 М.
The Right Way To Build REST APIs
10:07
Awesome
Рет қаралды 85 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 530 М.
#1 DOM в WebWorker? Как? - Многопоточность и DOM
18:29
How GitHub's Database Self-Destructed in 43 Seconds
12:04
Kevin Fang
Рет қаралды 968 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 638 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 177 М.
🎣 Custom Hooks Meet Web Workers: Transform Your React Apps
12:30
Web Workers in Action - Performance Boost for Web Applications (2023)
22:51
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 23 МЛН