2 comments

[ 4.2 ms ] story [ 13.2 ms ] thread
This seems like a very nice idea, but the API seems a little cumbersome. The first few lines of the example Ruby script:

    socket = Thrift::Socket.new('localhost', 9071)
    transport = Thrift::FramedTransport.new(socket) # Thrift::BufferedTransport.new(socket)
    protocol = Thrift::BinaryProtocol.new(transport)
    spacebase = SpaceBase::Client.new(protocol)
It seems like an awful lot to have to load, just to do some basic insertion/querying.
OP here. Yeah, well, that's Thrift. We might add some wrappers to make the Thrift bootstrapping simpler.