Skip to content

Commit 896f701

Browse files
authored
Update overview.md
1 parent 9fc9c11 commit 896f701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/constraints/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ The determinism and idempotency constraints for workflows and activities are imp
1414

1515
The determinism and idempotency constraints are necessary because the workflow engine may need to replay the same event multiple times. If the code that is executed during the replay is not deterministic, it may produce different results each time it is run. This would cause the workflow engine to lose track of the current state of the workflow, leading to incorrect results.
1616

17-
Additionally, since the events may be replayed multiple times, it is important that the code within an activity is idempotent. This means that running the code multiple times with the same input should produce the same result. If the code is not idempotent, it may produce unintended side effects when it is replayed.
17+
Additionally, since the events may be replayed multiple times, it is important that the code within an activity is idempotent. This means that running the code multiple times with the same input should produce the same result as simply running it once. If the code is not idempotent, it may produce unintended side effects when it is replayed.
1818

1919
Overall, the determinism and idempotency constraints help ensure that the workflow engine is able to accurately rebuild the current state of the workflow from the event stream and produce the correct results. They also make it easier to debug and troubleshoot problems, as the system always behaves in a predictable and repeatable way.

0 commit comments

Comments
 (0)