docs: add diagrams for dao, data bus, data locality, data mapper, dto

This commit is contained in:
Ilkka Seppälä
2025-04-06 13:08:08 +03:00
parent 0509fabe8e
commit b6c13a2fa0
11 changed files with 24 additions and 0 deletions
+4
View File
@@ -35,6 +35,10 @@ Wikipedia says
> In the field of programming a data transfer object (DTO) is an object that carries data between processes. The motivation for its use is that communication between processes is usually done resorting to remote interfaces (e.g. web services), where each call is an expensive operation. Because the majority of the cost of each call is related to the round-trip time between the client and the server, one way of reducing the number of calls is to use an object (the DTO) that aggregates the data that would have been transferred by the several calls, but that is served by one call only.
Sequence diagram
![Data Transfer Object sequence diagram](./etc/dto-sequence-diagram.png)
## Programmatic Example of DTO Pattern in Java
Let's first introduce our simple `CustomerDTO` record.
Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB