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
-
Setup: 4 Origin Servers and 1 load balancer for routing requests to the origin servers.
-
Routing Logic: Use consistent hashing. Storing servers in the hashspace using their name. We store the keys on the rightmost node.
Sample Implementation -
Data Handling:
- Simulate saving data to the appropriate origin server based on the hashed key.
-
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.
-
Health Monitoring: Display load on each origin server, at
:8080/health
. -
Data Migration on Server Removal: TODO
Form to enter data
Health Server :8080/health
Adding New Server F
, and sending data
Remove Server A
, and migrate data
Logs
# Structs
No description provided by the author
No description provided by the author
No description provided by the author