Update loadbalancing.md (#29226)

* Update loadbalancing.md

* Update aspnetcore/grpc/loadbalancing.md

* Update aspnetcore/grpc/loadbalancing.md
pull/29225/head
James Newton-King 2023-05-11 03:23:17 +08:00 committed by GitHub
parent 51da32d37e
commit 952e58990d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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`.