LoadBalancingPartition distributes incoming input data records among different output ports according to workload of downstream components.
|Component||Same input metadata||Sorted inputs||Inputs||Outputs||Java||CTL||Auto-propagated metadata|
|Input||0||For input data records||Any|
|Output||0||For output data records||Input 0|
|1-N||For output data records||Input 0|
LoadBalancingPartition propagates metadata in both directions. LoadBalancingPartition does not change the priority of propagated metadata.
The component has no metadata template.
The component does not require any specific metadata fields.
Metadata on all output ports must be the same. Metadata name and field names may differ, but the field datatypes must correspond to each other.
LoadBalancingPartition distributes incoming input data records among different output ports according to workload of all attached output components.
Each incoming record is sent to one of the attached output ports. The output port is chosen according to speed of the attached components. The component starts separate working threads for each output port, which concurrently read incoming data records from single input port and send them to dedicated output port.
Consider different edge implementations and theirs consequences for the described algorithm. For example, direct edge implementation has a cache for hundreds or even thousands of records, so a transformation processing just a small number of data records can send all incoming records to a single output branch. System thread scheduler causes all data to be processed by a single thread. In general, this component is useful in case of a large number of data records.