following scenario: Service A receives a multipart/form-data request and needs to forward it to Service B. Because the file in the request can be of arbitrary size, Service A needs to stream the file to Service B as soon as possible. At the moment Service A can receive the requests but Spring Boot will load the whole request/file into memory resulting in a really high memory footprint. I also tried the often suggested apache commons-fileupload package but without the expected result.
This leads me to the following question:
Is it even possible in spring boot to access the incomming http request in a stream like manner without loading the whole thing into the memory or a file ?
Thank you!