Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Building a Non-Blocking Multi-Processes Web Server - Node JS Fork Example

Hussein Nasser via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a non-blocking multi-process web server using Node.js fork functionality in this 23-minute tutorial. Discover how to handle expensive processing requests without blocking other incoming requests by spinning off separate processes. Explore the implementation of an 'isPrime' web service, testing with various prime numbers to demonstrate processing times. Examine both blocking and non-blocking approaches, comparing their pros and cons. Gain insights into utilizing multi-core CPUs, de-coupling processes, and managing the increased complexity of multi-process applications. Follow along with provided source code examples and learn about query parameters, debugging challenges, and health checking between processes. Master techniques to create efficient, scalable web servers capable of handling computationally intensive tasks.

Syllabus

Intro
The code
Creating a new project
Creating a child process
Forking
Child process
Listen
Spin the child
Sending information
Sending back
Debugging
Testing
Problem
Pros and Cons

Taught by

Hussein Nasser

Reviews

Start your review of Building a Non-Blocking Multi-Processes Web Server - Node JS Fork Example

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.