> ## Documentation Index
> Fetch the complete documentation index at: https://help.maestra.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Flow Load and Limits

How fast your flows run depends on limits — the number of events a flow can process per minute. Here's which limits apply to each kind of flow, what happens when you hit them, and how to keep your flows running smoothly.

Limits adjust automatically to the size of your database: the more customers you have, the higher the limit.

## Which limits apply to flows

It depends on the flow type.

| Flow type | What it covers | Limit and priority |
| - | - | - |
| **Event-based** | Flows that start after specific [events](https://help.maestra.io/flows/what-events-can-trigger-a-flow.md), such as a completed order or the end of a session. | The largest limit on your account. |
| **Bulk** | Every [scheduled flow](https://help.maestra.io/flows/how-to-schedule-a-flow-to-run-periodically.md). Some event-based flows also run as bulk when their data arrives through imports — for example, product change events. | Processed at a lower priority. |
| **Transactional** | [Transactional flows](https://help.maestra.io/flows/what-is-a-transactional-flow.md) that run on specific events. | The highest priority, with guaranteed processing speed. They have the smallest per-minute limit. |

## What happens when you go over the limit

When load reaches 100%, your flows are using every resource available to them. Events go into a queue and take longer to process.

> [!NOTE]
>
> A short spike to 100% is fine when you start **bulk flows** for a large audience — it lasts while all the customers are processed. If load stays at 100% for a long time, review your running flows and [optimize them](#bulk-flows).

A warning shows up in the flow and on the campaigns page. Click it to see the current load, broken down by flow.

If a flow uses complex conditions, you'll see a warning about that too. In that case, [simplify the filter](https://help.maestra.io/filters/how-to-simplify-a-filter.md) in the block.

### Customers held up in a Wait block

When lots of customers enter and leave a **Wait** block at once, processing can fall behind. For example, a customer enters a one-day **Wait** block but, because of heavy load, stays in it longer and their [run](https://help.maestra.io/flows/how-to-track-a-customers-progress-through-a-flow.md) ends. You can download the list of these customers from the block.

### Flow runs that fall too far behind

If a flow can't process its events within 12 hours because it's over the limit, customers' runs end with the note *Flow execution fell far behind schedule and is no longer relevant*. The block shows the reason the runs stopped and the list of customers.

## How to optimize your flows

### Event-based flows

* Combine flows that start on the same event into one. For example, merge your abandoned cart and abandoned browse chains.
* If an event-based flow is running late, check how many actions are coming into your account. You might want to limit how many times the flow can run for a single customer.

### Bulk flows

* Move every customer condition that sits before the step group into the **Schedule** block. That saves unnecessary load.
* Several flows starting at the same time, or close together, can cause heavy load. Spread their start times across the day, at least an hour apart.
* To speed up the **Schedule** block, use segments with the conditions you need and recalculate them before the flow starts.
* A large number of customers entering a segment on recalculation puts heavy load on bulk flows.
* When data comes in through bulk imports, load on flows triggered by *Product in product list changed* can climb sharply, because they're processed in the bulk flow queue. Keep an eye on import volume and, where you can, update data at intervals. The same goes for the *Customer data changed* and *Specified balance changed* events.

### Transactional flows

A large number of transactional flows can slow them all down. Set up transactional flows only for events where the customer needs to hear from you instantly — for example, sending an authorization code or an order status update.

## How to get alerts about heavy load

Set how long load has to stay high before Maestra Platform logs an issue. On the issues page, you can subscribe to email alerts for the *Flow health* entity.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.