Integration / Apache NiFi Interview Questions
What is a Connection in NiFi and how does back-pressure work?
A Connection in NiFi is a directed, persistent queue that links the output of one processor to the input of another. FlowFiles physically queue here when the downstream processor cannot keep up. Each connection carries one or more relationships from the upstream processor (e.g., success, failure). All processor relationships must be either connected or auto-terminated before the processor can start.
Back-pressure is configured on each connection with two independent thresholds:
Back Pressure Object Threshold: Maximum FlowFile count in the queue. When reached, the upstream processor stops being scheduled. Default is 10,000.
Back Pressure Data Size Threshold: Maximum total byte size of queued content. When exceeded, the upstream processor also pauses. Default is 1 GB.
Setting both to 0 disables back-pressure, allowing the queue to grow unbounded — use cautiously. Connections also support prioritizers controlling dequeue order: First In First Out (default), Newest First, Oldest First, or by size.
More Related questions...