URL Shortener & Link Management Service · View 17 of 23 · Runtime
Counting from the log
- Both cached and uncached clicks appear in the edge access log, so the count does not depend on how many requests reached application code.
- The resolver log is a second, smaller stream used for cache-miss analysis, not for counting — one authority per number.
- Reconciliation against the edge counters runs daily with a ±0.5% tolerance and a 0.05% loss budget; breaching either pages somebody.
What is exact and what is not
- Exact: total clicks, human/bot split, country and device breakdowns.
- Estimated: unique visitors, ≤ 2% relative error, labelled as an estimate everywhere it appears.
- Fresh: 60 s p95, 5 minutes p99 into the dashboard. Backlogs degrade freshness and are reported as degraded rather than hidden.
Privacy by construction
- The raw IP is used for classification and dropped at ingestion; no identifier that would require consent is retained.
- This is a design constraint, not a policy note: it is why the click event schema in view 12 has the fields it has and no others.