Skip to Content
Learning Apache Thrift
book

Learning Apache Thrift

by Krzysztof Rakowski
December 2015
Intermediate to advanced
204 pages
4h 19m
English
Packt Publishing
Content preview from Learning Apache Thrift

Analyzing the code

Before we go further, let's have a quick look and explain the most important parts of the code that we used in this chapter. We will dig deeper into the technical details and deal with many useful Apache Thrift options in Chapter 4, Understanding How Apache Thrift Works.

The service description – IDL

The most important part of the service description begins with the following line:

service MyFirstService {

In this block, there are descriptions of methods exposed by this service. Let's have a look at the first two:

oneway void log(1:string filename),
int multiply(1:int number1, 2:int number2),

The syntax bears a strong resemblance to C++'s (and other popular languages') method definitions. The oneway keyword means that the client only ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programmer’s Guide to Apache Thrift

Programmer’s Guide to Apache Thrift

William Abernethy
Building Real-time Mobile Solutions with MQTT and IBM MessageSight

Building Real-time Mobile Solutions with MQTT and IBM MessageSight

Bryan Boyd, Joel Gauci, Michael P Robertson, Nguyen Van Duy, Rahul Gupta, Vasfi Gucer, Vladimir Kislicins

Publisher Resources

ISBN: 9781785882746Supplemental Content