Module: Async::GRPC::XDS

Defined in:
lib/async/grpc/xds.rb,
lib/async/grpc/xds/client.rb,
lib/async/grpc/xds/server.rb,
lib/async/grpc/xds/context.rb,
lib/async/grpc/xds/service.rb,
lib/async/grpc/xds/version.rb,
lib/async/grpc/xds/resources.rb,
lib/async/grpc/xds/ads_stream.rb,
lib/async/grpc/xds/control_plane.rb,
lib/async/grpc/xds/load_balancer.rb,
lib/async/grpc/xds/health_checker.rb,
lib/async/grpc/xds/resource_cache.rb,
lib/async/grpc/xds/discovery_client.rb,
lib/async/grpc/xds/resource_builder.rb

Overview

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.

Examples:

Basic usage

require "async/grpc/xds"

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)

Defined Under Namespace

Modules: ResourceBuilder, Resources Classes: ADSStream, Client, Context, ControlPlane, DiscoveryClient, HealthChecker, LoadBalancer, ResourceCache, Server, Service

Constant Summary collapse

VERSION =
"0.0.1"