Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 715985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:14:55+00:00 2026-05-14T05:14:55+00:00

I am getting myself a bit confused about how to go about this. My

  • 0

I am getting myself a bit confused about how to go about this. My plan is to use PHP to perform the final page construction and this PHP web app will contact multiple services, which i will also to develop, for the data. Lets say one of those services was done in Java. I would define a Java interface which was implemented by a concrete class. This is where I get confused – how does Thrift link the PHP web app with the java service or am I getting totally mixed up??

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:14:55+00:00Added an answer on May 14, 2026 at 5:14 am

    Thrift is based on the use of an IDL (Interface Definition Language). Using the definition from Wikipedia:

    An interface description language (or
    alternately, interface definition
    language), or IDL for short, is a
    specification language used to
    describe a software component’s
    interface. IDLs describe an interface
    in a language-neutral way, enabling
    communication between software
    components that do not share a
    language – for example, between
    components written in C++ and
    components written in Java.

    An example on how to use the Thrift interface language is available in the Thrift tutorial.

    By the use of a .thrift file, you’re suppose to define the interfaces you need (in terms of types and services). For example, in your .thrift file, you could define a simple function like:

    i32 add(1:i32 num1, 2:i32 num2)
    

    that represents a function to sum two integers.

    When you’re ready with your .thrift file, you can generate the Java, PHP, Erlang, whatever code that you need (server-side or client-side), using the Thrift generator.

    Refer to the Thrift wiki for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to design a pretty simple app and am getting myself a bit
I've become a bit confused about the details of how the JIT compiler works.
I'm getting myself completely confused, and would appreciate if anyone can point me in
This is the first time I see this code myself where we are getting
I'm trying to teach myself .Net MVC 3, and am following this tutorial: http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/intro-to-aspnet-mvc-3
Python newbie getting a bit frustrated with the csv module. At this rate, it
just getting myself familiar with jquery, please consider me as a noob for now.
I'm getting myself acquainted with MVC by making a 'for-fun' site in django. I'm
Getting extremely confused with an adminhtml module i'm trying to write! Effectively I have
Getting 401 errors when trying to use ASP.NET back end in load balanced environment

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.