0%

Rating of the video

Views: 22

Duration: 29:15

Published: a week ago

Concurrency in NodeJS - SingaproeJS

Speaker: Kok Chee Kean NodeJS has fantastic I/O performance for a seemingly single-threaded computing model due to its ability to handle such tasks asynchronously. But this fails for CPU-bound tasks that block threads. Before the current NodeJS LTS version, computationally heavy tasks could be farmed out to child processes, taking advantage of multicore CPUs, but processes do not share memory and inter-process communication adds significant overhead. Multithreading support landed in NodeJS as of v10.5.0, and is still flagged as an experimental API. We can now process tasks in separate threads with shared memory, but this power does not come for free. We'll compare the implementation and performance of a multithreaded NodeJS web server with that of some other industry solutions, and see how we can manage shared memory and orchestrate threads using buffers and atomics. Chee Kean is a software engineer from the Maltem Consulting Group and uses NodeJS extensively for pet projects. Event Page: https://www.meetup.com/Singapore-JS/events/259534284/ Produced by Engineers.SG Help us caption & translate this video! https://amara.org/v/oByD/