An educational technology company is designing a serverless video processing workflow for their on-demand learning platform. The workflow requires two components:
1. A background worker that extracts audio from uploaded videos and generates text transcripts. This process is CPU-heavy and takes between 15 to 30 minutes to complete per video.
2. A lightweight REST API that serves the transcripts to users. This API experiences highly sporadic traffic and must minimize cost by scaling to zero instances when idle.
Which two Azure hosting options should you recommend to meet these requirements?
- Azure Container Apps Jobs to host the background video processing workerAnswer
- Azure Functions on a Consumption plan to host the REST APIAnswer
- CAzure Functions on a Consumption plan to host the background video processing worker
- DAn Azure Kubernetes Service (AKS) cluster to host the REST API
Answer
Azure Container Apps Jobs to host the background video processing worker, and Azure Functions on a Consumption plan to host the REST API.
Azure Container Apps Jobs are ideal for running background tasks that run to completion and can execute for longer durations without the 10-minute timeout limit of standard serverless functions. Azure Functions on a Consumption plan is the most cost-effective choice for a lightweight REST API with sporadic traffic because it scales down to zero instances when not in use, avoiding compute costs during idle periods.
Step-by-Step Solution
Key Concept
Designing serverless host options based on execution duration, scaling behavior, and management overhead constraints.
Estimated Time:2m 0s