Session
Wait...React is multi-threaded?
We already know, "if some task takes time, promisify it!". But some tasks can be computation heavy and can take time to complete, so making them async is of no use since those have to be anyway get picked. Solution? Simple, multithreading! Yeah I know that React and in turn javascript is single-threaded but what if I told you that our life was a lie ever since? Enter web workers!
The web is single-threaded. This makes it increasingly hard to write smooth and responsive apps. Workers have a bad rep, but can be an important and useful tool in any web developer’s toolbelt for these kinds of problems. Let’s get up to speed on Workers on the Web!
This talk would dive into how we encounter some real-world scenarios with React like a search feature, and how web workers come to our rescue by helping us do intensive work in parallel, without blocking the main thread. We will also see how it relates to the brand new "Concurrent mode" feature, all of this with the fun of examples, Sounds interesting right? The talk reveals it all!
Key takeaways of the talk
1. An example of a simple product search showing why async js or concurrent mode cannot work
2. Demystifying web workers
3. How do they make this magic happen under the hood?
4. The Question of life - Aren't they the same as concurrent mode?
5. Comparing the same Product list app using web workers, diving deep into the performance
6. How one can easily misuse web workers and how to avoid it
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top