Ensuring Consistent Transactions in a Web Service Environment with Prediction-Based Performance Metrics