Skip to content

grpc balancer, inspired by built-in Round Robin balancer

License

Notifications You must be signed in to change notification settings

evolsnow/balance

Repository files navigation

balance

DHT and Least-Connections load balance for grpc

Basic Usage

b, _ := balance.NewDHT("http://etcd:2379")
//b, _ := balance.NewLeastConn("http://etcd:2379")
conn, _ := grpc.Dial("service-name", grpc.WithBalancer(b))

Full Example

server

client

About

grpc balancer, inspired by built-in Round Robin balancer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published