Peer-to-peer protocols enable messaging clients to communicate with each other directly, eliminating the requirement to route messages through an external message broker.
Table 1.3 describes the peer-to-peer protocols that clients can use.
Table 1.3. Summary of Peer-to-Peer Protocols
Protocol | Sample URL | Description |
---|---|---|
Peer | peer:// | Configure clients to connect to their peers in the group with the group name,
PeerGroup . The BrokerName
specifies the broker name for the embedded broker. The broker options,
BrokerOptions , are specified in the form of a query
list (for example, ?persistent=true ). |
The peer
protocol supports a variety of broker options. For details,
see the broker options listed in Table 6.1 .