How to run steps in parallel and optimize your Mastra workflow

Опубликовано: 10 Июль 2026
на канале: Mastra
1,020
18

Learn how to run AI workflow steps in parallel with Mastra to speed up checks, aggregate results, and summarise outcomes. In this video, @bookercodes at Mastra explains how to identify parallelisable steps, call the parallel function, and aggregate outputs into a single object for subsequent processing. You'll see a concrete example of a code vulnerability scanner where checks run concurrently.

00:00 What is parallelization?
00:24 Example
00:37 How to run steps in parallel
01:11 Explanation

Read the documentation on running Mastra steps in parallel:

↪ https://mastra.ai/en/docs/workflows/c...

Mastra?

Mastra is an TypeScript SDK for building AI agents with memory. It gives you primitives like working memory, semantic recall, and tool use, making it easier to manage long-term context and create agents that behave more like real assistants. Rather than starting from scratch, you can use Mastra to scaffold your agent’s memory architecture, define how it stores and retrieves information, and integrate with tools like vector databases and APIs.

↪ Learn more https://mastra.ai