Skip to content

Shubhcyb2611/loadBalancer-queue-manage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loadBalancer-queue-manage

Dynamic Load Balancer

Description: This project implements a dynamic load balancer using Express.js in Node.js. It includes components for routing incoming requests to different API endpoints based on their type, payload size, and speed, along with queue management strategies for efficient request handling.

Features:

  • Dynamic routing based on API type, payload size, and speed.
  • Queue management with various strategies (e.g., FIFO, priority-based, round-robin).
  • Middleware for logging request and response payloads.
  • Load balancer component for distributing incoming requests to the queue manager.
  • Detailed logging and metrics for analysis and optimization.

Setup:

  1. Clone the repository.
  2. Install dependencies.
  3. Configure environment variables in the .env file.
  4. Run the application.

Usage:

  • Send requests to the load balancer endpoint with payload specifying the type and speed.
  • Monitor logs and metrics for analysis and optimization.

Technologies:

  • Node.js
  • Express.js
  • Pino
  • JavaScript