See information about the latest product version
Associating fan-out and fan-in aggregation flows
Associate the fan-out message flow processing with its corresponding fan-in message flow processing by setting the Aggregate Name property of the AggregateControl and AggregateReply nodes in your aggregation flow to the same value.
If you did not configure this property when you created your fan-in and fan-out flows, you must complete this task.
Before you start:
You must have completed the following tasks:
The Aggregate Name must be contextually unique within a broker. You can have only one AggregateControl node and one AggregateReply node with a particular Aggregate Name, although you can have more than one AggregateControl node with the same Aggregate Name, see Using multiple AggregateControl nodes. Do not deploy a fan-in flow to multiple execution groups on the same broker; results are unpredictable.
You can either create the fan-out and fan-in flows in the same message flow, or in two different message flows. In either case, the two parts of the aggregation are associated when you set the Aggregate Name property.
How you configure your aggregation flow depends on a number of factors:
- The design of your message flow.
- The hardware on which the broker is running.
- The timeout values that you choose, see Setting timeout values for aggregation.
- How you expect to maintain the message flows.
You can include the fan-out and fan-in flow within the same message flow. However, you might prefer to create two separate flows. The advantages of creating separate fan-out and fan-in flows are:
- You can modify the two flows independently.
- You can start and stop the two flows independently.
- You can deploy the two flows to separate execution groups to take advantage of multiprocessor systems, or to provide data segregation for security or integrity purposes.
- You can allocate different numbers of additional threads to the two flows, as appropriate, to maintain a suitable processing ratio.
You can view information about samples only when you use the information center that is integrated with the WebSphere® Message Broker Toolkit or the online information center. You can run samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit.
To associate the fan-out flow with the fan-in flow: