Apache Thrift Tutorial

This will also compile the tutorial client and server for several languages. See the Building from source guide for any help with this step.

To recursivly generate source code from a Thrift file and all other Thrift files included by it, run

thrift -r --gen <language> <Thrift filename>

The sample tutorial.thrift file defines a basic calculator service. This sample calculator service .thrift file includes another file called shared.thrift. Both files will be used to demonstrate how to build a Thrift client and server pair.

Examples Clients and Servers