The architecture of a prediction service