-
Notifications
You must be signed in to change notification settings - Fork 38.1k
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
Buffering of output in Spring Web Reactive with Netty too aggressive [SPR-14943] #19510
Comments
Rossen Stoyanchev commented Note that Why does it work better in Tomcat/Undertow out of the box and can we ensure similar reasonable defaults across all runtimes? How do we support outputting a very large sequence of items other than SSE? Ideally returning |
Sébastien Deleuze commented For Reactor Netty, it should maybe flush the buffer when a specific amount of data has been sent, I am going to discuss that with Reactor team. |
Sébastien Deleuze commented Reactor Netty will introduce a threshold to trigger a flush after buffering a certain amount of data, see this issue. |
Sébastien Deleuze commented I have been able to reproduce this issue with a pure RxNetty sample application and have raised an issue on RxNetty bugtracker. |
Sébastien Deleuze commented The 2 subtasks have been resolved, I am just waiting a fix from Stéphane Maldini that will allow to restore Reactor Netty based integration tests (currently disabled via this commit). |
Daniel Fernández opened SPR-14943 and commented
Scenario
This is the scenario:
Flux<Item>
, serialized as JSONFlux
finishes producing items.Observed Results
When using Spring Web Reactive in a Spring Boot 2.0.0 (snapshot) application:
Compare Tomcat (intro being hit during
curl
execution to see the data transfer flow):With Netty:
And RxNetty:
Example applications
Example applications: https://github.com/danielfernandez/test-spring-boot-reactive-netty-output
The above applications replicate the scenario using Spring Boot 2.0.0 apps with Jetty, Netty, RxNetty, Tomcat and Undertow. Note this application also tests other issues (to be specified in separate tickets).
Please have a look at the detailed test explanation at the linked repository's
README
Affects: 5.0 M3
Reference URL: https://github.com/danielfernandez/test-spring-boot-reactive-netty-output
Sub-tasks:
Issue Links:
The text was updated successfully, but these errors were encountered: