Module query_batcher

Module query_batcher 

Source
Expand description

DHT query batching and frequency optimization

This module provides batching and rate limiting for DHT queries to:

  • Reduce network traffic by batching similar queries
  • Control query frequency to prevent network flooding
  • Merge duplicate queries
  • Implement adaptive query delays based on network conditions

Structs§

PendingQuery
A pending query in the batch queue
QueryBatchResult
Result of a batched query
QueryBatcher
DHT query batcher
QueryBatcherConfig
Configuration for query batching
QueryBatcherStats
Statistics for query batching

Enums§

QueryBatcherError
Errors that can occur during query batching
QueryType
Type of DHT query