How pipeline execution works
Learn how the Pipeline Engine runs your pipelines on the Digibee Integration Platform and how size, consumers, and replicas affect performance.
What the Pipeline Engine does
The Pipeline Engine interprets and runs the pipelines you build on the Platform. When you deploy a pipeline, you define how much capacity it gets. Understanding how execution works helps you choose the right settings.
Execution architecture
Each pipeline runs in its own container on Kubernetes. This gives you:
Isolation: Each pipeline uses its own CPU and memory.
Safety: Pipelines don't interfere with each other unless you configure them to.
Independent scaling: You can add or remove replicas of each pipeline based on demand.
Triggers receive the invocations and send the messages to a queue. The pipeline consumes the messages from this queue.
Pipeline size
The size defines the resources of each replica. It is the way to scale a pipeline vertically.
Small
10
20% of 1 CPU
64 MB
Medium
20
40% of 1 CPU
128 MB
Large
40
80% of 1 CPU
256 MB
CPU defines how many processing cycles the pipeline can use. Memory defines how much data the pipeline can process and store during execution.
Consumers and concurrent executions
Consumers define how many messages a replica can process at the same time. For example, a pipeline with 10 consumers processes 10 messages in parallel, while a pipeline with 1 consumer processes messages one at a time.
When you deploy a pipeline, you set the number of concurrent executions. The maximum depends on the pipeline size.
Replicas
Replicas are copies of the pipeline running at the same time. They are the way to scale a pipeline horizontally. For example, a Small pipeline with 2 replicas has twice the processing capacity of a Small pipeline with 1 replica.
Replicas also increase availability: if one replica fails, the others keep processing messages.
If your realm uses the Consumption-Based Model, the Platform can adjust the number of replicas automatically. See Autoscaling.
Message processing and redelivery
Each consumer processes one message at a time. While a message is being processed, it is marked as in use, and no other replica processes it.
If the pipeline crashes or restarts, the message returns to the queue and can be processed again by any replica. The Allow Redeliveries option on the trigger defines what happens:
Enabled: The message is processed again.
Disabled: The message is identified as a retry and rejected with an error.
Messages can be redelivered until the trigger timeout (synchronous triggers) or the expiration time (asynchronous triggers) is reached.
To check whether a message is being reprocessed, use the following Double Braces expression:
Timeout and expiration
Triggers have two time limits:
Timeout: The maximum time the trigger waits for the pipeline response. Set it in milliseconds in the Maximum Timeout field of the trigger. Set it higher than the sum of the timeouts of all external connectors so the pipeline has time to handle errors. See the tips for setting timeout values.
Expiration: The maximum time a message can wait in the queue. It applies to asynchronous triggers, such as the Event Trigger. Synchronous triggers, such as the REST Trigger, use a fixed internal expiration to prevent message loss, so you can't configure it.
The timeout is the same in the test and production environments. It can differ only between pipeline versions.
Engine versions
The engine version runs your pipeline. When you deploy, the latest version is selected by default. The Run page shows the engine version of each deployment below its status, and you can filter deployments by engine version.
Next steps
Now that you understand how execution works, read Deploy and manage pipelines to apply these settings to a deployment.
Last updated
Was this helpful?