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下编译安装gRPC的过程。
零、基础
操作系统: Windows 10
编译环境:Visual Studio 2019
CMake: 3.24.2
一、编译安装
1. 下载代码
git clone -b https://github.com/grpc/grpc
git checkout
git submodule update --init
2. 构建项目
3. 编译安装
网络资料
gRPChttps://grpc.io/
GitHub: gRPChttps://github.com/grpc/grpc