From 7adaa4e01f71af6ad640f2cc28910abde2c43f9d Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Fri, 17 Jun 2022 13:51:58 -0700 Subject: [PATCH] Updated Service Bus Queues binding for components-contrib#1791 (#2529) * Updated Service Bus Queues binding for components-contrib/1791 Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Missing updating example Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Update servicebusqueues.md Update the TTL number Co-authored-by: Mark Fussell --- .../supported-bindings/servicebusqueues.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-bindings/servicebusqueues.md b/daprdocs/content/en/reference/components-reference/supported-bindings/servicebusqueues.md index 95d5d4811..37129f7bc 100644 --- a/daprdocs/content/en/reference/components-reference/supported-bindings/servicebusqueues.md +++ b/daprdocs/content/en/reference/components-reference/supported-bindings/servicebusqueues.md @@ -28,13 +28,21 @@ spec: - name: queueName value: queue1 # - name: ttlInSeconds # Optional - # value: 60 + # value: 86400 # - name: maxRetriableErrorsPerSec # Optional # value: 10 # - name: minConnectionRecoveryInSec # Optional # value: 2 # - name: maxConnectionRecoveryInSec # Optional # value: 300 + # - name: maxActiveMessages # Optional + # value: 1 + # - name: maxConcurrentHandlers # Optional + # value: 1 + # - name: lockRenewalInSec # Optional + # value: 20 + # - name: timeoutInSec # Optional + # value: 60 ``` {{% alert title="Warning" color="warning" %}} The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets as described [here]({{< ref component-secrets.md >}}). @@ -47,10 +55,14 @@ The above example uses secrets as plain strings. It is recommended to use a secr | `connectionString` | Y | Input/Output | The Service Bus connection string. Required unless using Azure AD authentication. | `"Endpoint=sb://************"` | | `namespaceName`| N | Input/Output | Parameter to set the name of the Service Bus namespace. Required if using Azure AD authentication. | `"namespace"` | | `queueName` | Y | Input/Output | The Service Bus queue name. Queue names are case-insensitive and will always be forced to lowercase. | `"queuename"` | -| `ttlInSeconds` | N | Output | Parameter to set the default message [time to live](https://docs.microsoft.com/azure/service-bus-messaging/message-expiration). If this parameter is omitted, messages will expire after 14 days. See [also](#specifying-a-ttl-per-message) | `"60"` | +| `ttlInSeconds` | N | Output | Parameter to set the default message [time to live](https://docs.microsoft.com/azure/service-bus-messaging/message-expiration). If this parameter is omitted, messages will expire after 14 days. See [also](#specifying-a-ttl-per-message) | `86400` | | `maxRetriableErrorsPerSec` | N | Input | Maximum number of retriable errors that are processed per second. If a message fails to be processed with a retriable error, the component adds a delay before it starts processing another message, to avoid immediately re-processing messages that have failed. Default: `10` | `10` | | `minConnectionRecoveryInSec` | N | Input | Minimum interval (in seconds) to wait before attempting to reconnect to Azure Service Bus in case of a connection failure. Default: `2` | `5` | | `maxConnectionRecoveryInSec` | N | Input | Maximum interval (in seconds) to wait before attempting to reconnect to Azure Service Bus in case of a connection failure. After each attempt, the binding waits a random number of seconds, increasing every time, between the minimum and the maximum. Default: `300` (5 minutes) | `600` | +| `maxActiveMessages` | N |Defines the maximum number of messages to be processing or in the buffer at once. This should be at least as big as the maximum concurrent handlers. Default: `1` | `1` +| `maxConcurrentHandlers` | N |Defines the maximum number of concurrent message handlers. Default: `1`. | `1` +| `lockRenewalInSec` | N |Defines the frequency at which buffered message locks will be renewed. Default: `20`. | `20` +| `timeoutInSec` | N | Input/Output | Timeout for all invocations to the Azure Service Bus endpoint, in seconds. *Note that this option impacts network calls and it's unrelated to the TTL applies to messages*. Default: `60` | `60` | ### Azure Active Directory (AAD) authentication