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.
Best, Randy On Thu, Oct 1, 2015 at 3:32 AM, Gajanan H <[email protected]> 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 >
