-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ec74ba
commit bc7eeb9
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
# Ports | ||
|
||
Port is the mechanism to establish communication between aggregates. Usually this involves one aggregate who triggered an event and one aggregate which needs to react. | ||
|
||
If you feel the need to do more complex interactions, it is advised to use Saga. The reason for this is that ports do not provide a transparent view of the business flow because they do not have persistent state. | ||
|
||
## Communication Guide Table | ||
|
||
| Triggered by | Description | | ||
| :--- | :--- | | ||
| Event | Domain events represent business changes which have already happened | | ||
|
||
## Best Practices | ||
|
||
{% hint style="success" %} | ||
**You can/should/must...** | ||
|
||
* a port can send a command | ||
{% endhint %} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
--- | ||
description: Sometimes called a Process Manager | ||
--- | ||
|
||
# Sagas | ||
|
||
When we have a workflow, which involves several aggregates it is recommended to have the whole process described in a single place such as а Saga/ProcessManager. | ||
|
||
## Communication Guide Table | ||
|
||
| Triggered by | Description | | ||
| :--- | :--- | | ||
| Event | Domain events represent business changes which have already happened | | ||
|
||
## Best Practices | ||
|
||
{% hint style="success" %} | ||
**You can/should/must...** | ||
|
||
* a saga **can** send new commands | ||
{% endhint %} | ||
|