A robust health check endpoint for monitoring Sophra system components
NextResponse
object containing the health check results.
serviceManager.checkConnections()
to verify the status of Elasticsearch, PostgreSQL, and Redis connections.Data Flow
Error Scenarios
Recovery Strategies
Logging and Monitoring
NODE_ENV
setting, allowing for environment-specific behavior.