Skip to content

Load balancer writting in rust (not for production use)

Notifications You must be signed in to change notification settings

Limerio/loadbalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loadbalancer

Description

The goal of this project is to create a load balancer (like the name 👀) to understand some applications like nginx or traefik load balancer

the creation is only for my personal knowledge to understand rust and there ecosystem like the tokio runtime is better to use pingora loadbalancer for production service

Tasks

  • Install tokio runtime
  • Create a tcp server to accept request
  • Create a Loadbalancer implementation
  • Create bidirectional connection with tokio io
  • Add cli configuration
  • Use -p or --port to customize the port of the server (default: 8000)
  • Use --servers to add servers for load balancing
  • Create small script to create fake servers