Spaces:
Sleeping
Sleeping
Commit History
-
feat(logging): Enhance logging with structured events and error handling
17ba139
-
refactor(cache): Improve Redis connection pool configuration handling
- Extract connection pool parameters into a dictionary for better maintainability - Add conditional password parameter to avoid passing None to Redis client - Enhance logging with host and port information for better debugging - Simplify pool initialization by using dictionary unpackingf9e7162 -
perf(cache): Implement Redis connection pooling with health checks
- Replace direct Redis client initialization with ConnectionPool for better resource management - Add connection pool configuration with max_connections=10 to limit concurrent connections - Enable socket keepalive to maintain persistent connections and detect stale connections - Set socket_connect_timeout to 5 seconds for faster failure detection - Enable retry_on_timeout to handle transient network issues gracefully - Add health_check_interval=30 for periodic connection validation - Update docstring to reflect connection pooling implementation - Add info-level logging when Redis client is initialized with pool configuration - Improves performance and reliability by reusing connections and preventing connection exhaustion9a8cccf
-
Implement structured logging system across AUTH Microservice
- Added JSONFormatter and StructuredLogger classes for structured logging. - Implemented setup_logging() and get_logger() functions for logging configuration. - Integrated structured logging into app/main.py, app/auth/controllers/router.py, app/system_users/controllers/router.py, app/dependencies/auth.py, app/nosql.py, app/cache.py, app/core/db_init.py, app/internal/router.py, and app/system_users/services/service.py. - Updated logging calls to include structured context and error handling. - Created comprehensive logging documentation (PRODUCTION_LOGGING_IMPLEMENTATION.md and PRODUCTION_LOGGING_SUMMARY.md) detailing logging architecture, usage, and best practices.755d6cd
-
feat: Implement System Users module for authentication and user management
- Added `system_users` package with controllers, models, schemas, and services. - Created API endpoints for user login, registration, user management, and password change. - Implemented JWT authentication and user role management. - Added database management utilities for creating indexes and default roles. - Updated requirements.txt with necessary dependencies for FastAPI, MongoDB, and JWT handling. - Created a startup script to set up the environment and run the FastAPI server.7a5b513