I implemented a load balancer in javascript so that calls do not overload any of the servers. For this I used the Round Robin algorithm for load balancing.
To install dependencies:
npm install
To start alpha server:
npm run start:server:alpha
To start beta server:
npm run start:server:beta
To start beta server:
npm run start:lb
To make some calls:
curl -k https://localhost/app