This document discusses using Amazon EC2 spot instances for cost-effective cloud computing. It presents challenges in optimizing costs while meeting performance needs. Various instance types and pricing models are examined, including predicting spot prices using statistical methods. An algorithm and bidding strategy are proposed to minimize costs based on deadline, budget and other constraints. An experimental evaluation compares performance and costs of spot instances versus on-demand instances.