Description
The Redis pub/sub mechanism used for messaging triggers client connection initialization on each new connection without proper resource cleanup. Under high concurrent load, this results in socket descriptor exhaustion and connection drops.
Proposed Refactoring
- Implement a centralized Redis client connection pool.
- Ensure listener connections are properly released and cleaned up on socket disconnect/error events.
Description
The Redis pub/sub mechanism used for messaging triggers client connection initialization on each new connection without proper resource cleanup. Under high concurrent load, this results in socket descriptor exhaustion and connection drops.
Proposed Refactoring