Skip to main content

Module pool

Module pool 

Source
Expand description

Agent connection pool for Protocol v2.

This module provides a production-ready connection pool for managing multiple connections to agents with:

  • Connection pooling: Maintain multiple connections per agent
  • Load balancing: Round-robin, least-connections, or health-based routing
  • Health tracking: Route requests based on agent health
  • Automatic reconnection: Reconnect failed connections
  • Graceful shutdown: Drain connections before closing

Structs§

AgentPool
Agent connection pool.
AgentPoolConfig
Configuration for the agent connection pool.
AgentPoolStats
Statistics for a single agent in the pool.

Enums§

FlowControlMode
Flow control behavior when an agent signals it cannot accept requests.
LoadBalanceStrategy
Load balancing strategy for the connection pool.
V2Transport
Transport layer for v2 agent connections.

Constants§

CHANNEL_BUFFER_SIZE
Channel buffer size for all transports.