Introduction

The Apache Thrift software framework, for scalable cross-language services development, combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml and Delphi and other languages.

抄自官网,具体戳这里

嗯,一个跨平台的RPC远程调用,加强版的Pigeon(增加了跨平台特性,也许还有性能),加加加强版的RMI(RMI是什么鬼)

By the way, Pigeon 是美团点评基础框架之一,在点评侧广为使用,其作为一个远程调用框架, 虽然未支持跨平台的feature,但是对这种情况提供了Http的能力。仅Java开发而言,我们都爱Pigeon,Thrift走开。详情请出门左转:传送门

  • 为什么要引入Thrift?
    还不是有些人觉得Http不够用,传输效率不够高的问题。主要是相同的数据,JSON格式比二进制数据体积明显更大以及Http本身的性能。
  • 关键点
    通过IDL编写接口,Thrift提供工具生成指定语言的客户端与服务端桩。主要在于编写Thrift规范的IDL,一种近似C的风格的接口文档

How to start

  • 准备环境
    • Download Apache Thrift To get started, download a copy of Thrift.
    • Build and Install the Apache Thrift compiler**You will then need to build the Apache Thrift compiler and install it. See the installing Thrift guide for any help with this step.
  • IBM 详细教程

你可能感兴趣的:(Introduction)