The web layer of the architecture is mostly concerned about displaying and collecting data and passing it to the application layer for further processing. In the case of an e-commerce website, each product will have multiple images and maybe videos to show a product's texture and demos, which means the website will have lots of static content with a read-heavy workload since, most of the time, users will be browsing products.
Storing static content in the web server means consuming lots of storage space, and as product listings grow you have to worry about scalability. The other problem is that static content (such as high-resolution images and videos) is large, which may cause significant load latency on the user's end. The web tier needs to utilize the Content Distribution Network (CDN) to solve this issue.
CDN providers (such as Akamai, Amazon CloudFront, Microsoft Azure CDN, and Google CDN) provide edge locations across the globe where static content...