java - Best method to sending an object to a Spring MVC controller -
what efficient (uses least amount of bandwidth) method of sending java bean java application spring mvc servlet?
i using xml, think it's using more bandwidth , more time serialize bean xml because more verbose, not need, because it's being transferred directly 1 application another, no person reading serialized data.
json option guess..
what understand here 2 applications not in same vm , need way pass on data between these 2 application. if so, here suggest use below approach:
try using java's default serialization , stream output next application.
optionally, should use compression mechanism (like gzip api in java) compress serialized file.
also, if want stick xml version, can add compression step reduce size of xml. should minimal code change, if existing application.
Comments
Post a Comment