call(back)

Design a Video-Keyword Association Review System

Design a backend module that reviews how well uploaded videos match a set of keywords. A user submits a batch containing 50 or more videos and 1,000 or more keywords, and the system evaluates the association between every video and the keyword set. Users come back and change a submission, adding or removing videos and keywords, so earlier results must not be destroyed. Uploads of large batches may be interrupted and must be resumable.

The interviewer expects a schema and a typed explanation of the data flow; there may be no diagram tool, so practise describing tables, relationships and stages in plain text.

Hints

Hint 1

Start with entities and who owns a version: submission, submission version, video asset, keyword set, evaluation job, result.

Hint 2

The expensive object is the cross product, 50 by 1,000 pairs per version, multiplied by every edit. Decide what is computed per video, per keyword and per pair.

Hint 3

A version becomes visible only when its upload is complete. Until then it is a draft that readers never see.

Asked at

Similar Problems4