I'm refactoring legacy C++ system to SOA using gSoap. We have some performance issues (very big XMLs) so my lead asked me to take a look at protocol buffers. I did, and it looks very cool (We need C++ and Java support). However protocol buffers are solution just for serialization and now I need to send it to Java front-end. What should I use from C++ and Java perspective to send those serialized stuff over HTTP (just internal network)?
PS. Another guy tries to speed-up our gSoap solution, I'm interested in protocol buffers only.
SOAP_XML_TREE
flag or compile with-DWITH_NOIDREF
. Without this flag the performance can be much lower because of the SOAP encoding with multi-ref elements (id-ref) to serialize graphs (i.e. detect co-referenced objects, analyze cyclic data structures, etc). The suggested flag turns this feature off to serialize XML as trees. Messaging speed is greatly improved. The only bottleneck to performance is network latency and bandwidth. – Dr. Alex RE