Skip to content

Commit 454b368

Browse files
committed
updates from doug
Signed-off-by: Hannah Hunter <[email protected]>
1 parent 22d5314 commit 454b368

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

articles/container-apps/dapr-keda-scaling.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.date: 04/11/2023
1010

1111
# Scale Dapr applications with KEDA scalers
1212

13-
Using [KEDA scalers](https://keda.sh/), you can scale your application and its [Dapr](https://docs.dapr.io/) sidecar when it has scaled to zero with inbound events and messages. In this guide, we demonstrate scaling a Dapr pub/sub application by setting up a KEDA scaler to watch for messages coming into the queue and triggers the Dapr sidecar to spin up.
13+
Using [KEDA scalers](https://keda.sh/), you can scale your application and its [Dapr](https://docs.dapr.io/) sidecar when it has scaled to zero with inbound events and messages. In this guide, we demonstrate scaling a Dapr pub/sub application by setting up a KEDA scaler to watch for messages coming into the queue and triggers the app to scale up and down as needed.
1414

1515
In the following scenario, we examine the Bicep for:
1616
1. A `checkout` publisher container app continuously publishes messages via the Dapr pub/sub API to the `orders` topic in Azure Service Bus.
@@ -113,7 +113,7 @@ resource daprComponent 'daprComponents' = {
113113

114114
## Subscriber container app
115115

116-
In the `order-processor` subscriber, we've added a custom scale rule on the resource for the type `azure-servicebus`. With this scale rule, KEDA can scale up the container app and its Dapr sidecar, allowing incoming messages to be processed.
116+
By default, [Container Apps assigns an http-based scale rule to applications](./scale-app.md), scaling apps based on the number of incoming HTTP requests. In the `order-processor` subscriber, we've added a custom scale rule on the resource for the type `azure-servicebus`. With this scale rule, KEDA can scale up the container app and its Dapr sidecar, allowing incoming messages to be processed.
117117

118118
```bicep
119119
resource orders 'Microsoft.App/containerApps@2022-03-01' = {
@@ -204,10 +204,6 @@ resource orders 'Microsoft.App/containerApps@2022-03-01' = {
204204
}
205205
```
206206

207-
## What happened?
208-
209-
By default, [Container Apps assigns an http-based scale rule to applications](./scale-app.md), scaling apps based on the number of incoming http requests. However, since the `order-processor` application is using the Dapr pub/sub abstraction to pull messages from a queue, it needs to define a custom scaler based on the number of messages waiting to be processed.
210-
211207
Behind the scenes, KEDA scales our `order-processor` appropriately (even down to zero). Notice the `messageCount` property on the scaler's configuration:
212208

213209
```bicep

0 commit comments

Comments
 (0)