Thrift 与 Protocol Buffers 的最大区别? [英] Biggest differences of Thrift vs Protocol Buffers?
本文介绍了Thrift 与 Protocol Buffers 的最大区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Apache Thrift 与 Google 的协议缓冲区?
推荐答案
它们都提供了许多相同的功能;但是,有一些差异:
They both offer many of the same features; however, there are some differences:
- Thrift 支持例外"
- Protocol Buffers 有更好的文档/示例
- Thrift 有一个内置的
Set
类型 - 协议缓冲区允许扩展"——您可以扩展外部协议以添加额外的字段,同时仍然允许外部代码对值进行操作.在 Thrift 中没有办法做到这一点
- 我发现协议缓冲区更容易阅读
基本上,它们是相当等效的(根据我所读到的,协议缓冲区的效率稍高一些).
Basically, they are fairly equivalent (with Protocol Buffers slightly more efficient from what I have read).
这篇关于Thrift 与 Protocol Buffers 的最大区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文