Vercel Logo
DOCS
TECHNICAL DOCS
QUERY PIPELINES
BUILDING SERIAL PIPELINES

Serial Pipeline

The Serial Pipeline is a higher-order pipeline in Syncraft's query engine that orchestrates the sequential execution of its child pipelines. This structured approach ensures that each pipeline is executed one after the other, where the output of one pipeline serves as the input for the subsequent pipeline in the sequence. By doing so, the Serial Pipeline provides a structured means to control the data flow, enabling developers to handle complex query logic precisely.

Untitled (13).jpg

Core Features

1. Sequential Execution

The Serial Pipeline adheres to a strict order of execution, ensuring that each child pipeline is triggered in the specified sequence.

2. Data Flow Control

With the output of one pipeline serving as the input for the next, there's a precise and controlled data flow from one stage to the next.

3. Error Propagation

In the event of an error in one of the child pipelines, the Serial Pipeline can halt execution, ensuring that errors are caught and handled appropriately.

Functional Significance

Predictable Data Processing:

The sequential nature of the Serial Pipeline makes the data processing flow predictable, making it easier to debug and manage.

Complex Logic Handling:

Developers can build complex logic by combining multiple pipeline blocks, each handling a specific part of the query logic and orchestrating them using the Serial Pipeline.

Enhanced Error Handling:

The ability to halt execution in the face of errors allows for better error handling and ensures data integrity throughout the processing flow.

Usage Scenarios

Multi-Step Data Processing:

In scenarios where data needs to go through multiple processing steps in a particular order, the Serial Pipeline is invaluable.

Data Validation and Transformation:

Serial Pipelines can be used first to validate data in one step, then transform it in the next, ensuring a clean, organized approach to data handling.

Aggregated Data Retrieval:

When data retrieval involves multiple stages, such as fetching data from various sources and aggregating or joining it, Serial Pipelines provide a structured way to handle such multi-step retrieval.

Continue Your Journey
Looping Pipelines
Continue Your Journey
Building Parallel Pipelines