EasyDeepLearn

How do you guarantee online-offline feature consistency?

hard

Answer

  • (1) Single source of truth for feature definition (code + config).
  • (2) Compute both paths from same definition: batch compute (offline) + streaming compute (online) share transformation logic.
  • (3) Automated parity checks: sample production requests, recompute offline, compare.
  • (4) Alert on divergence.
  • (5) Feast / Tecton implement this via 'feature views'.
  • (6) Ideal: same code runs in both contexts (Python function transpiled to SQL + streaming).
  • Anti-pattern: hand-write both paths → drift.
Check yourself — multiple choice
  • Random
  • Single source of truth for feature def; compute both paths from same def + automated parity checks (sample + recompute + compare) + alert on divergence; Feast/Tecton feature views
  • Impossible
  • Just monitor

Online-offline consistency: single def + parity checks + alerting.

#features#data-quality

Practise MLOps & Data Quality

215 interview questions in this topic.

Related questions