Working with CDNs

When a user accesses your website, it has to fetch all the static content that is provided for a specific page. This implies the following actions:

  • A browser has to request all images, files, and scripts that are required by a web page
  • The requests have to be queued, as there is a limit on how many requests to a single domain a browser can perform
  • In most cases, a page has to be rendered gradually, as the content is fetched from the server
  • A server can throttle requests if it is currently overloaded
  • A browser has to respect all implemented caching mechanisms,of course, if your website tells it how to do it

We can describe the whole process as follows:

In the preceding scenario, each request from a user is routed directly ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.