Hi all,
In Thrift it is possible to use the oneway modifier to specify a call as asynchronous.
Apparently, it's not possible to define a callback, though, to be executed when the execution of the function is completed.
It seems that the only possibility I have is to give my Thrift client (PHP) some "server" capabilities, so that, when the heavy computation is completed on the server side, I can send a notification to it. This means that I should have a new .thrift file, with new definitions, new services and all the rest and that I should generate php-server side code with Thrift.
Even if this is feasible, it looks like an overkill to me and I'm wondering if there's a more clever way to implement the callback.
Looking forward for some feedback from you, guys.