G RATIO TECH
Blog

Cloud & performance

CloudFront: observe connections before trying to optimise them

AWS adds network and TLS visibility to CloudFront. How to use the extra context for diagnosis without jumping to conclusions.

· G RATIO TECH · Technology insights

What changed on October 30

AWS announced two optional headers that CloudFront can forward to an origin server: CloudFront-Viewer-ISP identifies the internet provider, while CloudFront-Viewer-TLS-Details describes cryptography on the viewer connection. This can help observe post-quantum cryptography usage. The official announcement is linked below.

Start with a specific question

Our recommendation is to start with an observable problem: does a page seem slow for some visitors, or does an error concentrate on a particular journey? Collecting more data without a question can simply create more logs. First define the outcome your team wants to explain.

For a business already using CloudFront, we suggest a limited trial with a baseline period. Record application changes made during that time. If a new website version ships at the same time as data collection begins, separating the effects becomes harder. Decide who will review the findings before enabling additional collection.

Compare without assigning blame too early

A concentration of errors within a visitor group should prompt investigation, not a verdict. Our advice is to compare the same journey over comparable periods and account for request volume. A few failures in a small sample do not characterise an entire population.

As a proposed example, if a contact form fails, compare the network observations with HTTP status and application errors. Check what happened on the server as well. This article is not a benchmark: we have not measured speed improvements or incident reductions ourselves. Treat any proposed explanation as a hypothesis until it has been tested.

Preserve cache behaviour

The AWS guide distinguishes information forwarded to the origin from information included in the cache key. An origin request policy can forward headers without adding them to that key. Check the restrictions for each header before changing your distribution.

We recommend keeping a copy of the configuration and checking that pages still return the expected content. Observation is the goal of this first step. Avoid combining it with content personalisation or a redesign of caching rules, which would make the results harder to interpret. Define a straightforward way to reverse the configuration change if needed.

Turn measurements into a decision

For TLS monitoring, our advice is to document exactly what was observed and which connections the measurement does not cover. A connection characteristic is not a complete security audit of your application. Similarly, do not present origin logs as a census of all visits without verifying their coverage.

At the end of the trial, retain only information that supports a useful decision. Set a retention period and give someone responsibility for analysis. For a small team, a narrow but reproducible diagnosis is more useful than a dashboard nobody checks.

Discuss your technical priorities ↗