commit | 09dcf3f9edfc5f56ee5b5c90223c47394a83eee8 | [log] [tgz] |
---|---|---|
author | Craig Tiller <ctiller@google.com> | Tue Apr 22 01:28:40 2025 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Apr 22 01:31:47 2025 |
tree | a99b894c84bd49c387e00c8cfc35d74edbf07ced | |
parent | 915b34cef53056bf5be0871ebb4413ae8b84f720 [diff] |
[subchannel] Add sharding for the global address pool (#39305) This is currently showing up as the primary source of contention in gRPC. Shard the map based on address (but don't consider channel args - doing so would be prohibitive), and split the lock between reader and writers. Leverage AVL so that readers can simply lock/ref/unlock/query. Writers instead lock, update, publish to the reader, and unlock. This makes reading incredibly cheap, and ensures that writing does not contend with readers. Closes #39305 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/39305 from ctiller:shard-gcp 8751fef038787e32ef0a95afbf8c0c7cd01dbc41 PiperOrigin-RevId: 749988098
gRPC is a modern, open source, high-performance remote procedure call (RPC) framework that can run anywhere. gRPC enables client and server applications to communicate transparently, and simplifies the building of connected systems.
To maximize usability, gRPC supports the standard method for adding dependencies to a user‘s chosen language (if there is one). In most languages, the gRPC runtime comes as a package available in a user’s language package manager.
For instructions on how to use the language-specific gRPC runtime for a project, please refer to these documents
src/cpp
directoryGrpc.Net.Client
, Grpc.AspNetCore.Server
grpc
go get google.golang.org/grpc
npm install @grpc/grpc-js
gRPC-ProtoRPC
dependency to podspecpecl install grpc
pip install grpcio
gem install grpc
Per-language quickstart guides and tutorials can be found in the documentation section on the grpc.io website. Code examples are available in the examples directory.
Precompiled bleeding-edge package builds of gRPC master
branch's HEAD
are uploaded daily to packages.grpc.io.
Contributions are welcome!
Please read How to contribute which will guide you through the entire workflow of how to build the source code, how to run the tests, and how to contribute changes to the gRPC codebase. The “How to contribute” document also contains info on how the contribution process works and contains best practices for creating contributions.
Sometimes things go wrong. Please check out the Troubleshooting guide if you are experiencing issues with gRPC.
See the Performance dashboard for performance numbers of master branch daily builds.
See gRPC Concepts
This repository contains source code for gRPC libraries implemented in multiple languages written on top of a shared C++ core library src/core.
Libraries in different languages may be in various states of development. We are seeking contributions for all of these libraries:
Language | Source |
---|---|
Shared C++ [core library] | src/core |
C++ | src/cpp |
Ruby | src/ruby |
Python | src/python |
PHP | src/php |
C# (core library based) | src/csharp |
Objective-C | src/objective-c |
Language | Source repo |
---|---|
Java | grpc-java |
Kotlin | grpc-kotlin |
Go | grpc-go |
NodeJS | grpc-node |
WebJS | grpc-web |
Dart | grpc-dart |
.NET (pure C# impl.) | grpc-dotnet |
Swift | grpc-swift |