Feb 15th, 2012, 09:34 AM
Performance: HttpMessageConverter vs ContentNegotiatingViewResolver
I am looking at implementing REST based web services using spring mvc. I have looked into HttpMessageConverter and ContentNegotiatingViewResolver. I see how they are different as far as the options they provide. But cannot find any details on performance.
Is one better than the other as far as performance goes. And if so is it a considerable difference?
Feb 24th, 2012, 04:23 PM
My guess is it would depend more on the specific objects you serialize than on how your application is configured. It would be easy to make your own performance tests with your own data. Feel free to post some results if you have some to share!
In Spring 3.2 we'll equalize the options between the CNVR and @ResponesBody -- see SPR-8410.