ardatosun / loadbalancer

Simple Go Load Balancer
MIT License
5 stars 4 forks source link

Implement Latency Measurement in Health Check Function #9

Closed ohyesgocool closed 1 week ago

ohyesgocool commented 1 week ago

Enhance our health check function to measure and track the latency of each server in our load balancer. This feature will provide valuable insights into server performance and also can be used to improve load balancing decisions.

Server Object Update:

Modify the Server struct to include a field for storing latency information. This could be an average latency or a rolling window of recent measurements.

reference

ohyesgocool commented 1 week ago

If the enhancement sounds okay , you can assign it to me. Thanks ! @ardatosun

ardatosun commented 1 week ago

Sounds good! I was thinking of extending the load balancing strategies and this enhancement would be useful when doing that (e.g. least latency instead of just round-robin)

assigned now @ohyesgocool