Create 'quorum' queues in RabbitMQ (#3699)

* Create 'quorum' queues in RabbitMQ

Signed-off-by: Álvaro Aguilar <alvaro.aguilar@scrm.lidl>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-rabbitmq.md

Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com>
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <alvaroteleco@hotmail.com>

* Update daprdocs/content/en/reference/components-reference/supported-pubsub/setup-rabbitmq.md

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <alvaroteleco@hotmail.com>

---------

Signed-off-by: Álvaro Aguilar <alvaro.aguilar@scrm.lidl>
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <alvaroteleco@hotmail.com>
Signed-off-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com>
Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com>
Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
Álvaro Aguilar-Tablada Espinosa 2023-09-25 05:52:01 +02:00 committed by GitHub
parent 564cfd8adb
commit ad50b794b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -412,6 +412,24 @@ client.PublishEvent(ctx, PUBSUB_NAME, TOPIC_NAME, []byte(strconv.Itoa(orderId)),
{{< /tabs >}}
## Use quorum queues
By default, Dapr creates `classic` queues. To create `quorum` queues, add the following metadata to your pub/sub [subscription]({{< ref subscription-schema.md >}})
```yaml
apiVersion: dapr.io/v2alpha1
kind: Subscription
metadata:
name: pubsub
spec:
topic: checkout
routes:
default: /orders
pubsubname: order-pub-sub
metadata:
queueType: quorum
```
## Time-to-live
You can set a time-to-live (TTL) value at either the message or component level. Set default component-level TTL using the component spec `ttlInSeconds` field in your component.