Viewing the code and executing the Route - 7.0

Load Balancer - Mediation

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Routing components (Mediation) > Load Balancer components (Mediation)
Data Quality and Preparation > Third-party systems > Routing components (Mediation) > Load Balancer components (Mediation)
Design and Development > Third-party systems > Routing components (Mediation) > Load Balancer components (Mediation)
EnrichPlatform
Talend Studio

Procedure

  1. Click the Code tab at the bottom of the design workspace to check the generated code:
    As shown above, while messages are routed from the source endpoint .to the destination endpoints, routing load balancing is implemented according to the .roundRobin() method by cLoadBalancer_1.
  2. Press F6 to run your Route.
    RESULT: Of the four messages from the sender, two are routed to Receiver_A and two are routed to Receiver_B in a round robin manner.