Yahoo Interview Question

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