[英]Can I consume a non-reactive REST API service using the Spring 5 WebFlux WebClient?
I have a written a microservice using Spring 5 WebFlux and trying to consume a non-reactive REST API through it. 我有一个使用Spring 5 WebFlux编写的微服务,并尝试通过它使用非反应式REST API。 Is it possbile to consume a non-reactive service using a reactive webclient?
是否可以使用响应式webclient来使用非响应服务?
Yes, this is possible. 是的,这是可能的。 From the server's point of view, this is just a regular HTTP client.
从服务器的角度来看,这只是一个常规的HTTP客户端。
WebClient
does support streaming and backpressure, but this doesn't change things at the HTTP level. WebClient
确实支持流和背压,但这不会改变HTTP级别的内容。
The backpressure is dealt with at the TCP flow-control level, so the HTTP protocol stays the same. 背压在TCP流控制级别处理,因此HTTP协议保持不变。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.