SandPiper: A Cost-Efficient Adaptive Framework for Online Recommender Systems