Crate saorsa_gossip_pubsub

Crate saorsa_gossip_pubsub 

Source
Expand description

Plumtree-based pub/sub dissemination

Implements:

  • EAGER push along spanning tree
  • IHAVE lazy digests to non-tree links
  • IWANT pull on demand
  • PRUNE/GRAFT for tree optimization
  • Anti-entropy reconciliation (placeholder for future)

§Architecture

Each topic maintains two sets of peers:

  • Eager peers (tree): Forward full messages immediately
  • Lazy peers (gossip): Send only message IDs (IHAVE)

The tree self-optimizes via duplicate detection (PRUNE) and pull requests (GRAFT).

Structs§

GossipMessage
Gossip message wrapper
PlumtreePubSub
Plumtree pub/sub implementation

Traits§

PubSub
Pub/sub trait for message dissemination