Flix interview question

how would you design an even based system?