thrift

Biggest differences of Thrift vs Protocol Buffers?

What are the biggest pros and cons of Apache Thrift vs Google's Protocol Buffers? ...

Taking thrift files from an API, and building the .NET dll file

I can't figure out how to compile thrift files for C#. I've read, "thrift files which can then be compiled down to language-specific interfaces for a wide variety of different programming platforms (Java, PHP, C/C++, Cocoa, Perl, C#, Ruby, etc.)." I was looking here: http://www.markhneedham.com/blog/2008/08/29/c-thrift-examples/ and it'...

Making Thrift calls from a C++ app in Windows

As the title says, I have a Windows app written in C++ from which I need to make calls to remote Thrift services, and I'm a bit lost on the subject, to be honest. http://wiki.apache.org/thrift/ThriftInstallationWin32 states that "The Thrift C++ runtime library does not currently work on Windows". Does that mean I'm shit out of luck, or i...

Performance comparison of Thrift, Protocol Buffers, JSON, EJB, other?

We're looking into transport/protocol solutions and were about to do various performance tests, so I thought I'd check with the community if they've already done this: Has anyone done server performance tests for simple echo services as well as serialization/deserialization for various messages sizes comparing EJB3, Thrift, and Protocol...

Would you recommend Google Protocol Buffers or Caucho Hessian for a cross-language over-the-wire binary format?

Would you recommend Google Protocol Buffers or Caucho Hessian for a cross-language over-the-wire binary format? Or anything else, for that matter - Facebook Thrift for example? ...

Preloading java classes/libraries at jar startup?

I've written a Thrift server in Java to take advantage of a specific Java package/library, but I'm not a java programmer. The problem is; I'm seeing a time-out for the first RPC call to the server. Subsequest requests are executed without any issues, and its only affecting clients written in certain (but essential) languages. My curre...

How to incorporate code generation to a C# solution?

(This question is rather similar, but the only answer does not seem to be answering my needs). I am thinking of using Thrift in C#, and am considering how exactly the build process would work. Do C# projects in Visual Studio 2008 support custom build actions that generate C# classes? I found the "Custom Tool" option, but I'm not sure i...

How can I re-spawn a thrift server in java after an exception?

I'm new to java and have written a small, but quite important, thrift service in java. I've noticed that occasionally it'll stop serving without any error messages; it seems that the java process just dies, randomly, without a stack-trace or exception. What would be the best way to ensure this process stays alive even after an error? ...

Write php array in HBase using thrift

I have a Thrift php client and I want to write in a HBase table and I'm doing the following: $mutations = array( new Mutation( array( 'column' => 'entry:num', 'value' => array('a','b','c') ) ), ); $client->mutateRow( $t, $row, $mutations ); The problem is that when inserting in HBase the value, which is an ar...

Large number of simulteneous connections in thrift.

Hello, I'm trying to write a simple server with Thrift. At the beginning it looked promising, but I've stumbled into a problem with a number of clients connected at the same time. I'm using TThreadPoolServer, which allows 4 client to connect and then blocks other clients until I kill one from the connected. What can I do to allow more (p...

Access Django testserver from Django test

Hi! I want to write a unit test that performs HTTP requests directly (instead of using django.test.client.Client). If you're curious why - it's because I want to test a Thrift-over-HTTP API that I expose from my Django application - and I want to use the Thrift client in the unit test. The problem is that during tests, the server is n...

Thrift C# getRows

I'm having trouble implementing the Thrift API in my c# program. The lib's are built and it seems to run like it should, but one function is giving me trouble. As I understand it, getRows() is supposed to return a list of TRowResult, however it's only returning the first row in my table. My foreach loop only runs once. Anyone have experi...

Using Thrift with Delphi Win32

I'm interested in connecting to the Evernote Service API, which uses Thrift, from a Delphi Win32 app I am developing. I have done very little work with web services in Delphi, and nothing at all with Thrift. Where would be the best place to get up to speed w/using Thrift from Delphi? ...

Thrift/Erlang string

I'm trying to write a simple Thrift server in Erlang that takes a string and returns a string. Everything seems to be working up to the point of calling my function: handle_function(Function, Args) when is_atom(Function), is_tuple(Args) -> case apply(?MODULE, Function, tuple_to_list(Args)) of ok -> ok; Reply -> {reply, Reply} end. t...

How can you reverse engineer a binary thrift file?

I've been asked to process some files serialized as binary (not text/JSON unfortunately) Thrift objects, but I don't have access to the program or programmer that created the files, so I have no idea of their structure, field order, etc. Is there a way using the Thrift libraries to open a binary file and analyze it, getting a list of th...

C++ and Thrift: Reference needed to get started

Hello, I have read about Thrift while trying to find out how to use Google Protocol Buffers. I have been searching for some reference that shows how to go about using it with a simple working example for C++. It's been frustrating not being able to find any such site. It is a bit surprising that almost all the examples use Java, a langua...

Any success using Apache Thrift on iPhone?

Has anybody done or seen a deployment of Apache Thrift in an iPhone app? I am wondering if is a reasonable solution for a high-volume, low(er)-latency network service for iPhones compared to HTTP. One noteworthy thing I found is a bug report about running Thrift on the iPhone, which seems to have been fixed. But that doesn't necessaril...

Using Thrift for PHP to C++ translations

Hey all, I was wondering if anyone had any experience with thrift and could provide an example of taking a PHP array (or object) and translate it into a C++ array (or object). Either that or point me to documentation on how to do this in PHP (which is incomplete on their website!) Thanks! Matt Mueller ...

scribe with protocol buffer and advanced thrift?

I have two questions here: Question 1: -- can thrift provide an inner-class functionality? (see my example next) -- if it can, can thrift use such functionality easily? Here is the scribe interface (scribe/if/scribe.thrift). But its message field can only be string, which I believe not flexible enough. !/usr/local/bin/thrift --cpp...

How to insert data into Hbase tables using PHP Stargate client

Hello! I'm playing around with an install of HBase cluster, and am trying to access the data via the Stargate REST interface. Most of the read-only functions (i.e. listing tables, getting version, meta data, etc) are work nicely. However, I'm having trouble with actually inserting data into any tables I've created. Here's what I've g...