We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Is Apache™ Thrift?

By Alex Newth
Updated: May 17, 2024
Views: 7,457
References
Share

Apache™ Thrift is a program built from the Apache™ Web server programming platform. It is made to generate code and work with multiple coding languages at once. Unlike similar generators, which produce unnecessary amounts of code or a heavy footprint, Apache™ Thrift works to include only necessary code so it is transparent. Many large websites that have a need for multiple languages use Thrift, because it keeps programmers from having to use separate programs and files. Thrift can work with 14 coding languages at once, though, while it has many benefits, there are a few things it cannot do.

With the Apache™ Thrift platform, a programmer does not have to build a complicated client from scratch. Rather, the programmer just starts by defining a few data types. For a login script, this could include a definition of a user’s name and password.

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

As of May 2011, Apache™ Thrift is able to work with 14 coding 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 nearly any server-based coding language needed for specific programs or problems, all under one program. This system was made for Facebook® but became an open-source application in 2007.

One of the largest problems, especially for new users, is that Apache™ Thrift does not inherently include tutorials or documentation. This means programmers are left to figure out the program for themselves. This problem has been solved by many websites that offer tutorials and learning programs so people new to Thrift can learn how the program works and how to generate code from the platform.

Inheritance, which allows a programmer to make objects with similar commands or definitions without writing the definition for each object, is not included in the Thrift platform. This means polymorphism coding is not allowed either, because this depends on the inheritance feature. Null functions cannot be used, and all methods and containers must have unique names, even if using different coding languages. Otherwise, the program can overload.

Share
WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Link to Sources

Editors' Picks

Discussion Comments
Share
https://www.wisegeek.net/what-is-apache-thrift.htm
Copy this link
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.