Weaving Webs of Workers
summary
Web Workers move heavy data fetching and transforms off the main thread by using blob-created dynamic workers, messageChannel port transfers, and promise-wrapped postMessage calls so tasks resolve like normal async functions. Practical tools demonstrated include Promise Worker, workerize, greenlet, and worker-box for injecting test stubs. Netflix Lumen performs almost all major data ops in workers; a Game of Life demo plus off-screen canvas rendering run smoothly, and tests treat worker exchanges as promises.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:20What are Web Workers
- 7:15Problems with Web Workers
- 9:15Using Promises
- 12:12Dynamic Workers
- 14:54Worker to Worker Communication
- 18:41Worker DOM
- 20:22Testing
- 23:20Conclusion
related talks
15mWeb Workers — Add Productivity to Your Web Applications
13mHow to Use Web Workers for Fun and Profit
53mLet the main thread breathe!
25mDemystifying Web Workers and Service Workers
28mKeep the Main Thread Free With Web Workers
23mMultithreading in Javascript
24mWeb Workers - Little Minions At Work for Optimizing Performance
31mLet the Main Thread Breathe!
