tsloughter / grpcbox

Erlang grpc on chatterbox
Apache License 2.0
139 stars 62 forks source link

Add hash and direct pick strategies #100

Open sevenhe1205 opened 1 year ago

sevenhe1205 commented 1 year ago

Add hash and direct pick strategies

The grpcbox_client get_channel function adds support for hash and direct strategies gproc_pool:pick_worker uses the hash/direct policy. Options do not contain the Key parameter. gproc_pool:pick_worker uses the round_robin/random strategy

tsloughter commented 1 year ago

The reason I didn't have these is they aren't in the grpc LB spec https://github.com/grpc/grpc/blob/master/doc/load-balancing.md#load-balancing-policies

But maybe that shouldn't stop us...