Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs on sending Conversation Events to multiple DBs #12677

Merged
merged 5 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/12677.doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated docs on sending Conversation Events to Multiple DBs.
13 changes: 13 additions & 0 deletions docs/docs/event-brokers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ if __name__ == "__main__":
channel.start_consuming()
```

### Sending Events to Multiple Queues

You can specify multiple event queues to publish events to.
This should work for all event brokers supported by Pika (e.g. RabbitMQ)

## Kafka Event Broker

While RabbitMQ is the default event broker, it is possible to use [Kafka](https://kafka.apache.org/) as the main broker for your
Expand Down Expand Up @@ -190,6 +195,14 @@ If using the `SASL_SSL` protocol, the endpoints file should look like:
```yaml-rasa (docs/sources/data/test_endpoints/event_brokers/kafka_sasl_ssl_endpoint.yml)
```

### Sending Events to Multiple Queues

Kafka does not allow you to configure multiple topics.

However, multiple consumers can read from the same queue as long as they are in different consumer groups.
Each consumer group will process all events independent of each other
(in a sense, each group has their own reference to the last event they have processed). [Kafka: The Definitive Guide](https://www.oreilly.com/library/view/kafka-the-definitive/9781491936153/ch04.html#:~:text=Kafka%20consumers%20are%20typically%20part,the%20partitions%20in%20the%20topic.)

## SQL Event Broker

It is possible to use an SQL database as an event broker. Connections to databases are established using
Expand Down