To get started, download a copy of Thrift.
You will then need to build the Apache Thrift compiler and install it. See the installing Thrift guide for any help with this step.
After the Thrift compiler is installed you will need to create a thrift file. This file is an interface definition made up of thrift types and Services. The services you define in this file are implemented by the server and are called by any clients.
The Thrift compiler is used to generate your Thrift File into source code which is used by the different client libraries and the server you write. To generate the source from a thrift file run
thrift --gen <language> <Thrift filename>
The sample tutorial.thrift file defines a basic calculator service. This will be used to demonstrate both the client and server. To generate the tutorial.thrift file into source code use the Thrift generator and run