Yahoo interview question

how do you write programs that can both scale be highly available