ADR-008: Gossip Protocol for Discovery
Status
Accepted
Context
Need automatic node discovery without central registry.
Decision
Implement gossip protocol for peer discovery and health monitoring.
Consequences
Positive
- No single point of failure
- Self-healing
- Scales well
Negative
- Eventual consistency
- Network overhead
Alternatives Considered
- mDNS: Limited to local network
- Central registry: Single point of failure
- Static configuration: Not dynamic
Implementation
Each node maintains a partial view of the cluster and periodically exchanges membership information with random peers. Failed nodes are detected through heartbeat timeouts and removed from the membership list.