Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

5. Build Your Own Load Balancer:

Description

Application layer load balancer that distributes client requests efficiently across multiple servers. Basic solution that answers all the steps as outlined in the project requirements.

Usage:

Initialize the project with npm link

  1. Start-up the BE servers
% be <port>
 # available ports: 8080, 8081 and 8082
  1. Start-up the load balancer
% lb <interval>
 # set periodic healthcheck interval 
  1. Make request to load balancer
% curl http://localhost:3000/
  1. Make request in parallel
% curl --parallel --parallel-immediate --parallel-max 3 --config urls.txt