Optimize writing with Mono Publisher #22800
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
AbstractServerResponse
is currently masking the response body type information with the custom write barrier fromChannelSendOperator
. In fact if the body is a Mono, we shouldn't require the barrier at all.If we preserve the Mono information, the reactor netty response adapter can then preserve it too and call the underlying reactor-netty
send(Publisher)
with a Mono which should provide room for further optimization at that level.Same thing on the client request side, where
ReactorClientRequest#writeWith
can be optimized to preserve the mono too.Suggestions are implemented in :
https://github.com/spring-projects/spring-framework/tree/optimize-mono-bodies
The text was updated successfully, but these errors were encountered: