Social data engineering
Normalising social data without losing what was observed
A normalised model should add consistency, not confidence. Keep the raw payload, map to a versioned contract, and never invent a missing value.
3 min read
Normalisation fails in two directions: a model so generic it loses meaning, and a model so specific it cannot accept a second platform. The fix is a small allowlisted contract plus raw retention.
Rules that keep a model honest
- Missing is null, never zero or an empty string.
- Timestamps keep their timezone and their meaning.
- Identifiers are platform-scoped and explicit about it.
- Raw payloads are retained for reprocessing.
Version the contract, not the pipeline
A versioned response schema lets consumers pin behaviour while the mapping evolves. Adding a field is a minor change; changing the meaning of an existing field is a breaking change and needs a new version.
Key takeaways
- Normalisation adds consistency, not certainty.
- Null and zero must never be conflated.
- Version the schema so downstream code can pin it.
Tags:data qualitynormalizationschema
Related pages
Related reading
- The smallest social data pipeline that is still reliableFour stages: acquire with an idempotency key, validate against a schema, store with provenance, and expose a view that carries coverage.
- Coverage and freshness: the two fields that prevent bad decisionsCompleteness and age are different questions. A response needs both, or a dashboard will read a gap as a trend.
- Matrix charts: coverage and gaps before performanceA matrix is a coverage instrument. The empty cell is the most important cell, so it must never be coloured like a measured zero.