Systems & decisions

Architecture is a set of trade-offs.

A synthetic reference system, from raw events to trusted metrics. Explore the model boundaries and the decisions that shape them.

Medallion reference architectureSYNTHETIC DATA
7 models · 6 connections

Architecture decision records

ILLUSTRATIVE

Separate ingestion from transformation

Context

Events arrive with variable timing and inconsistent types. Coupling ingestion and business logic makes replay and recovery harder.

Decision

Retain raw events as the source layer; normalize in staging and publish stable facts and metrics downstream.

Trade-offs

Additional storage and orchestration in exchange for replayability, clearer ownership, and isolated recovery.

Data model · Session grain

COLUMNTYPECONTRACT
session_idVARCHARUnique, not null
player_idVARCHARForeign key → stg_players
started_atTIMESTAMPUTC, not null
duration_minutesDECIMALNon-negative
regionVARCHARAccepted region code

Synthetic reference schema. Not a description of Semrush’s internal architecture.