Skip to content

Commit f3ca4d5

Browse files
authored
Edit blog post on Laravel Workflow side effects
Removed images and streamlined content for clarity.
1 parent 08a7233 commit f3ca4d5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

blog/2022-12-22-new-laravel-workflow-feature-side-effects.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ authors:
99
tags: [side-effects, random, determinism]
1010
---
1111

12-
![effects](https://miro.medium.com/max/1400/1*2CEWzQKvYNtpviILF-I-0Q.webp)
13-
1412
Workflows provide a more organized and structured approach to managing distributed processes, making it easier for developers to understand and work with complex logic.
1513

1614
Laravel Workflow is a powerful package for the Laravel web framework that provides tools for defining and managing workflows.
@@ -74,8 +72,6 @@ The second activity receives the value of the local variable, which is not saved
7472

7573
As a result, it is not expected that the value of the local variable will match the value returned from the second activity. The odds of two random integers generated using `random_int(PHP_INT_MIN, PHP_INT_MAX)` being equal are extremely low, since there are a very large number of possible integers in this range.
7674

77-
![dice](https://miro.medium.com/max/1400/1*ElelNBBf4pbE3-nueJcriQ.webp)
78-
7975
It’s important to use side effects appropriately in your workflow to ensure that your workflow is reliable and can recover from failures. Only use side effects for short pieces of code that cannot fail, and make sure to use activities to perform long-running work that may fail and need to be retried, such as API requests or external processes.
8076

8177
Overall, side effects are a powerful tool for introducing non-deterministic behavior into your workflows. When used correctly, they can help you to add more flexibility and complexity to your application’s logic.

0 commit comments

Comments
 (0)