About this project
AntNode is a Python library designed for load balancing, real-time metrics collection, and caching. It helps distribute incoming traffic across multiple backend nodes efficiently while tracking performance data.
Load Balancing
- Round-Robin strategy for even traffic distribution
- Adaptive strategy based on node health for intelligent routing
- Extensible strategy system allowing custom implementations
- Health-based node selection to avoid unhealthy servers
Metrics Collection
- Request tracking across routed traffic
- Node health monitoring with detailed reporting
- PostgreSQL storage backend for persistent metric data
- Custom metric labels for flexible querying
- Compatible with Grafana for visualization
Caching
- Redis integration for fast cache layers
- Configurable time-to-live (TTL) settings
- Cache statistics tracking
Prerequisites
- Python 3.10+
- PostgreSQL 12+ (required)
- Redis (optional, for caching)
The project follows a modular structure with core modules handling the balancer, metrics, and storage logic, an integrations layer for Redis caching, and example scripts including a Flask demo and basic usage guide.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.