--- url: "https://www.enterpriseintegrationpatterns.com/patterns/conversation/LoadBalancer.html" titulek: "Load Balancer - Enterprise Integration Patterns 2" h1: "" popis: "Enterprise Integration Patterns" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 14:54:11" znaku: 1082 slov: 149 kodovani: "utf-8" sha256: "2790f88abfd7e09e4efa41a70709d455316978d8da8eb0911a36c82dbc42b71e" --- | | Load Balancer[Conversation Patterns](index.html) » [Intermediaries](MultiIntro.html) | [Contents](toc.html)[⇐ Prev](Relay.html)[Next ⇒](Aggregator.html) | | --- | --- | --- | Multiple identical providers can service a message. How can incoming messages be shared among the providers? Can use message queue with competing consumers - most efficient as consumers work at optimal loadMessage queue does not always work.May need to send related messages to the same participant (stickiness).Providers should not know about each other. The initiator makes outbound requests to a *Load Balancer*, which distributes messages across the providers. The *Load Balancer* conversation involves the following participants: - The *Initiator* initiates the conversation by sending a message to the *Load Balancer* . - The *Load Balancer* listens for messages and forwards them to the *Provider* s. The *Provider* may be unaware of the *Load Balancer* . - The *Provider* s may share information with the *Load Balancer* to optimize with the distribution of messages. *Load Balancer* can receive Heartbeat from *Provider*s ## Example: Load Balancer ---