Understanding (simplified) server code execution
A disclaimer is required: this chapter omits some details, is a little loose with some explanations, and blurs the lines between some fine details.
The topics covered in this chapter are complex, with endless nuance and detail and terminology that means different things on different platforms. And so, with brevity in mind, I have focused on what’s important for JavaScript web application development, even though that means glossing over some topics.
Concurrency is a genuinely fascinating subject, and it can be a rewarding area of research. But before digging into the details, bear in mind that to be an effective JavaScript developer, you only need a basic overview of concurrency – like the one in this chapter.
Understanding multi-threaded execution
Server-side web applications need to be able to process many HTTP requests simultaneously to scale up economically so that a small amount of server capacity...