module XDS
xDS (Discovery Service) support for dynamic service discovery and configuration
Provides dynamic service discovery and load balancing for gRPC clients using the xDS (Discovery Service) protocol.
bootstrap = {
xds_servers: [server_uri: "xds-control-plane:18000"],
node: id: "client-1", cluster: "test"
}
xds_client = Async::GRPC::XDS::Client.new("myservice", bootstrap: bootstrap) stub = xds_client.stub(MyServiceInterface, "myservice") response = stub.say_hello(request)
Example: Basic usage
require "async/grpc/xds"