# Parallel (/docs/nodes/parallel)



The **Parallel** node starts several published decisions **at the same time**, waits for every one of them (the join) and then lets the flow continue. Independent checks no longer wait for each other.

## When to use it [#when-to-use-it]

* Several independent lookups, such as bureau, fraud and KYC, where each one is slow.
* Cut the total time to that of the slowest branch instead of the sum of all.

## How it works [#how-it-works]

<Diagram node="parallel" kind="anatomy" />

1. Every branch is started at once, each running its own published decision with its own input mapping.
2. All branches read the same scope and none can see another's result, so the order they finish in cannot change the outcome.
3. The node waits until all have answered (the join).
4. Each branch writes its outputs to its own variable, and the flow continues through **Next**.

## Ports [#ports]

| Port   | Taken when                           |
| ------ | ------------------------------------ |
| `Next` | Always, after every branch answered. |

## Configuration [#configuration]

| Field    | What it does                                                                                           |
| -------- | ------------------------------------------------------------------------------------------------------ |
| Name     | Label shown on the canvas and in the trace.                                                            |
| Branches | For each branch: the published decision, its input mapping and the variable that receives its outputs. |

## What it writes [#what-it-writes]

One variable per branch, each holding that decision's outputs: `vars.bureau`, `vars.fraud`, `vars.kyc`. The trace keeps every branch's own trace.

## In a real flow [#in-a-real-flow]

<Diagram node="parallel" kind="example" />

Bureau, fraud and KYC decisions start together and the flow resumes when the slowest has answered. A condition after the join can read all three variables.

## When it fails [#when-it-fails]

* If any branch fails, the node fails with that branch's error.
* Two branches writing the same variable, or a branch without decision, are errors in Checks. Fewer than two branches is a warning: a Sub-decision does the same.

## Good to know [#good-to-know]

* Branches are whole decisions. To run the same decision over many items, use [For each](/docs/nodes/for-each).

## Related [#related]

* [Sub-decision](/docs/nodes/sub-decision)
* [For each](/docs/nodes/for-each)
