Hi > I notice that the C++ client examples for Thrift either assume it's O.K. > to use threads, or use blocking I/O. Can anyone point me at an example > of how to do non-blocking RPC in C++ with Thrift? If not, roughly how > much work is it going to be to add? > I see that non-blocking servers are just fine -- and that there are some > patches floating around to improve that too. > > I am excited by Thrift's possibilities, however, need to ensure that it > can fit into our framework O.K.
Boost.Threads added support for futures in April (which are part of C++0x) [1], and together with ASIO [2] and the work started at THRIFT-311 [3], we could eventually replicate what was done for Twisted. > P.S. I am also very interested in Thrift + AMQP in a non-blocking C++ > context, the clustering and virtualization case is strong. Too bad you have to use C++, there's support for Python/Twisted and asynchronous Thrift + AMQP in txAMQP :-) [4] Cheers. 1 - http://comments.gmane.org/gmane.comp.lib.boost.announce/230 2 - http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio.html 3 - http://issues.apache.org/jira/browse/THRIFT-311 4 - http://launchpad.net/txamqp
