thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Balatero <>
Subject Re: Regarding Thrift and Ajax
Date Mon, 27 Apr 2009 17:53:13 GMT
This sounds like an issue of different formats. For your AJAX API, you'd
probably return JSON or some such, and for your Thrift API, you would return
Thrift structs. This is a fundamental difference that would require you to
have two endpoints for your API that return data differently.

You might consider just using JSON/XML as your API format, as most 3rd party
applications would probably not want to link against Thrift when they could
just do a simple JSON/XML parse in the language of their choice.

- david

On Mon, Apr 27, 2009 at 10:48 AM, Swaroop C H <> wrote:

> Hello all,
> This might be a dumb question, but how do people deal with the issue
> of interaction between Ajax and Thrift-based APIs?
> For example, a web application usually has a web-based frontend
> usually written in Ajax as well as an API that is available for
> third-party applications and for the company's own mobile / desktop
> clients.
> If the Ajax cannot access the API directly, then a wrapper (that works
> with Ajax) would have to be written for every single service call.
> How do people usually solve this "problem"?
> Please excuse me if I have not articulated this concern properly.
> Regards,
> Swaroop
> Books and Blog -
> Company -

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message