mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 14:14:57 +00:00
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:
1 parent
d5a46be3c5
commit
0509fabe8e
31 files changed
+60
-1
No files matched your search
@@ -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
|
||||
|
||||

|
||||
|
||||
## 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 |
Reference in new issue
Block a user