# CDN उपयोग और अनुकूलन — वेब प्रदर्शन अनुकूलन

Source: https://www.geekswithgeeks.com/hi/web-performance/web-perf-08

> विलंबता को कम करने और वैश्विक प्रदर्शन में सुधार के लिए कंटेंट डिलीवरी नेटवर्क का लाभ उठाएं।

## CDN सिद्धांत और चयन

CDN caches content at edge locations closest to users, reducing round-trip time. Popular options: Cloudflare, AWS CloudFront, Akamai. Choose based on coverage, performance in your target regions, and pricing.

## CDN कॉन्फ़िगरेशन सर्वोत्तम प्रथाएं

Configure cache TTL, compression, HTTP/2 push rules, and geographic routing. Monitor cache hit rate (target >90%). Use origin shielding to reduce load on primary servers. Purge cache after deployments.

## CDN प्रदर्शन माप

Monitor TTFB from different geographic regions. Use tools like Speedtest.net, WebPageTest with various locations. A/B test with/without CDN to quantify improvement (typically 30-50%).

त्वरित जाँच

**Quiz:** CDN के लिए विशिष्ट कैश हिट दर लक्ष्य क्या है?

- [ ] >90%
- [ ] >50%
- [ ] >70%
