@@ -948,14 +948,16 @@ plugging in third-party or custom solutions here.
948948[[rest-client-access]]
949949=== Accessing REST endpoints
950950
951- The Spring Framework offers two choices for client-side access to REST endpoints:
951+ The Spring Framework has two choices for client-side access to REST endpoints:
952952
953953* <<rest-resttemplate>> -- the original Spring REST client with an API similar to other
954- template classes in Spring, such as `JdbcTemplate`, `JmsTemplate` and others. The
955- `RestTemplate` is built for synchronous use with the blocking I/O.
954+ template classes in Spring such as `JdbcTemplate`, `JmsTemplate` and others.
955+ `RestTemplate` has a synchronous API and relies on blocking I/O which is okay for
956+ client scenarios with low concurrency.
956957* <<web-reactive.adoc#webflux-client,WebClient>> -- reactive client with a functional,
957- fluent API from the `spring-webflux` module. It is built on a non-blocking foundation
958- for async and sync scenarios and supports Reactive Streams back pressure.
958+ fluent API from the `spring-webflux` module. It relies on non-blocking I/O which allows it
959+ to support high concurrency more efficiently (i.e. using a small number of threads) than the
960+ `RestTemplate`. `WebClient` is a natural fit for streaming scenarios.
959961
960962
961963[[rest-resttemplate]]
@@ -966,11 +968,6 @@ that correspond to each of the six main HTTP methods that make invoking many RES
966968services a one-liner and enforce REST best practices.
967969
968970
969- [NOTE]
970- ====
971- RestTemplate has an asynchronous counter-part: see <<rest-async-resttemplate>>.
972- ====
973-
974971[[rest-overview-of-resttemplate-methods-tbl]]
975972.Overview of RestTemplate methods
976973[cols="1,3"]
0 commit comments