> ## Documentation Index
> Fetch the complete documentation index at: https://injectivelabs-docs-ai-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# gRPC 和 Protobuf

gRPC 是一个现代开源高性能远程过程调用 (RPC) 框架，可以在任何环境中运行。它可以高效地连接数据中心内和跨数据中心的服务，并提供可插拔的负载均衡、跟踪、健康检查和身份验证支持。它也适用于分布式计算的最后一英里，将设备、移动应用和浏览器连接到后端服务。

Protobuf 是 gRPC 最常用的 IDL（接口定义语言）。你基本上以 proto 文件的形式存储数据和函数契约。

```proto theme={null}
message Person {
    required string name = 1;
    required int32 id = 2;
    optional string email = 3;
}
```
