Clickhouse Setup
You can create a managed service from Clickhouse Cloud with a 30 days free trial. Select your region and enter a name for your service. For simplicity, you can allow access to the service from anywhere. If you want to restrict to the IP addresses here is the list of Upstash addresses that needs permission:
Create a table
On Clickhouse service screen click onOpen SQL console
. Click on +
to open a
new query window and run the following query to create a table:

Kafka Setup
We will create an Upstash Kafka cluster. Upstash offers serverless Kafka cluster with per message pricing. Select the same (or nearest) region with region of Clickhouse for the best performance.

Connector Setup
We will create a connector on Upstash console. Select your cluster and click onConnectors
tab. Select Aiven JDBC Connector - Sink


- “name” : Name your connector.
- “connection.password”: Copy this from your Clickhouse dashboard. (
Connect
>View connection string
) - “connection.url”: Copy this from your Clickhouse dashboard. (
Connect
>View connection string
) - “connection.user”: Copy this from your Clickhouse dashboard. (
Connect
>View connection string
) - “errors.deadletterqueue.topic.name”: Give a name for your dead letter topic. It will be auto created.
- “topics”: Enter the name of the topic that you have created.
?ssl=true
as a parameter for the connection.url.
Click the Connect
button to create the connector.
Test and Run
Clickhouse expects a schema together with the message payload. We need to go back to the set up step and update the message object to include schema as below:It is not ideal to send the schema together with payload. Schema registry is a
solution. Upstash will launch managed schema registry service soon.
Connect
> Open SQL console
. Click on
page_views
(your table’s name) on the left menu. You should see the table is
populated like below:

