O'Reilly logo

JavaScript Concurrency by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Evented IO with NodeJS

NodeJS leverages V8, the Chrome JavaScript engine, to provide a high-performance server environment. Node isn't limited in scope to just web servers—this is just the original problem space in which it was conceived. In fact, it was created to solve some tough concurrency problems faced by web programmers everywhere.

The aim of this chapter is to explain how Node handles concurrency, and how we need to program our NodeJS code to take full advantage of this environment. The most obvious difference between Node and other web server environments is that it uses a single thread to handle processing requests and relies on evented IO for high levels of concurrency. We'll then dig into why the evented IO approach to concurrency ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required