{% extends 'default.html' %} {% block title %}Home{% endblock %} {% block content %}

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.

Getting Started


To learn more about Apache Thrift Read the Whitepaper

Download

Apache Thrift v{{ conf.current_release }}

Download v{{ conf.current_release }}

MD5 | PGP

[Other Downloads]


Example

Apache Thrift allows you to define data types and service interfaces in a simple definition file. Taking that file as input, the compiler generates code to be used to easily build RPC clients and servers that communicate seamlessly across programming languages. Instead of writing a load of boilerplate code to serialize and transport your objects and invoke remote methods, you can get right down to business.

The following example is a simple service to store user objects for a web front end.

[snippet:path=tutorial/tutorial.thrift:lang=text:lines=125,147]
[snippet:path=tutorial/py/PythonClient.py:lang=python:lines=36,55]
Initialize the Server: [snippet:path=tutorial/java/src/JavaServer.java:lang=java:lines:65,76] The CalculatorHandler: [snippet:path=tutorial/java/src/CalculatorHandler.java:lang=java:lines:28,91]
{% endblock %}