## Peer-to-Peer Protocols

### Overview

Peer-to-peer protocols enable messaging clients to communicate with each other directly, eliminating the requirement to route messages through an external message broker.

### Summary of peer-to-peer protocols

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://``PeerGroup``/``BrokerName``?``BrokerOptions` | 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`).

### Broker options

The `peer` protocol supports a variety of broker options. For details, see the broker options listed in Table 7.1 .