Talks & Conferences/JSConf Chile 2024
🇨🇱
JSConf Chile 2024
Santiago, Chile
Delivered

Multithread in Javascript with Web Workers

📅December 7, 2024
🕐12:30 PM
📍Santiago, Chile
View on jsconf.dev ↗

Abstract

JavaScript is often described as single-threaded, but that's only half the story. This session dives into web workers (the browser's built-in mechanism for true parallelism) and shows how to offload CPU-intensive work off the main thread without blocking the UI. We'll cover the fundamentals of concurrency vs. parallelism, walk through the JavaScript runtime model, and build real examples that demonstrate measurable performance gains.

§Topics Covered

  • 01JavaScript Runtime model: call stack, event loop, and task queue
  • 02Concurrency vs. parallelism: what they mean in a browser context
  • 03Web Workers API: setup, communication, and lifecycle
  • 04Shared memory with SharedArrayBuffer and Atomics
  • 05Practical patterns: image processing, data parsing, and heavy computation off the main thread
  • 06Pitfalls, debugging strategies, and browser support
Speaker
Juan Pablo Ortiz
Juan Pablo Ortiz
📍 Mexico City, Mexico

Self-motivated engineer and lifelong learner with 7+ years of industry experience starting at age 16. Specializes in DevOps, CI/CD pipelines, cloud architecture, cost optimization, and high-performance systems. Based in Mexico City for the past 5 years, originally from Guatemala.

Event Info
ConferenceJSConf Chile 2024
DateDecember 7, 2024
Time12:30 PM
LocationSantiago, Chile 🇨🇱
StatusDelivered
View on jsconf.dev ↗