Skip to content

Commit

Permalink
Create 'quorum' queues in RabbitMQ (#3699)
Browse files Browse the repository at this point in the history
* Create 'quorum' queues in RabbitMQ

Signed-off-by: Álvaro Aguilar <[email protected]>

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

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <[email protected]>

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

Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <[email protected]>

---------

Signed-off-by: Álvaro Aguilar <[email protected]>
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <[email protected]>
Signed-off-by: Hannah Hunter <[email protected]>
Co-authored-by: Hannah Hunter <[email protected]>
Co-authored-by: Mark Fussell <[email protected]>
  • Loading branch information
3 people authored Sep 25, 2023
1 parent 564cfd8 commit ad50b79
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ad50b79

Please sign in to comment.