How indexed queries to a node's routing table are performed remotely, and how the results are efficiently streamed.
Preliminaries: Cluster Membership and the Routing Table
Wetware nodes form a cluster in which peers maintain a mutual awareness of each other. This mutual awareness is provided by the cluster.RoutingTable interface. The routing table maintains an indexed set of routing.Records, each of which is periodically broadcast by a peer as a form of heartbeat and contains routing information and metadata about its originator.
For convenience, here is routing.Record:
// Record is an entry in the routing table.
type Record interface {
// Server ID is a globally unique identifier for