Skip to content

docs(0262): link the cache verification report to ADR 0012 - #286

Merged
karczuRF merged 1 commit into
developfrom
docs/0262_link-cache-decision-adr
Sep 4, 2026
Merged

docs(0262): link the cache verification report to ADR 0012#286
karczuRF merged 1 commit into
developfrom
docs/0262_link-cache-decision-adr

Conversation

@karczuRF

@karczuRF karczuRF commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Docs only. Follows the operator's decision of 2026-09-04: no CloudFront, no X-Cache header at this point in the project — record the reasoning instead. That record is ADR 0012, already on develop. This PR is the cross-link.

prices-api-cache-verification.md measures the cache and asks for a reworded criterion, but it never said why the architecture was left alone rather than changed so the question would not arise. A reader arriving at either document now finds the other.

The note is worded to close the alternatives rather than list them — both are rejected in the ADR with reasons, so proposing either again needs a new argument, not a re-reading.

Why the decision went this way, in one paragraph

The expensive hop is the database, and the stage cache already removes it — hits at 45–53 ms against misses at 78–145 ms, verified in 0122. Nothing in Tranche 2 asks for edge latency, and no measured user problem points at it. A handler-written X-Cache would report the opposite of the truth, proven with body hashes across a TTL boundary: the gateway replays cached bytes and the Lambda only runs on a miss. And CloudFront emits X-Cache: Hit from cloudfront, so after 3–5 days of edge work the criterion's literal wording is still unmet and the same reviewer conversation is still required.

Cost is explicitly not the reason — roughly neutral, with the certificate already in us-east-1.

The ADR carries a "when to revisit" list (distant-client latency becoming a real requirement, egress economics changing, or an edge-only launch requirement) and warns that another X-Cache request is not on it.

Also

Repoints the task link at archive/ — 0122 was archived on 2026-09-04.

The report measures the cache and asks for a reworded criterion; it did not say
why the architecture was left alone rather than changed to avoid asking. ADR
0012 is that record, so the two are cross-linked and a reader arriving at
either finds the other.

The note is deliberately worded to close the alternatives rather than list
them: a handler-written header and a CloudFront distribution are both rejected
in the ADR with reasons, and someone proposing either again needs a new
argument.

Also repoints the task link at archive/ — 0122 was archived on 2026-09-04.
@karczuRF
karczuRF merged commit 42133b9 into develop Sep 4, 2026
3 checks passed
@karczuRF
karczuRF deleted the docs/0262_link-cache-decision-adr branch September 4, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant