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

Slow webflux multipart upload #34651

Open
sbxz opened this issue Mar 25, 2025 · 1 comment
Open

Slow webflux multipart upload #34651

sbxz opened this issue Mar 25, 2025 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@sbxz
Copy link

sbxz commented Mar 25, 2025

Hello,

We are developing a document submission application using WebFlux. However, we have noticed that handling multipart requests is slower with WebFlux compared to MVC. For example, when using MultipartFile in MVC, sending a 200MB file takes about 700ms, whereas it takes 4.2s with WebFlux (FilePart) and 4.5s with PartEvent.

Did we miss something?

Here is a repository reproducing the issue: Repo

Spring boot version : 3.4.4
Java 21

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Mar 25, 2025
@sdeleuze sdeleuze self-assigned this Mar 26, 2025
@sdeleuze sdeleuze added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Mar 26, 2025
@sdeleuze sdeleuze added this to the 6.2.x milestone Mar 26, 2025
@sdeleuze
Copy link
Contributor

I suspected that when working in this area recently in #34178 and #34388 but was not 100% sure, but your report seems to confirm there is something to improve there, so I will try to have a deeper look.

What I saw was slow upload locally with big files, so I know how to reproduce even if for now, I am not sure about the reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants