Skip to content

Commit 22d5314

Browse files
committed
edits from nick
Signed-off-by: Hannah Hunter <[email protected]>
1 parent f2418e1 commit 22d5314

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ Using [KEDA scalers](https://keda.sh/), you can scale your application and its [
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.
17-
1. The Dapr Azure Service Bus component
17+
1. The Dapr Azure Service Bus component.
1818
1. An `order-processor` subscriber container app subscribed to the `orders` topic receives and processes messages as they arrive.
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.
1920

2021
## Publisher container app
2122

2223
The `checkout` publisher is a headless service that runs indefinitely and never scales down to zero.
2324

24-
Below, we've set the `minReplicas` to "1", which ensures the container app doesn't follow the default behavior.
25+
Below, we've set the `minReplicas` to "1", which ensures the container app doesn't follow the default behavior of scaling to zero with no incoming HTTP traffic.
2526

2627
```bicep
2728
resource checkout 'Microsoft.App/containerApps@2022-03-01' = {
@@ -112,7 +113,7 @@ resource daprComponent 'daprComponents' = {
112113

113114
## Subscriber container app
114115

115-
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 while `order-processor` is scaled to zero.
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.
116117

117118
```bicep
118119
resource orders 'Microsoft.App/containerApps@2022-03-01' = {
@@ -216,7 +217,7 @@ metadata: {
216217
}
217218
```
218219

219-
This property tells KEDA how many messages each instance of our application can process at the same time. Since the application is single-threaded, we'd normally set this value to 1, resulting in KEDA scaling up our application to match the number of messages waiting in the queue. For example, if five messages are waiting, KEDA scales our app up to five instances. In our scenario, we set a `maxReplicas` value of 10, so KEDA scales up to 10 instances.
220+
This property tells KEDA how many messages each instance of our application can process at the same time. Since the application is single-threaded, we'd normally set this value to 1, resulting in KEDA scaling up our application to match the number of messages waiting in the queue. For example, if five messages are waiting, KEDA scales our app up to five instances. In our scenario, we set a `maxReplicas` value of 10, so KEDA scales up the `order-processor` container app to a max of 10 replicas.
220221

221222
## Next steps
222223

0 commit comments

Comments
 (0)