gRPC is a "general RPC framework" which uses ProtoBuffer to serialize and deserialize while the net/rpc package seems could do "nearly" the same thing with encoding/gob and both are under the umbrella of Google.
So what's the difference between them? What pros and cons dose choosing one of them have?
dtw52353
2016-08-19 08:09 浏览 785
已采纳
Golang的net / rpc软件包和gRPC框架有什么区别?
图片转代码服务由CSDN问答提供 功能建议
gRPC < / a>是一个“通用RPC框架”,它使用 ProtoBuffer 进行序列化和反序列化,而< 一个href =“ https://golang.org/pkg/net/rpc/” rel =“ noreferrer”> net / rpc 包似乎可以对 encoding / gob 都在Google的保护下。
它们之间有什么区别? 选择其中之一有哪些利弊? p>
div>
- 写回答
- 好问题 提建议
- 追加酬金
- 关注问题
- 分享
- 邀请回答