Concurrency in JavaScript (Node.js)
300 pages
English
PDF
4.5

Concurrency in JavaScript (Node.js)

Concurrency in JavaScript (Node.js)

Author:

Year:

Summary:

The book "Concurrency in JavaScript (Node.js)" is a practical guide to building high-performance and responsive applications in Node.js. In today's world, where data processing speed and scalability are critical, understanding the mechanisms of concurrent code execution is becoming a mandatory skill for every developer.



The book is intended for:

  • JavaScript developers transitioning to server-side development with Node.js
  • Developers facing performance issues in their applications
  • Programmers wanting to deeply understand the Event Loop, promises, and async/await
  • Team leads and architects designing scalable systems


From this book you will learn:

  • How the Event Loop works and what phases it goes through
  • The difference between synchronous, asynchronous, and parallel code execution
  • How to use worker_threads for true multithreading
  • Principles of clustering and load balancing across multiple CPU cores
  • Ways to handle a large number of concurrent requests without blocking
  • How to avoid race conditions and deadlocks in asynchronous code
  • Specifics of working with I/O streams and the file system
  • Comparison of concurrency approaches: callbacks, promises, async/await


Special attention is given to practical examples and real-world production scenarios. You will learn to design an architecture that withstands high loads, efficiently uses system resources, and remains readable and maintainable.



The book is suitable both for beginners just starting with Node.js and for experienced developers wanting to systematize their knowledge of concurrency. All code examples are accompanied by detailed comments and explanations.



After reading, you will be able to confidently write multithreaded applications, optimize server response times, and avoid common mistakes associated with asynchronous programming.

Recommendations