Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.62 KB

parallel.mdx

File metadata and controls

44 lines (30 loc) · 1.62 KB

Parallel

import { Callout } from 'nextra/components'; import Image from 'next/image'; import parallel from '/public/nodes/parallel.png';

The Parallel node allows you to run other nodes at the same time. This node is useful if you want to independent pieces of logic to run at the same time, saving valueable time in your workflow.

Parallel node

In parallel mode, each element of the input is processed concurrently. This is suitable when each iteration is independent and can be executed simultaneously. For example, making API calls to multiple endpoints.

Parallel processing executes actions simultaneously for each element, while series processing executes actions one after another.

To use this node, please check the [BuildShip Pricing page](https://buildship.com/pricing) to see the maximum concurrency limit for your plan. **Example: Processing Multiple API Calls**
Suppose you have a list of URLs that you want to send API requests to simultaneously. You can use the Loop node in parallel mode to achieve this:

**Input**: `JSON array containing URLs`

**Loop Body**: Inside the loop, add a series of nodes that make API calls to the URLs.

This configuration ensures that each API call is executed in parallel, optimizing time and efficiency.

Video

<iframe className='aspect-video w-full' src='https://www.youtube.com/embed/PloDC82kYuY?si=fNbgbcZN6y3injls' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; allowfullscreen' width='80%' />