docs: diagrams for transaction script, twin, and type object

This commit is contained in:
Ilkka Seppälä
2025-04-12 09:35:40 +03:00
parent 21914f9c88
commit 6195d5e1e8
6 changed files with 13 additions and 1 deletions
+4
View File
@@ -34,6 +34,10 @@ Wikipedia says
> The Transaction Script design pattern is a straightforward way to organize business logic in applications, particularly suitable for scenarios where each request from the presentation layer can be handled by a single procedure. This pattern is often used in simple applications or in systems where rapid development and ease of understanding are crucial. Each transaction script is responsible for a particular task, such as processing an order or calculating a result, and typically interacts directly with the database.
Flowchart
![Transaction Script Pattern Flowchart](./etc/transaction-script-flowchart.png)
## Programmatic Example of Transaction Script Pattern in Java
Our Transaction Script pattern in Java example is about booking hotel rooms.
Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB