The document proposes a dynamic control algorithm to optimally place content and dispatch requests across geographically distributed data centers in a hybrid cloud infrastructure. This is done to minimize operational costs over time while meeting service response time constraints. Content providers are moving to cloud-based services for scalability and lower costs. The algorithm analyzes costs and response times to optimally use cloud and on-premise infrastructure. It provides near-optimal solutions under time constraints.