Spring Boot FeignClient vs. WebClient
最后发布时间:2024-08-07 17:34:37
浏览量:
- https://www.baeldung.com/spring-boot-feignclient-vs-webclient
- https://spring.io/guides/gs/reactive-rest-service
创建单独的WebClient并不意味着WebClient将具有单独的连接池。只需查看HttpClient.create的代码,它调用HttpResources.get()来获取全局资源。您可以手动提供池设置,但考虑到即使使用默认设置也会出现错误,我认为不值得冒险。
https://stackoverflow.com/questions/49095366/right-way-to-use-spring-webclient-in-multi-thread-environment