Skip to content

Architecture

RecChaos system architecture

Click the diagram to open it full size. The thick sky-blue line is the request path for one replay day. Red dashed lines show where each fault (F1–F10) is injected and how the ground truth reaches the scorer. Dark grey lines carry data, telemetry and alerts. Black chips (P1–P6) name the paper project each stage rebuilds. The diagram is drawn by scripts/architecture_diagram.py; edit the layout there and rerun it instead of editing the PNG.

Text version
replay/     dataset ─► time split ─► day clock (day d of 730) ◄── nightly retrain (v d+1) ◄── end of day
                                           │ requests
recsys/                                    ▼
            retrieval ─► ranking ─► re-ranking ─► serving      built from P1–P4 · P3, P5 · P6
               ▲ F1–F3     ▲ F4–F6     ▲ F7                    F8–F9 hit the whole funnel
faults/     fault plan ─► window covers today? ─yes─► inject fault ─► ground-truth log ──┐
                                  └─no─► clean day                                       │
telemetry   per-stage stats from every stage (F10 corrupts the logging)                  │
               ▼                                                                         ▼
detectors/  4 monitor families ─► score over threshold? ─yes─► alert log ──────► scorer/ ─► benchmark report
                                          └─no─► healthy, keep watching
Stage Component Project
Candidate sources Item-to-item CF; MF/BPR; YouTube DNN candidate generation; two-tower with logQ correction + FAISS P1–P4
Ranking YouTube DNN ranker, then MMoE multi-task ranker P3, P5
Re-ranking MMR / DPP diversity + business rules P6
Serving FastAPI, versioned index and model Week 5
Telemetry Per-stage counts, score distributions, coverage, freshness Week 6

Each design choice is recorded as an ADR in Decisions.