Skip to content

Commit 15f8b3b

Browse files
authored
Merge pull request #4466 from hhunter-ms/upmerge_12-16
Upmerge 12-16
2 parents 87c854e + 0394956 commit 15f8b3b

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
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

daprdocs/content/en/reference/api/cryptography_api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This endpoint lets you encrypt a value provided as a byte array using a specifie
2020
### HTTP Request
2121

2222
```
23-
PUT http://localhost:<daprPort>/v1.0/crypto/<crypto-store-name>/encrypt
23+
PUT http://localhost:<daprPort>/v1.0-alpha1/crypto/<crypto-store-name>/encrypt
2424
```
2525

2626
#### URL Parameters
@@ -59,7 +59,7 @@ returns an array of bytes with the encrypted payload.
5959

6060
### Examples
6161
```shell
62-
curl http://localhost:3500/v1.0/crypto/myAzureKeyVault/encrypt \
62+
curl http://localhost:3500/v1.0-alpha1/crypto/myAzureKeyVault/encrypt \
6363
-X PUT \
6464
-H "dapr-key-name: myCryptoKey" \
6565
-H "dapr-key-wrap-algorithm: aes-gcm" \
@@ -81,7 +81,7 @@ This endpoint lets you decrypt a value provided as a byte array using a specifie
8181
#### HTTP Request
8282

8383
```
84-
PUT curl http://localhost:3500/v1.0/crypto/<crypto-store-name>/decrypt
84+
PUT curl http://localhost:3500/v1.0-alpha1/crypto/<crypto-store-name>/decrypt
8585
```
8686

8787
#### URL Parameters
@@ -116,7 +116,7 @@ returns an array of bytes representing the decrypted payload.
116116

117117
### Examples
118118
```bash
119-
curl http://localhost:3500/v1.0/crypto/myAzureKeyVault/decrypt \
119+
curl http://localhost:3500/v1.0-alpha1/crypto/myAzureKeyVault/decrypt \
120120
-X PUT
121121
-H "dapr-key-name: myCryptoKey"\
122122
-H "Content-Type: application/octet-stream" \

daprdocs/content/en/reference/components-reference/supported-pubsub/setup-aws-snssqs.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ spec:
6868
# value: 5
6969
# - name: concurrencyMode # Optional
7070
# value: "single"
71-
71+
# - name: concurrencyLimit # Optional
72+
# value: "0"
7273

7374
```
7475

@@ -98,6 +99,7 @@ The above example uses secrets as plain strings. It is recommended to use [a sec
9899
| disableDeleteOnRetryLimit | N | When set to true, after retrying and failing of `messageRetryLimit` times processing a message, reset the message visibility timeout so that other consumers can try processing, instead of deleting the message from SQS (the default behvior). Default: `"false"` | `"true"`, `"false"`
99100
| assetsManagementTimeoutSeconds | N | Amount of time in seconds, for an AWS asset management operation, before it times out and cancelled. Asset management operations are any operations performed on STS, SNS and SQS, except message publish and consume operations that implement the default Dapr component retry behavior. The value can be set to any non-negative float/integer. Default: `5` | `0.5`, `10`
100101
| concurrencyMode | N | When messages are received in bulk from SQS, call the subscriber sequentially (“single” message at a time), or concurrently (in “parallel”). Default: `"parallel"` | `"single"`, `"parallel"`
102+
| concurrencyLimit | N | Defines the maximum number of concurrent workers handling messages. This value is ignored when concurrencyMode is set to `"single"`. To avoid limiting the number of concurrent workers, set this to `0`. Default: `0` | `100`
101103

102104
### Additional info
103105

0 commit comments

Comments
 (0)