WebClient 이해하기
WebClient 란 API를 호출하기 위해 사용되는 Http Client 모듈 중 하나 왜 WebClient 가 필요한가 자바에서 많이 사용하는 Http Client 는 RestTemplate 이다. Spring 5.0 버전부터 RestTemplate 은 유지 관리 모드로 변경되었고, 대안으로 WebClient 사용을 강력히 권고하고 있다. WebClient 는 논블로킹/블로킹 모두 지원한다. 동작 원리 Single-Thread, Not-Blocking 이벤트 반응형으로 동작 Spring Web Reactive 모듈에 포함 React Web 프레임워크인 Spring WebFlux 에서 Http Client 로 사용됨 공식 문서 https://docs.spring.io/spring-framework/re..