feat(xds): initial crate structure #2459
Merged
+51
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Initialize the crate scaffolding for xds-client.
Refs: #2444
Motivation
In recent years, the official gRPC implementations have been adding out-of-box service discovery and load-balancing capabilities via the xDS protocol. This enables gRPC users to build a service mesh without having to pay the overhead of proxies.
My team have been using gRPC and xDS massively in our production environment. For Rust, we have recently added xDS support to our internal Tonic-based gRPC framework, and it achieved significant performance improvements over the Proxy-based service mesh implementation. We’d like to contribute our xDS implementation to Tonic as well as the ongoing Rust gRPC effort, so that other Rust users can also benefit from the lightweight proxyless service mesh.
Solution
This PR includes only the scaffolding of the new crate
xds-client. While currently unpublished, the plan is to continue developing it along withtonicand the upcominggrpc-rust, so that eventually we'll have a working xDS implementation in both.