Skip to main content

Module content_routing_optimizer

Module content_routing_optimizer 

Source
Expand description

Content Routing Optimizer

Optimizes content routing decisions by maintaining a cost model for fetching blocks from different peers, caching routing decisions, and detecting when cached routes have become stale.

Structsยง

ContentRoutingOptimizer
Content routing optimizer that caches and manages peer routing decisions.
OptimizerConfig
Configuration knobs for the ContentRoutingOptimizer.
RouteCost
Cost model for fetching content from a specific peer.
RouteEntry
A cached routing entry for a single CID.
RoutingStats
Aggregate statistics for the routing optimizer.