Extract WebClient
from Spring WebFlux
#31622
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
As far as I understood the RestTemplate is basically sundowning/frozen and the WebClient will be the http client to go in the future for WebMVC and WebFlux applications. So we can expect that sooner or later all/most webMVC applications will use webclient.
If in light of project loom RestClient will be "reinstated", then this will be less important, of course.
To use Webclient right now you have to include Webflux as dependency, so in a webmc application you will end up bringing in the full webmvc and webflux webstack as dependency, although you just want to use webclient.
My suggestion is that Webflux is split up, so you have a smaller dependency to be included in webMVC applications without bringing in the rest of webflux that you don't need and that may lead to problems.
There are at least a couple of advantages for doing that.
For example:
The text was updated successfully, but these errors were encountered: