Biggest differences of Thrift vs Protocol Buffers?

前端 未结 15 1637
無奈伤痛
無奈伤痛 2020-11-30 15:59

What are the biggest pros and cons of Apache Thrift vs Google\'s Protocol Buffers?

15条回答
  •  离开以前
    2020-11-30 16:31

    They both offer many of the same features; however, there are some differences:

    • Thrift supports 'exceptions'
    • Protocol Buffers have much better documentation/examples
    • Thrift has a builtin Set type
    • Protocol Buffers allow "extensions" - you can extend an external proto to add extra fields, while still allowing external code to operate on the values. There is no way to do this in Thrift
    • I find Protocol Buffers much easier to read

    Basically, they are fairly equivalent (with Protocol Buffers slightly more efficient from what I have read).

提交回复
热议问题