mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 09:02:15 +01:00
gRPC is currently getting formatted with two different clang-format implementations, and due to some weirdness they have different include file orderings. This change introduces clang-format configuration to ensure that the two systems align - it's *highly* expected that this will need some maintenance going forward as the two systems evolve. Closes #40905 PiperOrigin-RevId: 819606209
gRPC C++ CSM Hello World Example
This CSM example builds on the Hello World Example and changes the gRPC client and server to accept configuration from an xDS control plane and test SSA and CSM observability
Configuration
The client takes the following command-line arguments -
- target - By default, the client tries to connect to the xDS "xds:///helloworld:50051" and gRPC would use xDS to resolve this target and connect to the server backend. This can be overridden to change the target.
- cookie_name - session affinity cookie name. Defaults to "GSSA"
- delay_s - delay (in seconds) between the RPCs. Default value is 5
The server takes the following command-line arguments -
- port - Port on which the Hello World service is run. Defaults to 50051.
Building
From the gRPC workspace folder:
Client:
docker build -f examples/cpp/csm/Dockerfile.client
Server:
docker build -f examples/cpp/csm/Dockerfile.server
To push to a registry, add a tag to the image either by adding a -t flag to docker build command above or run:
docker image tag ${sha from build command above} ${tag}
And then push the tagged image using docker push