A software architecture team is planning a serverless deployment on Google Cloud for a microservice that runs a third-party C++ binary packaged inside a custom Docker container. The service receives incoming HTTP webhooks and must handle multiple concurrent requests per container instance to maximize resource efficiency and reduce operational costs. Which compute platform should the team select?
- Cloud Run, because it supports custom container images and permits handling multiple concurrent requests per container instance.Answer
- BCloud Functions (1st gen), because it automatically containerizes third-party binaries and distributes concurrent HTTP requests across underlying virtual machines.
- CCompute Engine with Unmanaged Instance Groups, because serverless offerings on Google Cloud cannot bind to custom container ports or execute custom compiled binaries.
- DCloud Functions (2nd gen), because it is the only Google Cloud serverless option that allows deploying multi-container pods with shared local persistent disk storage.
Answer
Cloud Run should be selected because it supports custom container images and permits handling multiple concurrent requests per container instance.
Cloud Run is a fully managed serverless platform that enables running stateless HTTP containers built from any language or binary. Crucially, Cloud Run allows configuring instance concurrency, allowing a single container instance to process multiple requests simultaneously to minimize cold starts and optimize cost.
Step-by-Step Solution
Key Concept
Selecting Serverless Compute Platforms (Cloud Run vs. Cloud Functions)