Weaving Webs of Workers | Trent Willis

4 years ago

Speakers
accessible for deaf/hearing-impaired: sign language interpreter (DGS) visible for complete duration + captions // slide collection https://buff.ly/2YLcPlA // License: CC BY-ND https://buff.ly/2TN3XIo The single-threaded nature of JavaScript can make handling lots of data or complex processing in your web application difficult to balance with providing a good user experience. Web Workers promise to help us find that balance and let us build fast and responsive applications even when doing heavy work, but the APIs for working with them leave much to be desired. In this talk, we’ll explore useful patterns for making Web Workers easier to work with and highlight effective ways to communicate between workers, handle complex data processing off the main thread, and test and debug them. What are the key takeaways from this talk? - How to use Web Workers to handle complex data processing off the main thread - Patterns and libraries to make working with Web Workers easier - Strategies for testing and debugging Web Workers - Examples of Web Workers being used in real projects Resources: - Web Workers spec: www.w3.org/TR/workers/ - Promise Worker: github.com/nolanlawson/promise-worker - Workerize: github.com/developit/workerize - Greenlet: github.com/developit/greenlet - Lumen: bit.ly/netflix-lumen - Worker DOM: github.com/ampproject/worker-dom - Game of Life Demo: canvas-of-life.glitch.me - Worker Box: github.com/trentmwillis/worker-box Trent Willis (@trentmwillis) is a Senior UI Engineer at Netflix, where he builds tools and applications to give others insight into their applications. He is the project lead for the QUnit testing framework and contributor to various Open Source projects. Sign up for our Newsletter to receive preview-links every other Thursday starting 2019, April 04: https://js-kongress.us13.list-manage.com/subscribe/post?u=9c3420f6b5269855b07422fb5&id=f490a69da5
Soyez le premier à laisser un commentaire