storj / drpc

drpc is a lightweight, drop-in replacement for gRPC
MIT License
1.49k stars 49 forks source link

Client load balancing #49

Closed jashakimov closed 1 year ago

jashakimov commented 1 year ago

How I can change the client with resolver with list of sockets ?

Like original grpc.Dial(..., grpc.WithLoadBalancer(roundRobin))

zeebo commented 1 year ago

There's no special code to do client side load balancing in the repo.

That said, this should be possible to do externally in the same sort of way connection pooling can be 3rd party like go.bryk.io/pkg/net/drpc and go.arsenm.dev/drpc. If you write the package, I'll gladly link it in the README.