Skip to content

Commit 5333f9c

Browse files
committed
Doc updates
1 parent 6bf1281 commit 5333f9c

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/asciidoc/web-reactive.adoc

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[[web-reactive]]
2-
= Web Reactive Framework
2+
= Reactive Web Applications
3+
34
This section provides basic information on the reactive programming
45
support for Web applications in Spring Framework 5.
56

@@ -15,16 +16,17 @@ In plain terms reactive programming is about non-blocking applications that are
1516
and event-driven and require a small number of threads to scale vertically (i.e. within the
1617
JVM) rather than horizontally (i.e. through clustering).
1718

18-
A key aspect of the reactive applications is the concept of backpressure which is
19+
A key aspect of reactive applications is the concept of backpressure which is
1920
a mechanism to ensure producers don't overwhelm consumers. For example in a pipeline
20-
of reactive components extending from the database to the HTTP connection when the
21-
HTTP client is slow the data repository also slows down or stops until capacity frees up.
21+
of reactive components extending from the database to the HTTP response when the
22+
HTTP connection is too slow the data repository can also slow down or stop completely
23+
until network capacity frees up.
2224

23-
Reactive programming also involves a major shift from imperative style logic
24-
to declarative async composition of logic. It is comparable to using `CompletableFuture`
25-
in Java 8 and composing follow-up actions via lambda expressions.
25+
Reactive programming also leads to a major shift from imperative to declarative async
26+
composition of logic. It is comparable to writing blocking code vs using the
27+
`CompletableFuture` from Java 8 to compose follow-up actions via lambda expressions.
2628

27-
For a more extended introduction to reactive programming check the excellent multi-part series
29+
For a longer introduction check the blog series
2830
https://spring.io/blog/2016/06/07/notes-on-reactive-programming-part-i-the-reactive-landscape["Notes on Reactive Programming"]
2931
by Dave Syer.
3032

@@ -51,14 +53,14 @@ by Sebastien Deleuze.
5153

5254

5355
[[web-reactive-feature-overview]]
54-
== Spring Web Reactive Overview
56+
== Spring Web Reactive Module
5557

5658
Spring Framework 5 includes a new `spring-web-reactive` module. The module contains support
5759
for reactive HTTP and WebSocket clients as well as for reactive server web applications
5860
including REST, HTML browser, and WebSocket style interactions.
5961

6062
[[web-reactive-server]]
61-
=== Server-Side Reactive Web Support
63+
=== Server Side
6264

6365
On the server-side the new reactive module supports 2 distinct programming models:
6466

@@ -153,7 +155,7 @@ https://spring.io/blog/2016/09/22/new-in-spring-5-functional-web-framework[M3 re
153155

154156

155157
[[web-reactive-client]]
156-
=== Client-Side Reactive Web Support
158+
=== Client Side
157159

158160
Spring Framework 5 includes a functional, reactive `WebClient` that offers a fully
159161
non-blocking and reactive alternative to the `RestTemplate`. It exposes network
@@ -190,7 +192,7 @@ still based and relies on `InputStream` and `OutputStream`.
190192

191193

192194
[[web-reactive-http-body]]
193-
=== Encoding and Decoding the Request and Response Body
195+
=== Request and Response Body Conversion
194196

195197
The `spring-core` module provides reactive `Encoder` and `Decoder` contracts
196198
that enable the serialization of a `Flux` of bytes to and from typed objects.

0 commit comments

Comments
 (0)