GRPC + json 如何实现?

查看 43|回复 1
作者:chaleaochexist   
官网是这么说的
Can I use gRPC with my favorite data format (JSON, Protobuf, Thrift, XML) ?
Yes. gRPC is designed to be extensible to support multiple content types. The initial release contains support for Protobuf and with external support for other content types such as FlatBuffers and Thrift, at varying levels of maturity
有大佬给个例子吗?
我实在是想不出来.且 ChatGPT 也不会...
不是 http/json 转 GRPC 啊
是 GRPC+JSON

如果你问为什么. 因为我要对接一个系统, 那个系统只提供两种序列化方式一种是 json 一种是 gob...
那个对接的系统文档也有限 我还没研究明白.
如果我的需求不可能实现也可以告诉我. 我告诉我老板实现不了.

grpc, JSON, Support, thrift

aw2350   
我的理解 grpc 用自己的 protoc 序列化协议,压缩了最终生成的 json 数据,你们对接系统,他们肯定得给你 proto 文件吧?
您需要登录后才可以回帖 登录 | 立即注册

返回顶部