Chapter 5. Generating and Running Code in Different Languages

In the previous chapter, we ran through the internals of Apache Thrift, to give you the skills needed to design your own services. By now you should be able to define your interface description file, compile it with Thrift tool, run the server and launch the client. You also saw how the code looks like in two popular programming languages (PHP and Python).

Now, we will dive even deeper, looking into the code that Apache Thrift generates, but also covering a broader spectrum of programming languages. At the time of writing, there are libraries for 23 languages in the Apache Thrift code repository. Here, I will cover six of the most popular ones:

  • PHP
  • Java
  • Python
  • JavaScript
  • Ruby
  • C++

Each language ...

Get Learning Apache Thrift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.