Skip to main content

Flow performance considerations

Optimise a measured bottleneck after correctness tests. Increasing threads or suppressing validation/logging can turn a slow integration into duplicated, unordered or unrecoverable work.

Main controls and costs

AreaCost/riskSafer approach
MaxThreadsPerActionMore concurrent database sessions, memory, files and receiver callsStart at default 1; increase only with input claiming, output uniqueness and load tests. REST requires separate upstream limiting.
Database Connection pooling/persistenceReconnect overhead versus pooled resource consumption/stale sessionsMeasure on the actual provider and service host; set limits with the DBA.
Definition/query breadthLarge datasets increase memory, transaction duration and log/report workFilter at source, expose only required fields and process bounded batches where the design supports it.
SQL/HTTP/file/Transport detail logsDatabase/storage growth and sensitive-data exposureCapture only needed evidence for a bounded period. File Data defaults off for good reason.
Command waiting/delayWorker remains occupied; fixed delay does not establish readinessUse synchronous completion/exit checks or a reliable downstream signal.
Automatic retryRepeats load and external effects during an outageUse bounded backoff, idempotency and operational stop conditions.
File size/encoding/schema validationParser memory/CPU and potentially expensive malformed inputTest maximum accepted size and reject/limit untrusted inputs at the boundary.

Measurement checklist

Record trigger time, queue/wait time, source rows/files/bytes, step durations, database sessions/locks, log volume, output count, Transport delay and receiver acknowledgement. Test ordinary and peak concurrency, slow dependencies, failures and recovery. Monitor both service resources and downstream throttling.

Thread cleanup releases per-thread SQL/system pools after execution; a stuck external wait or very large in-memory data set can still hold resources for the run. See ordering/concurrency, database Connection settings and operations monitoring.