Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Routing of the requests with multipart file upload limitations #3360

Open
yaandy opened this issue Apr 19, 2024 · 0 comments
Open

Comments

@yaandy
Copy link

yaandy commented Apr 19, 2024

Describe the bug
Please provide details of the problem, including the version of Spring Cloud that you are using.

I've encountered multiple issues with file uploads in my own project. There are numerous open issues within different components, such as netty, reactor-netty, and within this repository, related to memory leaks and Direct Buffers OOMs, I've also faced with few but it is a another topic.

So the fundamental question is: Could Spring Cloud Gateway theoretically handle routing a request with multipart files when the total size at some point exceeds the RAM of the container? Or does it require storing data in memory until the upload to the gateway completes, after which the data will be downstreamed to service B?

In my current scenario, I am assuming that the handling of file uploads operates in a buffering manner rather than streaming. It is interested how to achieve streaming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant