I am implementing a low latency real time application which should push excessive messages.
I would like to ask how different from the performances aspect would be sending Serialized objects or plain long string (which will be parsed as XML in the client side) over TCP connection?
I am talking in Milliseconds terms.
thanks,
ray.
As with all these sorts of questions, I would prototype some approaches and measure the results.
In particular, you’ve not specified your XML serialisation approach (e.g. XStream, JAXB, parsing via SAX etc.) and that alone will affect your results significantly.
I’m also interested that you’re considering (I presume) Java object serialisation vs. XML, and would suggest you also consider approaches such as JSON or Google Protocol Buffers, to name but two.
Finally, see question such as this, which provide a wealth of further info.