Skip to content

외부 API 호출 RestTemplate -> WebClient #53

Description

@sktkddn777

RestTemplate 이 Deprecated 되진 않았지만, 스프링 5.0 부터는 WebClient를 권고한다
기 이유로는 WebClient 가 Non-blocking 과 비동기화가 가능하기 때문이다.

성능상으로 봐도 WebClient 를 사용해야 하는 이유가 충분하다

출처: https://dzone.com/articles/raw-performance-numbers-spring-boot-2-webflux-vs-s

현재 구글 리소스 서버를 호출하는 RestTemplate 을 WebClient 로 바꿀 예정이다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions