Update loadbalancing.md (#29226)
* Update loadbalancing.md * Update aspnetcore/grpc/loadbalancing.md * Update aspnetcore/grpc/loadbalancing.mdpull/29225/head
parent
51da32d37e
commit
952e58990d
|
@ -66,7 +66,10 @@ var response = await client.SayHelloAsync(new HelloRequest { Name = "world" });
|
|||
|
||||
The preceding code:
|
||||
|
||||
* Configures the created channel with the address `dns:///my-example-host`. The `dns` scheme maps to `DnsResolverFactory`.
|
||||
* Configures the created channel with the address `dns:///my-example-host`.
|
||||
* The `dns` scheme maps to `DnsResolverFactory`.
|
||||
* `my-example-host` is the hostname to resolve.
|
||||
* No port is specified in the address, so gRPC calls are sent to port 80. This is the default port for unsecured channels. A port can optionally be specified after the hostname. For example, `dns:///my-example-host:8080` configures gRPC calls to be sent to port 8080.
|
||||
* Doesn't specify a load balancer. The channel defaults to a pick first load balancer.
|
||||
* Starts the gRPC call `SayHello`:
|
||||
* DNS resolver gets addresses for the hostname `my-example-host`.
|
||||
|
|
Loading…
Reference in New Issue