The PARALLEL node executes multiple branches simultaneously, allowing you to perform independent operations in parallel.Documentation Index
Fetch the complete documentation index at: https://hypha-docs.plinqx.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
PARALLEL nodes enable:- Concurrent Execution: Run multiple branches at the same time
- Independent Operations: Each branch executes independently
- Concurrency Control: Limit maximum parallel branches
- Fail Fast: Option to stop on first error
How It Works
Configuration
Branches
Define 2-4 branches:- Branch Names: Label each branch clearly
- Independent Nodes: Each branch contains its own node sequence
- Shared Context: All branches share the same flow context
Concurrency
Control parallel execution:- Max Concurrency: Maximum branches executing simultaneously
- Default: All branches execute concurrently
- Limiting: Lower values for resource-constrained scenarios
Fail Fast
Option to stop on first error:- Enabled: Stops all branches when one fails
- Disabled: Continues other branches even if one fails
- Use Case: When branches are dependent
Branch Output
Each branch produces output accessible via:Use Cases
- Independent API Calls: Fetch data from multiple sources
- Parallel Processing: Process different data sets simultaneously
- Resource Optimization: Utilize available resources efficiently
- Time Savings: Reduce total execution time
Best Practices
Independent Branches
Ensure branches don’t depend on each other
Set Concurrency
Configure appropriate concurrency limits
Handle Errors
Use TRY nodes in branches for error handling
Monitor Performance
Monitor branch execution times
Example: Parallel API Calls
Next Steps
JOIN Node
Combine parallel branch results
CHOICE Node
Conditional branching