LibraryToggle FramesPrintFeedback

The peer protocol enables you to set up a peer-to-peer network by creating an embedded broker inside each peer endpoint. Figure 6.1 illustrates the peer-to-peer network topology for a simple two-peer network.


In this topology, a standalone broker is not required, because each peer instantiates its own embedded broker. As shown in Figure 6.1 , the producer sends messages to its embedded broker, broker1, by connecting to the local VM endpoint, vm://broker1—see VM Transport . The embedded brokers, broker1 and broker2, are linked together using a network connector, which allows messages to flow in either direction between the brokers. When the producer sends a message to the queue, TEST.FOO, the first embedded broker, broker1, automatically pushes the message across the network connector and on to the remote embedded broker, broker2. The consumer can then receive the message from its embedded broker, broker2.

Comments powered by Disqus