Skip to main content

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.

  1. Simple Parallel Step Flow: This pattern demonstrates how to run multiple Steps in parallel.
  2. 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/