Connection pooling reuses a set of established Redis connections across many requests instead of opening and closing a connection for each operation. It's important for performance and resource efficiency in applications that handle concurrent requests, and most Redis clients pool by default.
The problem: connection overhead
Opening a new connection per request is wasteful:
→ TCP handshake + (TLS handshake) + AUTH on EVERY request → latency + CPU
→ many short-lived connections exhaust file descriptors / Redis's client limit
→ Under load, creating/destroying connections becomes a real bottleneck.
Connection pooling: reuse connections
redis = ({
: ,
});
