What’s Apache Thrift?

Print anything with Printful



Apache Thrift is a program that generates code and works with multiple coding languages. It includes only necessary code, making it transparent. It can work with 14 programming languages simultaneously, but lacks tutorials and documentation. Inheritance, polymorphism encoding, and null functions are not included.

Apache Thrift is a program created by the Apache Web Server Programming Platform. It is made to generate code and work with multiple coding languages ​​simultaneously. Unlike similar generators, which produce unnecessary amounts of code or a heavy footprint, Apache Thrift works to include only the code you need so it’s transparent. Many large websites that need multiple languages ​​use Thrift, because it prevents programmers from having to use separate programs and files. Thrift can work with 14 programming languages ​​simultaneously, however, while it has many advantages, there are some things it cannot do.

With the Apache Thrift platform, a programmer doesn’t have to build a complicated client from scratch. Rather, the programmer begins by simply defining a few data types. For a login script, this might include a username and password definition.

After defining the data types, the programmer usually has to start work on further defining them and adding a large code space. Instead, Apache Thrift will take the defined code and generate it in whatever coding language the programmer needs. Now the programmer just needs to go through the generated code and add a few lines here and there, rather than building from scratch.

As of May 2011, Apache Thrift is capable of working with 14 programming languages. These include: C#, C++, Java®, Python®, Hypertext Preprocessor (PHP), Erlang, Ruby®, Haskell, Perl®, Cocoa®, Node.js, JavaScript®, OCaml and Smalltalk. This allows programmers to use almost any server-based coding language needed for specific programs or problems, all in one program. This system was created for Facebook® but became an open source application in 2007.

One of the biggest problems, especially for new users, is that Apache Thrift doesn’t inherently include tutorials or documentation. This means that programmers are left to figure out the program on their own. This problem has been solved by many websites offering tutorials and learning programs so that people new to Thrift can learn how the program works and how to generate code from the platform.

Inheritance, which allows a programmer to create objects with similar commands or definitions without writing the definition for each object, is not included in the Thrift platform. This means that polymorphism encoding is not allowed either, as it depends on the inheritance function. Null functions cannot be used, and all methods and containers must have unique names, even if you use different coding languages. Otherwise, the program can become overloaded.




Protect your devices with Threat Protection by NordVPN


Skip to content