gRPC是Google基于HTTP/2协议开发的一套开源、跨平台的高性能RPC框架,可用于连接微服务架构内的各种服务,亦可以连接客户端与后端服务。
Ref. from gRPC
gRPC is a modern open source high performance Remote Procedure Call (RPC) framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking and authentication. It is also applicable in last mile of distributed computing to connect devices, mobile applications and browsers to backend services.
Qt 6.5 LTS版本已经引入Qt GRPC、Qt Protobuf用于支持gRPC;Nginx 1.13.10新增了对gRPC的原生支持。
一、编译安装
本部分记录在Windows 10下使用Visual Studio 2019编译安装gRPC的过程。
1. 下载代码
git clone https://github.com/grpc/grpc
git checkout -b v1.9.x origin/v1.9.x
git submodule update --init
2. 构建项目
3. 编译安装
网络资料
gRPChttps://grpc.io/
GitHub: gRPChttps://github.com/grpc/grpc