Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Apache Thrift

Apache Thrift

Introduction for Apache Thrift, an RPC Framework

Rama Bramantara

November 27, 2015
Tweet

Other Decks in Programming

Transcript

  1. Thrift? Thrift is an interface definition language and binary communication

    protocol that is used to define and create services for numerous languages. It is used as a remote procedure call (RPC) framework. Was developed at Facebook and now hosted on Apache as open source project
  2. How to use? 1. Declare objects and procedures in thrift

    files. 2. Compile thrift files $ thrift -r --gen <language> <Thrift filename> 1. Create Handler to implement function in server 2. Run server 3. Call function from client
  3. SOAP vs REST vs THRIFT SOAP: Write a letter. THRIFT:

    Tell directly. REST: Write a postcard. Case: Say you want to tell your neighbor to stop playing the drums in the middle of the night.