Connection pooling ले प्रत्येक अपरेशनको लागि कनेक्शन खोल्ने र बन्द गर्नुको सट्टा स्थापित Redis कनेक्शनहरूको सेट धेरै अनुरोधहरूमा पुनः उपयोग गर्छ। यो concurrent अनुरोधहरू ह्यान्डल गर्ने अनुप्रयोगहरूमा प्रदर्शन र संसाधन दक्षताको लागि महत्वपूर्ण छ, र अधिकांश Redis clients पूर्वनिर्धारितद्वारा pool गर्छन्।
समस्या: 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: कनेक्शनहरू पुनः उपयोग गर्नुहोस्
redis = ({
: ,
});
