Spring RestTemplate - async vs sync restTemplate

后端 未结 3 2142
名媛妹妹
名媛妹妹 2020-12-15 06:01

I wrote the following code to test the performance of both the sync RestTemplate and AsyncRestTemplate. I just ran it a few times manually on POSTMAN.

We are just pa

3条回答
  •  暖寄归人
    2020-12-15 06:50

    Nowadays, AsyncRestTemplate is @Deprecated in favor of WebClient. So nobody should use that class anymore!

    https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/reactive/function/client/WebClient.html

提交回复
热议问题