28.01.21 5 Min read
Book a Demo
These smart CDN configurations can reduce your overall cloud-related costs.
The premise of CDNs traditionally stresses user experience, availability, reliability, and scalability. Deploying CDNs to provide better performing applications and websites for the end-user’s benefit usually means added costs to infrastructure spend.
Our customers already know it could actually be the other way around.
GlobalDots is today a cloud integrator of multiple competences, from cloud security to a fast-growing FinOps department. But 17 years ago, it actually began from CDN value-added services, helping customers maximize performance and coverage while ensuring competitive pricing. This article peeks into our secret arsenal of tricks, which save our customers some 45% off their overall cost of cloud-based web and mobile application operations.
Before we optimize any costs, we must first understand their structure. Cloud-based web delivery infrastructure divides into two main cost categories: CDN costs and cloud costs.
CDN billing is normally based on outgoing traffic delivered in GBs/TBs/PBs per month. Different rates apply to different levels of product, geographic reach and capabilities, e.g static object caching vs. dynamic traffic acceleration, HTTPS support and more.
This is where complexity builds up, but we’ll do our best to simplify things:
Each model will determine the way you’ll be billed, but at a high-level you pay for
compute power in seconds / minutes / hours / days, depending on the instance and
service types you choose.
Assuming the use of both cloud and CDN services, the high-level cost formula would be:
Overall Cost = CDN Cost + Cloud Costs (Storage + Computing + Data Transfer)
Using our CDN expertise, we came up with some configuration techniques that contribute to cloud Cost Optimization. We seek to address highly complex problems (like deciphering AWS data transfer cost structure) with elegant, cost-effective solutions.
Techniques below divide into 3 main areas: Offload, Network & Data Transfer and Compression Optimizations.
Using a 2nd layer of caching, such as parent cache servers (also called tiered distribution), tiered cache, regional edge caches, or shielding, depending on the CDN provider) can improve the cache hit ratio and the origin offload, and by that reduce the cloud Storage and Data Transfer costs of static objects. This feature can increase the cache hit ratio to ~90%.
But to really maximize cache hit ratio, some CDN providers offer a 3rd layer of caching, which practically acts as your origin entry point. With this “cold storage” functionality, you get a dedicated cache layer, and can control on how often the CDN fetches content from your cloud workload.
Depending on the CDN provider, the 2nd or 3rd layers of caching might incur additional costs. However, the overall savings often surpass this added cost, and the overall bill is reduced. By analyzing your web and application ecosystem, our experts assess whether cache layering may improve your position – or recommend alternative measures.
Dynamic content is the non-cacheable portion of an application. Examples include:
These items must be fetched directly from the cloud workload, time and time again. Here, response time mostly depends on server side / application backend think-time, on which CDN has little to no impact. Therefore, the savings potential of using a CDN for dynamic content is much smaller than it is for static content.
Is it, then, inevitable for cloud costs to soar with traffic?
Now comes the cool part. Given enough traffic volume and geo distribution, expanding CDN usage to the dynamic content may reduce data transfer costs, so you come out ahead at the overall costs level. How come? Well, it’s related to the way CDNs are architected and interact with the cloud workload.
When interacting with cloud workload, each client’s request off the application opens a separate connection, including a separate TCP/TLS handshake process. Now imagine millions of clients constantly interacting with the cloud workload, opening and closing connections throughout the day.
This is where CDN comes in. Each CDN Edge POP (Point of Presence) can aggregate multiple incoming client connections, then push them to the cloud workload in a single request. The CDN-to-workload connections remain open, thus less individual connections are needed to send and receive the same amount of dynamic content. Whereas every connection is billed for, this work method is a massive saver.
Do note that this method is best suited to a very specific traffic profile. Similarly to the Offload Optimization use-case, our team analyzes each application traffic profile to establish whether this move will worth your while. Of course, your profile may enfold entirely new ways to streamline CDN usage and reduce your overall cloud bill. The very thought of it gets us excited. Go figure.
Compression methods for images, large files, and text-based files, help us deliver more content while transmitting less bytes. As websites and applications become increasingly engaging and complex, webpages grow ever heavier. On the flip side, the more bytes we need to deliver per page, the slower it gets, and we end up paying more for cloud and CDN resources.
Now, not all browsers support Brotli Accept-Encoding/Content-Encoding, so we need some fallback. Once we’ve analyzed which text-based files are frequently requested, we can create 2 file versions – GZIP and Brotli compressed – and cache both in the CDN.
Next, using the CDN layer, we’ll implement a logic that checks whether the client’s browser supports Brotli, then serves the Brotli versions wherever possible.
As shown above, investing more in CDN capabilities may sometimes reduce the overall cost of cloud + CDN. Figuring whether this can work for you requires holistic, in-depth analysis by web performance experts.
In GlobalDots, we regularly save customers significant amounts off their cloud-related costs, carefully choosing the relevant, most effective measures per case. It takes years of technical expertise, honest concern, and a healthy portion of creativity.
And the best news? There’s always more to do and discover. Every business is a new treasure map of savings opportunities. Yours too.
Contact us to learn more.
The move to the cloud has enabled tech leaders to modernize their infrastructure and improve application availability, scalability, and performance.
Cloud cost management is one of the major pain points various organizations have when migrating to the cloud. Cloud costs can sometimes be difficult to estimate, due to the complexity of the cloud inf
Imagine navigating your digital ship through the turbulent seas of cloud storage management. One wrong calculation, and you’re either sinking under the weight of overprovisioning or losing speed due to performance hiccups. But what if there was a compass that could make this voyage smooth sailing? GlobalDots presents you with an Autoscaler that’s revolutionizing the […]
Schedule a call with our experts. Discover new technology and get recommendations to improve your performance.