Building a cloud-friendly application