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

Getting a general idea of the example application

Before we get into coding, we need to know what to expect and what we can do to fulfil our expectations.

It this case, our requirement is to have an application that will let us test various Apache Thrift capabilities and be easy to implement and test. We want to have the server in one language and clients in two other languages.

Let's name our service MyToolbox and expose three methods that will perform the following actions:

  • The first method, get_distance, will return the distance, in kilometers (rounded up to the nearest integer), between two points on Earth, given their coordinates (we will use decimal degrees, whose format is popular in modern mapping applications, GPS devices, and so on, which ...

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