Release v1.54.2
🚀 Enhancement
🔹 Smart HTTP Server Activation
GoFr now intelligently manages its internal server lifecycle, conditionally booting the HTTP stack only when relevant components are registered.
- Resource Efficiency: Drastically reduces memory and CPU overhead for gRPC-only services or background workers by keeping dormant server components inactive.
- Automated Discovery: Dynamically identifies the need for an HTTP server based on registered routes, static files, or custom handlers.
- Streamlined Footprint: Prevents unnecessary port occupancy and improves application startup time for specialized services.
🛠️ Fixes
-
Panic Prevention in DB Metrics: Added essential nil checks in the database operations logic to prevent potential panics during telemetry collection.
-
Migration Version Chaining: Fixed the chaining logic for fetching the last migration version to ensure consistency across complex deployments using multiple datasources.
-
Docker Compose Port Mappings: Resolved incorrect port assignments for Redis and MySQL in the
http-serverexample, streamlining the local development environment.