Best practices for building machine learning platforms on the cloud