dmsg is a distributed messaging system comprised of three types of services:
dmsg.Clientrepresents a user/client that wishes to use the dmsg network to establishdmsg.Sessions anddmsg.Streams.dmsg.Serverrepresents a service that proxiesdmsg.Streams betweendmsg.Clients.dmsg.Discoveryacts like a DNS ofdmsg.Servers anddmsg.Clients, identifying them via their public keys.
[D]
S(1) S(2)
// \\ // \\
// \\ // \\
C(A) C(B) C(C) C(D)
Legend:
[D]-dmsg.DiscoveryS(X)-dmsg.ServerC(X)-dmsg.Client
dmsg.Clients and dmsg.Servers are identified via secp256k1 public keys, and store records of themselves in the dmsg.Discovery. Records of dmsg.Clients also includes public keys of dmsg.Servers that are delegated to proxy data between it and other dmsg.Clients.
The connection between a dmsg.Client and dmsg.Server is called a dmsg.Session. A connection between two dmsg.Clients (via a dmsg.Server) is called a dmsg.Stream. A data unit of the dmsg network is called a dmsg.Frame.
made with goda
goda graph github.com/skycoin/dmsg/... | dot -Tsvg -o docs/dmsg-goda-graph.svg