Serverless API with asynchronous processing

Serverless API with asynchronous processing Serverless API with asynchronous processing Entra External ID → API Management → Functions → Cosmos DB, with a Service Bus queue feeding background work Azure Region HTTPS + JWT 1. Mobile app → API Management (HTTPS + JWT)1 2. API Management → Azure Functions2 export 6. Azure Functions → Azure Storage (export)6 validates tokens protects read/write 3. Azure Functions → Azure Cosmos DB (read/write)3 enqueue job 4. Azure Functions → Azure Service Bus (enqueue job)4 trigger 5. Azure Service Bus → Azure Functions (trigger)5 Mobile app (Mobile) Mobile app Entra External ID (External Identities) Entra External ID sign-in, JWT API Management (API Management Services) API Management consumption tier Front Door WAF (Web Application Firewall Policies(WAF)) Front Door WAF rate limiting Azure Functions (Function Apps) Azure Functions HTTP API Azure Cosmos DB (Azure Cosmos DB) Azure Cosmos DB NoSQL, autoscale Azure Service Bus (Azure Service Bus) Azure Service Bus jobs queue Azure Functions (Function Apps) Azure Functions background worker Azure Storage (Storage Accounts) Azure Storage exports Application Insights (Application Insights) Application Insights traces, failures Azure Key Vault (Key Vaults) Azure Key Vault

Flow

  1. 1Mobile app → API Management (HTTPS + JWT)
  2. 2API Management → Azure Functions
  3. 3Azure Functions → Azure Cosmos DB (read/write)
  4. 4Azure Functions → Azure Service Bus (enqueue job)
  5. 5Azure Service Bus → Azure Functions (trigger)
  6. 6Azure Functions → Azure Storage (export)

Cost estimate eastus · price list as of 2026-10-02 · indicative — some usage is assumed

$474per month
$5,691per year
8/11components priced
1not priced (see below)

Public pay-as-you-go list prices from the Azure Retail Prices API (USD). Excludes taxes, support plans, Reservations, Savings Plans, Spot and enterprise or EA discounts, and data transfer unless a node sets egressGbPerMonth. Free grants are included where the meter has a free tier. Monthly = 730 hours. Not a quote: confirm with the Azure Pricing Calculator.

Usage basis. Illustrative: 3M API calls/month on the Consumption plan, 20,000 monthly active users, 500,000 background jobs.

By category

Data and storage$375 · 79%
Security and operations$82.00 · 17%
Integration$17.00 · 4%
Compute$0.40 · 0%

By component click a row to highlight it on the diagram

ComponentServiceStatus$ / monthLine items
Azure Cosmos DBAzure Cosmos DBestimated$370
2 lines
  • Autoscale 100 RU/s units (max RU/s, hours): 29,200 1/Hour × $0.012 = $350.40
  • Transactional storage (GB-month): 80 1 GB/Month × $0.25 = $20.00

Single-region writes, standard provisioned or autoscale throughput. Serverless, multi-region writes, backup and analytical storage are not modelled.

Application InsightsApplication Insightsestimated$80.50
1 line
  • Data ingestion (GB): 40 1 GB × $0.00 (tiered) = $80.50

Pay-as-you-go ingestion with the monthly free allowance in the tier; commitment tiers are not modelled.

Azure Service BusAzure Service Busestimated$10.00
2 lines
  • Standard base charge (month): 1 1/Month × $10.00 = $10.00
  • Standard messaging operations: 3 1M × $0.00 = $0.00
API ManagementAPI Management Servicesestimated$7.00
1 line
  • Consumption calls: 300 10K × $0.00 (tiered) = $7.00
Azure StorageStorage Accountsestimated$4.42
3 lines
  • Data stored, Hot LRS (GB-month): 150 1 GB/Month × $0.00 = $3.12
  • Write operations: 10 10K × $0.05 = $0.50
  • Read operations: 200 10K × $0.004 = $0.80

Excludes data retrieval and early-deletion charges, egress and transactions on other APIs.

Azure Key VaultKey Vaultsestimated$1.50
1 line
  • Secret and key operations: 50 10K × $0.03 = $1.50

Standard tier software-protected keys; HSM keys and certificates are not modelled.

Azure FunctionsFunction Appsestimated$0.40
2 lines
  • Executions: 300,000 10 × $0.00 (tiered) = $0.40
  • Execution time (GB-seconds): 180,000 1 GB Second × $0.00 = $0.00

Consumption plan; the monthly free grant is included in the tiered meters.

Not priced

  • Entra External ID — not-estimated: No cost model for External Identities yet. Supply `usage.monthlyUsd` on the node to include it.
  • Front Door WAF — no-charge: Web Application Firewall Policies(WAF) has no direct charge.
  • Azure Functions — estimated: Consumption plan; the monthly free grant is included in the tiered meters.

Assumptions 9 defaulted — replace them with your own numbers in each node's usage

ComponentAssumptionValueSource
API Managementtierconsumptionfrom spec
API ManagementcallsPerMonth3000000from spec
Azure Functionsplanconsumptionassumed
Azure FunctionsrequestsPerMonth3000000from spec
Azure FunctionsavgDurationMs120from spec
Azure FunctionsmemoryMb512from spec
Azure Cosmos DBmodeautoscalefrom spec
Azure Cosmos DBruPerSecond4000from spec
Azure Cosmos DBstorageGb80from spec
Azure Cosmos DBhoursPerMonth730assumed
Azure Cosmos DBregions1assumed
Azure Service Bustierstandardfrom spec
Azure Service BusoperationsPerMonth3000000from spec
Azure Functionsplanconsumptionassumed
Azure FunctionsrequestsPerMonth500000from spec
Azure FunctionsavgDurationMs800from spec
Azure FunctionsmemoryMb1024from spec
Azure StorageaccessTierhotassumed
Azure StorageredundancyLRSassumed
Azure StoragestorageGb150from spec
Azure StoragewriteOperationsPerMonth100000assumed
Azure StoragereadOperationsPerMonth2000000from spec
Application InsightsingestGbPerMonth40from spec
Application InsightsretentionDays31assumed
Application InsightsretainedGb10assumed
Azure Key VaultoperationsPerMonth500000from spec

Sensitivity & what-if

$474at 1× traffic
$747at 3× traffic
$1,730at 10× traffic

No what-if options apply to these services.

Price list provenance

Retrieved 2026-10-02T10:01:47.868Z from the public Azure Retail Prices API. Latest price effective dates per service:

API Management 2024-12-01 · Functions 2024-12-01 · Azure Cosmos DB 2026-10-01 · Service Bus 2024-10-01 · Storage 2026-09-01 · Log Analytics 2018-02-01 · Key Vault 2022-03-01

Only public pay-as-you-go list prices are used. This is not a quote — confirm in the Azure Pricing Calculator.