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§
- Agent
Pool - Agent connection pool.
- Agent
Pool Config - Configuration for the agent connection pool.
- Agent
Pool Stats - Statistics for a single agent in the pool.
Enums§
- Flow
Control Mode - Flow control behavior when an agent signals it cannot accept requests.
- Load
Balance Strategy - Load balancing strategy for the connection pool.
- V2Transport
- Transport layer for v2 agent connections.
Constants§
- CHANNEL_
BUFFER_ SIZE - Channel buffer size for all transports.