Forum: Building VoltDB Clients

Post: Inside voltdb query and response

Inside voltdb query and response
skk
Jun 3, 2013
Hi

I am writing code in C++ to connect to Voltdb server. I was wondering whether it is faster to post a URL to voltdb enterprise server and get the JSON response back and process it or make a C++ client to do the processing. Is it that the C++ code parses JSON response inside the library or is it otherwise.

Thanks
SK
nshi
Jun 3, 2013
Hi SK,

Yes, it will be much more efficient to use the C++ client library than the JSON interface. The C++ client library uses a binary protocol to talk to the server, whereas the JSON interface has to go through an additional Jetty web server embedded in the VoltDB server process.
skk
Jun 19, 2013
Thanks Ning for a very informative reply.
Haider01
Oct 1, 2014
Hi,

Thanks for the quick response. That's great that there's a ticket for it. I was thinking about the "extra column scenario but was thinking that it might cause too much memory overhead with the db schema that i'm porting over. Need to mull this one over methinks. keep up the great work :o)