Back

Data Flow

From data origin → server fetch → render. Same result data, 4 upstream channels; server picks one by priority.

During comp
WCA Livelive entry by judges
serverGraphQL + Phoenix Channels subscription
delegate reviews + submits (hours~days)
After lock
WCA central DBcanonical source (server never queries directly)
WCA REST APIsnapshot
serverGET /api/v0/.../results
weekly .sql dump
wca_dblocal PG mirror
serverlocal PG query< 50 ms
+historical PR detectionprior cumulative PB → PR badge alongside NR/CR/WR
Independent · CN
cubing.commain CN scorekeeping
serverWebSocket · 4 phases
server picks one of these 4
UserGET /comp/<WCA ID>
Priority
  1. 1Try wca_db locally — exclusive on hit, skip the rest
  2. 2Miss → parallel probe cubing.com / WCA Live / WCA REST
  3. 3Default: cubing + wcawca · wca_live + wcawca_live · single → that one
When multiple sources are available, UI shows a source toggle.
Render comp page