You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/dapr-keda-scaling.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,12 @@ ms.date: 04/13/2023
10
10
11
11
# Scale Dapr applications with KEDA scalers
12
12
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. This guide demonstrates how to configure the scale rules of a Dapr pub/sub application with a KEDA messaging scaler. The scaler watches for incoming messages and scales the application in and out as needed.
13
+
[Azure Container Apps automatically scales HTTP traffic to zero.](./scale-app.md) Since Dapr pub/sub and bindings are not HTTP traffic, you can use [KEDA scalers](https://keda.sh/) to scale out your application and its [Dapr](https://docs.dapr.io/) sidecar when it has scaled to zero with inbound events and messages. This guide demonstrates how to configure the scale rules of a Dapr pub/sub application with a KEDA messaging scaler. The scaler watches for incoming messages and scales the application in and out as needed.
14
14
15
15
In this scenario, the application includes the following elements:
16
-
1. A `checkout` publisher container app that continuously publishes messages via the Dapr pub/sub API to the `orders` topic in Azure Service Bus.
17
-
1. The Dapr Azure Service Bus component.
18
-
1. An `order-processor` subscriber container app subscribed to the `orders` topic that receives and processes messages as they arrive.
16
+
1. A `checkout` publisher container app that continuously publishes messages to the `orders` Azure Service Bus.
17
+
1. The Dapr Azure Service Bus pub/sub component.
18
+
1. An `order-processor` subscriber container app picks up messages received via the `orders` topic and processed as they arrive.
19
19
1. The scale rule for Azure Service Bus, which is responsible for scaling up the `order-processor` service and its Dapr sidecar when messages start to arrive to the `orders` topic.
20
20
21
21
## Publisher container app
@@ -163,7 +163,7 @@ Notice the `messageCount` property on the scaler's configuration:
163
163
}
164
164
```
165
165
166
-
This property tells KEDA how many messages each instance of the application to process at the same time. In this example, the value is set to `30`, making KEDA scale out the application to match the number of messages waiting in the queue.
166
+
This property tells KEDA how many messages each instance of the application to process at the same time. In this example, the value is set to `30`, making KEDA scale out the application to match the number of messages waiting in the topic.
167
167
168
168
For example, if five messages are waiting, KEDA scales the app out to five instances. In this scenario, `maxReplicas` is set to `10`, so KEDA scales up the `order-processor` container app to a max of 10 replicas.
0 commit comments