Skip to content

Commit fbd4463

Browse files
simonbaslesbrannen
authored andcommitted
Fix subsection style in WebFlux Concurrency Model
The block title style previously used was not rendered in HTML and the title couldn't be differentiated from the text. Though, it was in the PDF, as italics. Introducing delimited blocks in the open (`--`) style did introduce styling, but the vertical alignment isn't great. This commit turns these block titles to actual (deep) section titles. In the final HTML, at this depth there is no numbering but bold styling is there. The PDF rendering has also been verified to have relevant style. Closes gh-29694
1 parent a3a9495 commit fbd4463

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

framework-docs/src/docs/asciidoc/web/webflux.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,20 +248,22 @@ current thread (and rely on callbacks instead) means that you do not need extra
248248
there are no blocking calls to absorb.
249249

250250

251+
==== Invoking a Blocking API
251252

252-
.Invoking a Blocking API
253253
What if you do need to use a blocking library? Both Reactor and RxJava provide the
254254
`publishOn` operator to continue processing on a different thread. That means there is an
255255
easy escape hatch. Keep in mind, however, that blocking APIs are not a good fit for
256256
this concurrency model.
257257

258-
.Mutable State
258+
==== Mutable State
259+
259260
In Reactor and RxJava, you declare logic through operators. At runtime, a reactive
260261
pipeline is formed where data is processed sequentially, in distinct stages. A key benefit
261262
of this is that it frees applications from having to protect mutable state because
262263
application code within that pipeline is never invoked concurrently.
263264

264-
.Threading Model
265+
==== Threading Model
266+
265267
What threads should you expect to see on a server running with Spring WebFlux?
266268

267269
* On a "`vanilla`" Spring WebFlux server (for example, no data access nor other optional
@@ -285,7 +287,8 @@ specific thread pool `Scheduler` strategy.
285287
* Data access libraries and other third party dependencies can also create and use threads
286288
of their own.
287289

288-
.Configuring
290+
==== Configuring
291+
289292
The Spring Framework does not provide support for starting and stopping
290293
<<webflux-server-choice, servers>>. To configure the threading model for a server,
291294
you need to use server-specific configuration APIs, or, if you use Spring Boot,

0 commit comments

Comments
 (0)