Queues Setup
Confluent Cloud Setup Guide
Prerequisites
To connect Confluent Cloud to PeerDB, you need a Confluent Cloud account with Kafka Server running.
Setup Instructions
Gather the following details from Confluent Cloud
bootstrap.servers=<host>:9092
security.protocol=SASL_SSL
sasl.mechanisms=PLAIN
sasl.username={{ CLUSTER_API_KEY }}
sasl.password={{ CLUSTER_API_SECRET }}
Create the Kafka Peer
And then in UI you can create the Confluent Cloud / Kafka peer like so:
- Click on
Create Peer
- Select
Kafka
- For
Name
use a desired name, e.g.confluent_kafka_1
, only lowercase alphanumeric and underscores are allowed. - For
Bootstrap Servers
use thebootstrap.servers
value from the previous step. Multiple servers can be specified as a comma separated list. - For
Security Protocol
useSASL_SSL
. - For
SASL Mechanism
usePLAIN
. - For
Username
use theCLUSTER_API_KEY
from the previous step. - For
Password
use theCLUSTER_API_SECRET
from the previous step. - Click
Validate Connection
- Click
Create Peer
PeerDB only supports plaintext and SASL authentication. If username isn’t supplied then PeerDB will attempt to connect without authentication.
Partitioner can be usually be ignored; it maps to partitioning strategies in franz-go. To set partitioning keys you’ll need to specify Script
when creating mirror, see Lua reference for details.