- https://clickhouse.com/docs
- https://clickhouse.com/docs/sql-reference
- https://clickhouse.com/docs/interfaces
Core Functionality
- Writes Kafka messages into ClickHouse tables.
- Supports efficient batch inserts.
- Maps JSON payload fields to ClickHouse columns.
- Supports secure authentication using username/password and SSL.
- Optimized for high-throughput analytical workloads.
- The connector subscribes to a configured Kafka-native topic.
- Incoming JSON messages are parsed into structured records.
- Fields are mapped to the destination ClickHouse table schema.
- Records are inserted into ClickHouse using the HTTP interface or native protocol.
- Messages are batched before insertion to improve performance.
Field-by-Field Explanation
1. Title
Unique identifier for this connector inside Condense.
Example:
ClickHouse_Output_Orders
2. URL
Hostname or IP address of the ClickHouse server.
Example:
clickhouse.company.com
3. Port
Port used by ClickHouse.
Common values:
- 8123 (HTTP)
- 9000 (Native TCP)
analytics
5. Table Name
Destination ClickHouse table where records will be inserted.
Example:
events_stream
6. User
Username used to authenticate with ClickHouse.
Example:
default
7. Password
Password associated with the ClickHouse user.
8. Topic (Input)
Kafka-native Condense topic from which records are consumed.
Example:
processed_events
Sample Configuration Example
Int32, String, or DateTime.
2. Indexing
Use appropriate primary keys, partition keys, and ordering keys to improve query performance.
3. Cluster Deployments
When using distributed ClickHouse clusters, configure sharding and replication according to your deployment architecture.
4. Security
Use SSL/TLS for production deployments and securely manage authentication credentials.
Best Practices
- Use dedicated tables for different event streams.
- Define explicit schemas to avoid data type conflicts.
- Monitor connector logs for failed insert operations.
- Partition tables using timestamps or business attributes to improve analytical performance.
- Periodically optimize ClickHouse tables using appropriate maintenance operations.