thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Abernethy <>
Subject Re: How to return more than one value in a Thrift service method?
Date Thu, 01 Oct 2015 11:24:55 GMT
Hello Gajanan,

Many consider it a best practice to return a struct in thrift service
methods. This allows you to return multiple values and to evolve the things
returned over time. Adding new attributes to a thrift struct is a backwards
compatible operation.


On Thu, Oct 1, 2015 at 3:32 AM, Gajanan H <> wrote:

> Hi,
> I have a thrift service method `ImportantData GetImportantData()` defined
> in the IDL. I would like to return a Status code for this method. I would
> like to be doing some thing like `Status GetImportantData(ImportantData&)`
> Is there a way to do that ? Pardon me I am very new to Thrift. BTW I am
> using C++ as language.
> Regards,
> Gajanan

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