Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.4k views
in Technique[技术] by (71.8m points)

protobuf是用在微服务?一般app与服务器不用protobuf吧?

protobuf是用在微服务?一般app与服务器不用protobuf吧?

因为客户端语言太多 js java swift ...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

protobuf和语言一毛钱关系都没有好不好。
protobuf其实就是一个预定好结构体的buff,是为了提高数据体网络传输速度。各种语言解析和创建protobuf都是差不多的。JS、JAVA、OC使用起来都是很简单的,谷歌也提供了解析和创建的工具。像对网络要求很高的APP通常都会使用protobuf。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...