docs: partial response and pipeline diagrams

This commit is contained in:
Ilkka Seppälä
2025-04-09 21:32:41 +03:00
parent ecfd944e95
commit fdd07c772c
4 changed files with 8 additions and 0 deletions
+4
View File
@@ -33,6 +33,10 @@ In plain words
> The Partial Response design pattern allows a system to send portions of data to the client as they become available, enabling the client to start processing the data before the complete response is received.
Sequence diagram
![Partial Response sequence diagram](./etc/partial-response-sequence-diagram.png)
## Programmatic Example of Partial Response Pattern in Java
The Partial Response design pattern allows clients to specify which fields of a resource they need. This pattern is useful for reducing the amount of data transferred over the network and allowing clients to start processing data sooner.
Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

+4
View File
@@ -46,6 +46,10 @@ Wikipedia says
> In software engineering, a pipeline consists of a chain of processing elements (processes, threads, coroutines, functions, etc.), arranged so that the output of each element is the input of the next; the name is by analogy to a physical pipeline.
Flowchart
![Pipeline flowchart](./etc/pipeline-flowchart.png)
## Programmatic Example of Pipeline Pattern in Java
Let's create a string processing pipeline example. The stages of our pipeline are called `Handler`s.
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB