Skill 1.2.2

Implement event-driven scaling by using Kubernetes Event‑driven Autoscaling (KEDA) in Container Apps

Key Concepts

Each revision has a minimum and maximum replica count and a set of scale rules. HTTP and TCP rules scale on concurrent requests or connections. Custom rules use any KEDA scaler, such as azure-servicebus on queue length, azure-queue on Azure Storage queues or azure-eventhub on consumer lag; their metadata names the resource and the target value per replica. When no rule is defined, the app uses a default HTTP rule.

Scalers authenticate to the event source with a secret reference or, for supported Azure scalers, with a managed identity. KEDA polls event sources every 30 seconds by default and waits 300 seconds after the last event before scaling a revision to its minimum. A minimum of zero lets an event-driven worker cost nothing while idle; a minimum of one or more avoids cold starts for interactive APIs.