How to optimize cost on cloud β 1. Why we need to optimize cloud cost πΈ 2. Choose the right services π 3. Demo: Cloud Functions with Compute Engine API π§ + β = π 4. Other tips to save the cost π¦ 5. Summary π Agenda Why we need to optimize cloud cost πΈ Itβs money π° β reduce cost β utilize more Tip 0 : Free Tier π Free Trial: Free $300 USD for new users (90 days) https://cloud.google.com/free US region only Free Compute Engine Or, use Preemptible VM to reduce the cost Choose the right services π Compute Services π€ Google Compute Engine GCE Virtual Machine Google Kubernetes Engine GKE Managed K8s cluster Google Cloud Run Serverless container Google App Engine GAE Serverless application platform Google Cloud Functions GCF Serverless functions IAAS : Infrastructure as a service CAAS : Container as a service PAAS : Platform as a service FAAS : Function as a service Compute Services Go Serverless Tip 1 : Choose the right service π Goal: Reduce GCE Cost π― Tip 2 : βTurn off when not using itβ π‘ Fully managed Cron service Serverless Messaging service Serverless Functions Virtual Machine Q:How to stop GKE Cluster? π π π Resizing a cluster https://cloud.google.com/sdk/gcloud/reference/container/clusters/resize (to 0 ) Other Tips? π¦ Save the Storage π¦