Skip to content

Commit 1901b70

Browse files
committed
Merge branch '6.0.x'
2 parents d867503 + 02ba069 commit 1901b70

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

framework-docs/modules/ROOT/pages/web/webflux/new-framework.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ lets applications use the Servlet API directly if they need to. Spring WebFlux
189189
relies on Servlet non-blocking I/O and uses the Servlet API behind a low-level
190190
adapter. It is not exposed for direct use.
191191

192-
NOTE: It is strongly advised not to map Servlet filters nor directly manipulate the Servlet API in the context of a WebFlux application.
192+
NOTE: It is strongly advised not to map Servlet filters or directly manipulate the Servlet API in the context of a WebFlux application.
193193
For the reasons listed above, mixing blocking I/O and non-blocking I/O in the same context will cause runtime issues.
194194

195195
For Undertow, Spring WebFlux uses Undertow APIs directly without the Servlet API.
@@ -200,9 +200,9 @@ For Undertow, Spring WebFlux uses Undertow APIs directly without the Servlet API
200200
== Performance
201201

202202
Performance has many characteristics and meanings. Reactive and non-blocking generally
203-
do not make applications run faster. They can, in some cases, (for example, if using the
204-
`WebClient` to run remote calls in parallel). On the whole, it requires more work to do
205-
things the non-blocking way and that can slightly increase the required processing time.
203+
do not make applications run faster. They can in some casesfor example, if using the
204+
`WebClient` to run remote calls in parallel. However, it requires more work to do
205+
things the non-blocking way, and that can slightly increase the required processing time.
206206

207207
The key expected benefit of reactive and non-blocking is the ability to scale with a small,
208208
fixed number of threads and less memory. That makes applications more resilient under load,
@@ -224,10 +224,10 @@ block the current thread, (for example, for remote calls). For this reason, serv
224224
use a large thread pool to absorb potential blocking during request handling.
225225

226226
In Spring WebFlux (and non-blocking servers in general), it is assumed that applications
227-
do not block. Therefore, non-blocking servers use a small, fixed-size thread pool
227+
do not block. Therefore, non-blocking servers use a small, fixed-size thread pool
228228
(event loop workers) to handle requests.
229229

230-
TIP: "`To scale`" and "`small number of threads`" may sound contradictory but to never block the
230+
TIP: "`To scale`" and "`small number of threads`" may sound contradictory, but to never block the
231231
current thread (and rely on callbacks instead) means that you do not need extra threads, as
232232
there are no blocking calls to absorb.
233233

@@ -253,7 +253,7 @@ application code within that pipeline is never invoked concurrently.
253253

254254
What threads should you expect to see on a server running with Spring WebFlux?
255255

256-
* On a "`vanilla`" Spring WebFlux server (for example, no data access nor other optional
256+
* On a "`vanilla`" Spring WebFlux server (for example, no data access or other optional
257257
dependencies), you can expect one thread for the server and several others for request
258258
processing (typically as many as the number of CPU cores). Servlet containers, however,
259259
may start with more threads (for example, 10 on Tomcat), in support of both servlet (blocking) I/O

0 commit comments

Comments
 (0)