Amazon Interview Question

if you are designing an e-commerce system. How do you optimize it? How do you design your cache?