Definition basic apache thrift

What is THRIFT ?

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.


  1. We must create file *.thrift. This file declare objects and procedures. Purpose for this work that we can interchange between applications written in different languages (Example : Java and C++ ).
  2. Using thrift tool ( Install ) to generate code . We build Thrift file for our languages (Example We using Java [Server] – C++ [Client] ).
  3. Create Server and Client for applications. (using code generated in the previous step ).
  4. Server application implement [objects and procedures] in Thrift file created ( Client call them ).
  5. Thrift takes care about creating transport classes, define objects. We only use them in our code.
  6. Run Server. Using Client to perform action defined objects and methods.




Reference :


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: