Running JS Promises concurrently - but not too many at once!

  Рет қаралды 5,159

Wes Bos

Wes Bos

Күн бұрын

Пікірлер: 16
@failist9570
@failist9570 11 ай бұрын
These concurrency primitives are built-in in Golang. Might be useful in such cases.
@thatzachary
@thatzachary 11 ай бұрын
This is really helpful with a problem im facing at work rn. thanks for the video.
@studiowebselect
@studiowebselect 11 ай бұрын
wow, its exactly what i need to develop tomorow. Calling a nodejs services and its tread lock because of computation. But awaiting for each response is not as fast as calling 5 at time.
@Aaronmoreno
@Aaronmoreno 11 ай бұрын
Great video. Also that shirt is 🔥
@nicolasgomez5207
@nicolasgomez5207 6 ай бұрын
wouldn't manual batching here work similarly?
@touchgrassw
@touchgrassw 10 ай бұрын
How to verification on narrow one
@wcmolina
@wcmolina 11 ай бұрын
That's awesome! I wonder what was your thought process in determining that 6 was the ideal number for you, was it a trial and error kinda thing?
@TaiGroot
@TaiGroot 11 ай бұрын
probably trial and error, but 6 or 7 makes sense for an 8 core machine, you need a main thread worker and then potentially a scheduler, it was probably a toss-up between 6 and 7
@amitkrgupta094
@amitkrgupta094 3 ай бұрын
It's a limit set by the Browser so it does not end up DDOSING the server it's sending request to. basically there is limit threshold set on HTTP layer on how many Client-server connection can run concurrently.
@dealloc
@dealloc 2 ай бұрын
​@@amitkrgupta094 Completely not related to this video and also completely false. There were no HTTP requests made, it was executing ffmpeg locally. HTTP does not have a limit on how many connections can run concurrently. Browsers determine their own limits both per FQDN and overall. This is purely to avoid congestion on your local computer and network, not to prevent DDoS. It's up to the web host to handle connections to prevent DDoS.
@touchgrassw
@touchgrassw 10 ай бұрын
Man there is a website narrow one on which we can be verified but only by javascript if u can teach me please bro its my dream if u will help me it will really help
@YuriiKratser
@YuriiKratser 11 ай бұрын
You are rock
@VanderleiRobertoMoretto
@VanderleiRobertoMoretto 11 ай бұрын
Dude, I don't know if you know, but the standard for screens nowadays is something close to 16:9! And most people watch this type of video on cell phones with compromised resolution! Here's a tip!
@smaransure2234
@smaransure2234 11 ай бұрын
i know how old you are
5 Async + Await Error Handling Strategies
18:11
Wes Bos
Рет қаралды 24 М.
Finally Fix Your Issues With JS/React Memory Management 😤
20:13
Jack Herrington
Рет қаралды 89 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Why did OpenAI move from Next.js to Remix?
10:41
Wes Bos
Рет қаралды 202 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
Error handling in TypeScript. How to avoid exceptions.
6:11
Beyond TypeScript
Рет қаралды 3,6 М.
This CSS Backlight Effect is so damn cool!
3:18
Wes Bos
Рет қаралды 16 М.
Only The Best Developers Understand How This Works
18:32
Web Dev Simplified
Рет қаралды 116 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 68 М.
I'm Ditching Try/Catch for Good!
10:29
Web Dev Simplified
Рет қаралды 193 М.
Custom dropdowns just got a whole lot easier (finally!)
4:33
Stop using position absolute - use CSS Grid stacking!
4:42
A Better Way to fetch() in JS
1:54
Steve (Builder.io)
Рет қаралды 12 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН