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.

THRIFT WORK:

  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.

d1

 

 

Reference :

  1. http://thrift.apache.org
  2. http://www.thrift.pl
  3. http://mikecvet.wordpress.com/2010/05/13/apache-thrift-tutorial-the-sequel/

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: