1. React
  2. React Day Berlin
  3. 2019
  4. Parallel computing in ReactJS

Parallel computing in ReactJS

Modern features like Web Workers, WebAssembly, Worklets, and Service Worker allow us to leverage multi-threaded computing to run tasks in parallel.

Majid Hajian at React Day Berlin 2019

User is working with your application, suddenly, UI freezes and probably, one of the CPU cores is burning! They cannot do anything. The only perception you can feel is as hot as a hell metal case of the laptop. Although this sounds like a horror movie, this is your application that cannot leverage modern APIs to lift heavy computation to a different thread where consequently user suffers the pain. Modern features like Web Workers, WebAssembly, Worklets, and Service Worker allow us to leverage multithreading computing to run tasks parallelly, which at the end, makes the user feel like in a rainbow paradise instead of a nightmare, even though JavaScript is a single-threaded programming language! In this session, I am going to show my experience running jobs in parallel on a React.Js application that will provide a pleasant user experience and exciting development.