Skip to content

Commit 6d6638f

Browse files
committed
docs: reactor diagram
1 parent ae737f6 commit 6d6638f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: reactor/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Wikipedia says
3838

3939
> The reactor software design pattern is an event handling strategy that can respond to many potential service requests concurrently. The pattern's key component is an event loop, running in a single thread or process, which demultiplexes incoming requests and dispatches them to the correct request handler.
4040
41+
Sequence diagram
42+
43+
![Reactor Sequence diagram](./etc/reactor-sequence-diagram.png)
44+
4145
## Programmatic Example of Reactor Pattern in Java
4246

4347
The Reactor design pattern is a concurrency model that efficiently handles multiple simultaneous I/O operations using a single or a limited number of threads. It is particularly useful in scenarios where an application needs to handle multiple clients sending service requests concurrently.
@@ -157,10 +161,6 @@ Running the code produces the following output:
157161

158162
This concludes our detailed explanation of the Reactor design pattern. The Reactor pattern allows us to handle multiple simultaneous I/O operations efficiently using a single or a limited number of threads.
159163

160-
## Detailed Explanation of Reactor Pattern with Real-World Examples
161-
162-
![Reactor](./etc/reactor.png "Reactor")
163-
164164
## When to Use the Reactor Pattern in Java
165165

166166
Employ the Reactor pattern in scenarios requiring low-latency and high-throughput in server-side applications, making it an essential strategy for modern networking frameworks and web servers.

Diff for: reactor/etc/reactor-sequence-diagram.png

65.2 KB
Loading

0 commit comments

Comments
 (0)