Skip to content

Commit 79a5b94

Browse files
authored
Merge pull request #4458 from bibryam/v1.14
Reworded concurrency control doc
2 parents ad57f04 + c0fccb2 commit 79a5b94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

daprdocs/content/en/operations/configuration/control-concurrency.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ description: "Learn how to control how many requests and events can invoke your
88

99
Typically, in distributed computing, you may only want to allow for a given number of requests to execute concurrently. Using Dapr's `app-max-concurrency`, you can control how many requests and events can invoke your application simultaneously.
1010

11-
Default `app-max-concurreny` is set to `-1`, meaning no concurrency.
11+
Default `app-max-concurreny` is set to `-1`, meaning no concurrency limit is enforced.
1212

1313
## Different approaches
1414

1515
While this guide focuses on `app-max-concurrency`, you can also limit request rate per second using the **`middleware.http.ratelimit`** middleware. However, it's important to understand the difference between the two approaches:
1616

1717
- `middleware.http.ratelimit`: Time bound and limits the number of requests per second
18-
- `app-max-concurrency`: Specifies the number of concurrent requests (and events) at any point of time.
18+
- `app-max-concurrency`: Specifies the max number of concurrent requests (and events) at any point of time.
1919

2020
See [Rate limit middleware]({{< ref middleware-rate-limit.md >}}) for more information about that approach.
2121

@@ -46,7 +46,7 @@ To set concurrency limits with the Dapr CLI for running on your local dev machin
4646
dapr run --app-max-concurrency 1 --app-port 5000 python ./app.py
4747
```
4848

49-
The above example effectively turns your app into a single concurrent service.
49+
The above example effectively turns your app into a sequential processing service.
5050

5151
{{% /codetab %}}
5252

0 commit comments

Comments
 (0)