docs: diagrams for unit of work, update method, and value object

This commit is contained in:
Ilkka Seppälä committed 2025-04-12 09:49:08 +03:00
1 parent 6195d5e1e8
commit 81ecb5638d
6 files changed
+12

No files matched your search

+4
View File
@@ -29,6 +29,10 @@ In plain words
> Maintains a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems.
Flowchart
![Unit of Work Pattern Flowchart](./etc/unit-of-work-flowchart.png)
## Programmatic Example of Unit of Work Pattern in Java
Arms dealer has a database containing weapon information. Merchants all over the town are constantly updating this information causing a high load on the database server. To make the load more manageable we apply to Unit of Work pattern to send many small updates in batches.