Skip to content

v1.1.0 - Performance & Architecture Upgrade (2025-11-02)

Choose a tag to compare

@cybergodev cybergodev released this 03 Nov 03:35
· 98 commits to main since this release
01bb37f

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/engine core engine with clear separation between public API and internal implementation
  • πŸ“Š Health Monitoring: Added internal/monitoring package 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 caching
  • internal/concurrency - Concurrency control
  • internal/engine - HTTP processing engine
  • internal/memory - Memory management
  • internal/monitoring - Health monitoring
  • internal/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.