QuestionQ83

VerifiedPlanning and implementing a cloud solution

You are planning to move your company's website and a specific asynchronous background job to Google Cloud. Your website contains only static HTML content. The background job is started through an HTTP endpoint and generates monthly invoices for your customers. Your website needs to be available in multiple geographic locations and requires autoscaling. You want to have no costs when your workloads are not in use and follow recommended practices. What should you do?

Explanation

Cloud Run can serve static HTML content and can also run the invoice-generation job as an HTTP-triggered container. Cloud Run services are regional, so deploy the Cloud Run service to multiple regions behind a global external Application Load Balancer; each regional service autoscales and scales to zero instances (and zero cost) when idle. GKE and Compute Engine require running nodes/instances that incur cost even when idle, so they don't meet the zero-cost-when-unused requirement as cleanly as a fully serverless Cloud Run deployment.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!