Amazon CloudFront - Dynamic content delivery

Provide customized, dynamic web content at no additional cost, without writing new code

When you deliver dynamic content such as web applications or APIs directly from an Amazon Elastic Load Balancer (ELB) or Amazon EC2 instance to end users on the Internet, you can improve the performance, availability, and security of your content by using Amazon CloudFront as your content delivery network use. With Amazon CloudFront, end-user connections will go to CloudFront locations in their vicinity, helping to reduce the overall time for data circulation required to establish the connection. These CloudFront locations are connected to the heavy-duty Amazon backbone network, which offers great performance and availability for connecting to AWS Origins. In addition, various other optimizations such as persistent TCP connections to the origin, SSL extensions such as session tickets and OCSP stacking help to improve the performance even with dynamic content that cannot be cached.

Use cases for dynamic content delivery with a CDN

Application development, APIs, IoT, telemetry

With inbound data and API calls from devices, the responsiveness and reliability of short, clustered requests are required for effective real-world interactions and positive device behavior. Additionally, the emerging world of voice assistants, smart homes, and other applications that require a low-latency connection to cloud resources in order to process responses or actions can benefit from the transaction acceleration provided by the CDN, especially when devices are on transient, congested or lost connections can be used.

Use case: Slack uses Amazon CloudFront for secure API acceleration.

With Amazon CloudFront, Slack has improved API security and reduced response times by around 300 ms. Average global latency to decreased from 90 ms to 15 ms. The team uses Amazon CloudFront to accelerate its API around the world. It gives them the flexibility to apply various security measures at Edge.

Retail / e-commerce / travel

These applications are highly personalized (e.g. recommendations) and can be changed dynamically (e.g. inventory, pricing). Finding products quickly using search and browsing is critical. Performance improvements in applications lead directly to more sales and customer loyalty in this area. The support of dynamic content profiles and optimization of transaction acceleration by Amazon Cloudfront makes applications like these efficient even when there is high demand. Extensive options for cookie and query string processing, cache key modification, CDN and client-side cache control make it possible to maximize which content is cached and what comes directly from the source.

Targeted ads are calculated instantly based on data in cookies or query strings, as advertisers generally need a small amount of latency to display ads. Amazon CloudFront can help meet the performance and personalization needs for such applications by either accelerating the targeted advertising calls from the client to the ad server, caching and serving the advertising, or optimizing the calls for report beacons.

News, sports, local news, weather

Web applications of this type often have a geographic focus with tailor-made content for end users. Content can be cached at edge locations for different lengths of time depending on the type of content. For example, hourly updates can be cached for up to an hour, while urgent warnings are only cached for a few seconds so that end users always have the latest information. A content delivery network is a great platform for delivering common types of news and weather experiences, such as: B. Articles, dynamic map tiles, overlays, forecasts, news or alarm tickers and videos.

Case Study: Earth Networks Leverages Amazon CloudFront to Improve User Experience.

Earth Networks provides weather and atmospheric data to consumers and businesses. Millions of users choose the company's WeatherBug products, which include mobile and desktop applications, as well as the website.

Earth Networks uses a CDN so that dynamic and personalized web-based content can be delivered to users quickly, with low latency and short response times. In particular, they need to be able to offer the user local data in near real time and need a CDN that enables them to adjust aspects such as time-to-live, query strings, cookie data so that they can report the information on the origin and only the data that the user needs is retrieved.

Amazon Cloudfront offers many advantages for mobile applications and websites. From device detection and caching variants according to device properties to working with Lambda @ Edge for image optimization, Cloudfront can improve responsiveness and save costs by reducing the bytes supplied while preserving the visual experience.