docs: diagrams for callback, circuit breaker, client session, collecting parameter, colletion pipeline, combinator, command, commander, component, composite entity, composite view, composite, context object, converter, crtp, currying

This commit is contained in:
Ilkka Seppälä
2025-04-06 11:31:49 +03:00
parent d5a46be3c5
commit 0509fabe8e
31 changed files with 60 additions and 1 deletions
+4
View File
@@ -33,6 +33,10 @@ In plain words
> The Commander pattern turns a request into a stand-alone object, allowing for the parameterization of commands, queueing of actions, and the implementation of undo operations.
Sequence diagram
![Commander sequence diagram](./etc/commander-sequence-diagram.png)
## Programmatic Example of Commander Pattern in Java
Managing transactions across different services in a distributed system, such as an e-commerce platform with separate `Payment` and `Shipping` microservices, requires careful coordination. Using the Commander pattern in Java for transaction coordination helps ensure data consistency and reliability, even when services experience partial failures.
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB