Parallel Steps
Run Steps concurrently and optionally await results.
Problem and approach
Here we demonstrate how to take advantage of the parallel running Steps feature in Dex.
- Simple Parallel Step Flow: This pattern demonstrates how to run multiple Steps in parallel.
- Await All Parallel Steps Flow: This pattern demonstrates how to run multiple Steps in parallel, plus how to wait for all parallel Steps to complete before proceeding to the next Step.
This is a basic design pattern for parallel execution in a single Flow. For higher scalability needs. you can check out scalable parallel design pattern or parentchild
Code examples
Full runnable samples live under examples/{go,java,python,typescript} (HTTP prefix /design-pattern/... where applicable).
# See examples/python/dex_examples/patterns/workflow/parallel/