Categorygithub.com/addi-11/system-design20A-load-balancer-consistenthash
package
0.0.0-20241212195640-2e19e05a42f5
Repository: https://github.com/addi-11/system-design.git
Documentation: pkg.go.dev

# README

Load Balancer with Consistent Hashing

  1. Setup: 4 Origin Servers and 1 load balancer for routing requests to the origin servers.

  2. Routing Logic: Use consistent hashing. Storing servers in the hashspace using their name. We store the keys on the rightmost node.
    Sample Implementation

  3. Data Handling:

    • Simulate saving data to the appropriate origin server based on the hashed key.
  4. HTML Form in Router: Created a web-based interface to:

    • Submit keys for routing and saving.
    • View server health.
    • Add or remove origin servers dynamically.
  5. Health Monitoring: Display load on each origin server, at :8080/health.

  6. Data Migration on Server Removal: TODO

Form to enter data alt text

Health Server :8080/health alt text

Adding New Server F, and sending data alt text

Remove Server A, and migrate data alt text

Logs alt text

# Structs

No description provided by the author
No description provided by the author
No description provided by the author