A workflow is a series of steps or activities that are executed either in parallel or in sequence, or in a combination of the two. Since activities can be executed in parallel, they can perform jobs across multiple services at the same time without being blocked.
The following are the features of workflows:
- Ability to recover from failure: A workflow can be hydrated, meaning its state can be saved at well-defined points within the workflow. If the workflow fails, it starts again from the last saved state rather than from beginning. This feature is also known as checkpoints.
- Long-running: Workflows are generally long-running in nature. They can run from minutes to hours or days. They again save the state when they are waiting for an external action to complete and can start again from the last saved state once the external activity is complete.
- Execute...