A software engineering team is planning the deployment architecture for an internal HTTP REST API on Google Cloud. The application requires a custom Go runtime packaged alongside specific Linux system libraries compiled directly into a container image. To optimize operational costs during traffic spikes, the service must support handling up to 80 concurrent HTTP requests on each active instance. Which serverless compute option should the team select?
- Deploy the container image to Cloud Run, as it natively supports custom container runtimes and configurable multi-concurrency per instance.Cevap
- BDeploy the application code to Cloud Functions (1st gen), as it automatically provides container runtime customization and multi-concurrency by default.
- CDeploy the application code to Cloud Functions (2nd gen) with Cloud Storage triggers, because custom Linux libraries cannot be included in Cloud Run.
- DDeploy the application to Compute Engine Spot VMs behind an HTTP Load Balancer, because serverless platforms on Google Cloud do not support HTTP microservices.
Cevap
Deploy the container image to Cloud Run, as it natively supports custom container runtimes and configurable multi-concurrency per instance.
Cloud Run is Google Cloud's serverless platform for deploying arbitrary container images that listen for incoming HTTP/gRPC requests. It allows teams to bring custom binaries and system libraries in a Dockerfile while supporting multi-concurrency configuration (handling multiple simultaneous requests on a single instance) for high efficiency.
Adım Adım Çözüm
Anahtar Kavram
Planning Serverless Compute Options (Cloud Run vs Cloud Functions)