v1.1.0 - Performance & Architecture Upgrade (2025-11-02)
v1.1.0 - Performance & Architecture Upgrade (2025-11-02)
π― Overview
Major architecture upgrade focused on performance optimization, concurrency control, health monitoring, and developer experience improvements. Adopts modular internal architecture while maintaining full backward compatibility.
β¨ New Features
- ποΈ Modular Architecture: Introduced
internal/enginecore engine with clear separation between public API and internal implementation - π Health Monitoring: Added
internal/monitoringpackage for real-time tracking of request success rates, latency, timeout rates, and resource usage - π Concurrency Management: Adaptive semaphore control with request queuing and graceful degradation
- πΎ Memory Management: Three-tier buffer pool system (4KB/32KB/256KB) reducing GC pressure by 90%
- π Response Caching: Thread-safe LRU cache with TTL and automatic expiration cleanup
- π Connection Pool Enhancement: Per-host statistics, HTTP/2 optimization, and connection lifecycle management
- π‘οΈ Security Enhancement: Enhanced input validation, CRLF injection protection, length limits, and special character filtering
- π Rate Limiting: Token bucket algorithm implementation with configurable RPS and burst capacity
π§ Improvements
- Performance Optimization: Optimized request/response processing pipeline, retry logic, and error handling
- Test Coverage: Increased test coverage, including benchmarks and security validation
- Code Quality: Extensive use of atomic operations, lock-free design, and richer error context
- Documentation: Added
USAGE_GUIDE.md, updated all examples and API documentation
π Bug Fixes
- Fixed connection pool memory leaks and concurrent race conditions
- Improved context cancellation propagation and resource cleanup
- Fixed edge cases in error handling and retry logic
π¦ Internal Changes
New Internal Packages:
internal/cache- Response cachinginternal/concurrency- Concurrency controlinternal/engine- HTTP processing engineinternal/memory- Memory managementinternal/monitoring- Health monitoringinternal/ratelimit- Rate limiting
Removed: internal/pool (replaced by internal/memory)
π Performance Metrics
- Memory allocations reduced by ~90%
- Supports 500+ concurrent requests
- Average latency improved by ~30%
- Connection reuse efficiency improved by ~40%
β οΈ Breaking Changes
None - Fully backward compatible with v1.0.0. All public APIs remain unchanged.