云原生CAx软件:gRPC

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. 安装依赖

  下载Go 1.20.4开发包。

  2. 下载代码

git clone https://github.com/grpc/grpc
cd ./grpc/
git checkout -b v1.55.0 v1.55.0
git submodule update --init

  3. 构建项目

打开cmake-gui,完成以下配置,然后构建项目

Where si the source codeD:/YouQuan/CaeFrameworks/gRPC/grpc
Where to build the binariesD:/YouQuan/CaeFrameworks/gRPC/BUILD
CMAKE_INSTALL_PREFIXD:/YouQuan/CaeFrameworks/gRPC/INSTALL
GO_EXECUTABLEC:/Program Files/Go/bin/go.exe
CMAKE_ASM_NASM_COMPILERC:/Program Files/Go/pkg/tool/windows_amd64/asm.exe

  4. 编译安装

  打开构建生成的"grpc.sln",构建"ALL_BUILD"完成编译,构建"INSTALL"完成安装。

网络资料

gRPChttps://grpc.io/

GitHub: gRPChttps://github.com/grpc/grpc

Gohttps://golang.google.cn/

  • 7
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值