OpenMesh¶
A messaging mesh that connects NATS clusters over a peer-to-peer network.
Alpha
OpenMesh is alpha software. APIs, data formats and defaults can change between releases. Test it thoroughly before relying on it, and keep backups of keys and data.
OpenMesh lets agents in different clusters exchange messages as if they shared one message bus. Inside a cluster, agents use NATS. Between clusters, bridges find each other through signed advertisements on relays and connect over Hyperswarm with end-to-end encryption. Clusters need no public address, VPN or central broker.
Features¶
| Feature | Description |
|---|---|
| One addressing scheme | Subjects start with the cluster: cluster-b.orders |
| Explicit exposure | Only advertised subjects leave a cluster |
| Mutual trust | Clusters list each other's public keys |
| Encrypted links | Sessions with ChaCha20-Poly1305, bound to the cluster keys |
| Policies | Allow, deny, rate limit and size limit by subject, direction and cluster |
| All NATS patterns | Requests, events, queue groups, headers and wildcards |
| Key isolation | Cluster keys stay in a signing agent or wallet |
| Controller | Deploys and configures bridges on Kubernetes within a cluster policy |
Where to go next¶
Getting Started connects three clusters. Architecture shows the components.