Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare Azure environments for new workloads—subscriptions, networking, identity, and landing zones
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/container-apps/scaling.md
1# Container Apps Scaling Patterns23## HTTP-based Scaling45Best for APIs and web applications:67```bicep8scale: {9minReplicas: 110maxReplicas: 1011rules: [12{13name: 'http-scaling'14http: {15metadata: {16concurrentRequests: '100'17}18}19}20]21}22```2324## Queue-based Scaling2526Best for background workers:2728```bicep29scale: {30minReplicas: 031maxReplicas: 3032rules: [33{34name: 'queue-scaling'35azureQueue: {36queueName: 'orders'37queueLength: 1038auth: [39{40secretRef: 'storage-connection'41triggerParameter: 'connection'42}43]44}45}46]47}48```4950## Service Bus Scaling5152```bicep53scale: {54minReplicas: 055maxReplicas: 2056rules: [57{58name: 'servicebus-scaling'59custom: {60type: 'azure-servicebus'61metadata: {62queueName: 'myqueue'63messageCount: '5'64}65auth: [66{67secretRef: 'servicebus-connection'68triggerParameter: 'connection'69}70]71}72}73]74}75```7677## Recommendations7879| Workload | Min Replicas | Max Replicas | Rule Type |80|----------|--------------|--------------|-----------|81| Production API | 1 | 10-20 | HTTP |82| Dev/Test API | 0 | 5 | HTTP |83| Background Worker | 0 | 30+ | Queue/Event |84| Scheduled Job | 0 | 1 | KEDA cron |85