Skip to content

This Node.js application creates a simple load balancer using HTTP proxy to distribute incoming requests among multiple servers. It randomly selects a server from a predefined list of servers to forward the request to, achieving basic load balancing.

Notifications You must be signed in to change notification settings

ranjeet-zet/LoadBalancer-NodeJs-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Load Balancer with HTTP Proxy

This Node.js application creates a simple load balancer using HTTP proxy to distribute incoming requests among multiple servers. It randomly selects a server from a predefined list of servers to forward the request to, achieving basic load balancing.

Getting Started

Follow these instructions to set up and run the load balancer on your local machine.

Prerequisites

Make sure you have Node.js installed on your machine. You can download and install it from here.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/ranjeetmasaischool/LoadBalancer-NodeJs-main
  2. Navigate to the project directory:

    cd project-directory
  3. Install dependencies:

    npm install

Usage

To start the load balancer, run the following command:

npm start

About

This Node.js application creates a simple load balancer using HTTP proxy to distribute incoming requests among multiple servers. It randomly selects a server from a predefined list of servers to forward the request to, achieving basic load balancing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published