Rule 2: Use a Content Delivery Network
- It's necessary to deploy content across multiple, geographically dispersed servers.
- if the component web servers are closer to the user, the response times of many HTTP requests are impoved.
A content delivery netword(CDN) is a collection of web servers ditributed across multiple locations to deliver content to users more efficiently. eg, CDN may choose the server with the fewest network hops or the server with the quickest response time.
CDN bring other benefits: backups, extended storage capacity, caching,
Drawback: your response times can be affected by traffic from other web sites; the occasional inconvenience of not having direct control of the content servers, eg, modifying the HTTP response headers; If CDN service provider's performance degrades, so does yours. so, like eBay and MySpace each use two CDN service providers,,,
CDNs are used to deliver static content, images, scripts, stylesheets and flash. Serving dynamic HTML pages involves specialized hosting requirment: database connections, state management, authentication, hardware and OS optimizations --- the complexities are beyond what a CDN provides.