I have 2 Spring Web applications: Application1 and Application2. In Application1, I have an endpoint at "http://application1/getbigcsv" that uses streaming in order to serve a gigantic 150MB CSV file back to the user if they hit that URL.
I dont want users to hit Application1 directly, but hit Application2 instead. If I have the following method in my controller in Application2
@RequestMapping(value = "/large.csv", method = GET, produces = "text/csv") @ResponseStatus(value = HttpStatus.OK) public String streamLargeCSV() { // Make an HTTP Request to http://application1/getbigcsv // Return its response } My worry is the above is not doing "streaming" whereas Application1 is doing streaming. Is there some way I can make sure that the application2 will be serving back the same data from application1's rest endpoint in a streaming fashion? Or is the method above actually returning things in a "Streaming" method already because Application1 is serving its endpoint as streaming?