Soru

Zorluk: ZorServerless and Web Application Hosting

An organization is designing the hosting architecture for a new multi-tenant financial application. The solution consists of the following components:

* A Web API that processes incoming payment verification requests. The API must scale down to zero instances during idle periods to minimize costs, must scale out within seconds to handle unpredictable spikes of up to 5,0005,000 concurrent requests, and must connect to a database hosted within a secured Azure Virtual Network (VNet).
* A daily ledger reconciliation process that aggregates data from external feeds and updates the database. The reconciliation process takes approximately 45 minutes to execute and must run inside the same VNet.

You need to select the most cost-effective Azure compute hosting options that satisfy these requirements.

Which hosting combination should you recommend?

  1. Azure Container Apps for the Web API, and an Azure Container Apps Job for the ledger reconciliation process.Cevap
  2. B
    Azure Functions on a Consumption plan for the Web API, and an Azure Container Apps Job for the ledger reconciliation process.
  3. C
    Azure Container Apps for the Web API, and Azure Functions on a Consumption plan for the ledger reconciliation process.
  4. D
    Azure Kubernetes Service (AKS) with dedicated node pools for both the Web API and the ledger reconciliation process.

Cevap

Azure Container Apps for the Web API, and an Azure Container Apps Job for the ledger reconciliation process.
The combination of Azure Container Apps and an Azure Container Apps Job satisfies all constraints. Azure Container Apps can scale to zero when idle to minimize costs, scales out rapidly, and supports VNet integration to access the secure database. Azure Container Apps Jobs are optimized for run-to-completion batch processes, support VNet integration, and allow execution times up to 24 hours, meaning they will not time out during the 45-minute daily reconciliation run.

Adım Adım Çözüm

1
Analyze the scaling and network requirements of the Web API component.
The API requires rapid scaling to handle spikes, scaling to zero to minimize idle costs, and Azure Virtual Network (VNet) integration to access the database.
Azure Container Apps supports scaling to zero and native VNet integration, satisfying all Web API criteria.
2
Analyze the execution and network requirements of the ledger reconciliation process.
The reconciliation process is a run-to-completion task requiring 45 minutes of execution time and VNet integration.
This rules out Azure Functions on a Consumption plan due to its 10-minute execution limit.
3
Evaluate the remaining options to identify the most cost-effective serverless hosting combination.
An Azure Container Apps Job runs on demand, supports VNet integration, allows long execution times (up to 24 hours), and does not require pre-warmed running instances.
Azure Container Apps combined with Azure Container Apps Jobs satisfies all requirements with minimal cost and operational overhead.

Anahtar Kavram

Selecting serverless and web application hosting plans based on execution limits, virtual network requirements, and cost-effective scaling patterns.
Tahmini Süre:2m 30s
Bu soruyu puanla