example:
grpc::ChannelArguments args;
args.SetLoadBalancingPolicyName("round_robin");
auto channel =
grpc::CreateCustomChannel("ipv4:///127.0.0.1:50051,127.0.0.1:50052",
grpc::InsecureChannelCredentials(), args);
So how to add a new server address during use。for example:127.0.0.1:50051
How to register a balancer like golang. How You can control PickResult
during use and register your own load balancing algorithm
for
example:https://github.com/go-kratos/kratos/blob/main/transport/grpc/balancer.go
Are there any c++ examples?
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/e922fe8d-d439-40ab-b381-1d4c6a6150dcn%40googlegroups.com.