# CDN

## Pros of using CDN

* Faster website performance and load times
* Reduced server load and improved reliability
* Better security and protection against cyber attacks
* Global reach and better user experience
* Efficient handling of traffic spikes

## Cons of using CDN

* Can be expensive for high-traffic websites
* Setting up and configuring a CDN can be complex
* Issues with cache consistency may arise
* Potential privacy concerns and data collection by CDNs
* Possible introduction of latency or other performance issues

## Links

* [Video by ByteByteGo: What Is A CDN? How Does It Work?](https://youtu.be/RI9np1LWzqw)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.dmmax.me/system-design/cdn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
