A software-as-a-service (SaaS) company is designing a backend component to process user-uploaded PDF documents. The processing job runs a proprietary executable that requires a custom Linux library. Each document takes between 2 to 5 seconds to process. The workload is highly unpredictable; the platform receives around 50 uploads scattered throughout a typical day, but can experience brief spikes of up to 1,000 uploads. The company requires a serverless compute option with zero idle costs and sub-second scaling responsiveness to minimize user wait times. Which AWS compute service should the company select to host this component?
- AWS Lambda with a custom container image deploymentCevap
- BAmazon ECS using AWS Fargate to run a continuous service
- CAmazon EC2 instances configured in an Auto Scaling group
- DAmazon Lightsail container services with fixed-node provisioning
Cevap
AWS Lambda with a custom container image deployment
The correct answer is the option specifying AWS Lambda with a custom container image. This service matches all requirements: it supports packaging custom binaries and libraries within container images, scales instantly to handle unpredictable spikes in traffic, and charges only when the function is executing, ensuring zero cost when idle.
Adım Adım Çözüm
Anahtar Kavram
Selecting appropriate AWS compute services based on runtime dependencies, scaling behavior, startup latency, and billing models.
Tahmini Süre:3m 0s