O'Reilly logo

Learning Apache Thrift by Krzysztof Rakowski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing the Apache Thrift document

Apache Thrift allows us to have a more complicated structure of the documents than a single file. It is especially useful if you want to have a set of basic tools to include in different services.

In our simple example, let's say we want to have a basic service, which allows logging messages to file. Any other service that we build has to have this capability. We also want some basic exceptions defined that are universal and can be used in any service, regardless of its specifics.

Therefore, we will split our definition into two Apache Thrift documents:

  • mybase.thrift will contain basic universal components
  • mytoolbox.thrift will contain our specific service

Note

You can type the files as we go or download them from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required