Announcing a New Official ClickHouse Kafka Connector
ClickHouse released a beta open-source Kafka Connect sink that aims for exactly-once delivery into ClickHouse. Existing options all stop at at-least-once delivery: the Kafka table engine, Vector, and the JDBC/HTTP Kafka Connect sinks. The design builds on Kafka Connect's at-least-once behaviour and adds ClickHouse insert deduplication plus a state machine that forms consistent, repeatable batches. Connector state lives in ClickHouse Keeper, exposed through a new KeeperMap table engine because it offers linearizable writes without the latency of a strongly consistent replicated table. The connector supports most ClickHouse types, uses RowBinary for schema'd data and JSON for schemaless data, and has an in-memory test mode with no exactly-once guarantees.
Related posts
- Real-time Event Streaming with ClickHouse, Kafka Connect and Confluent Cloud
ClickHouse mediumAdept
ClickHouse's official Kafka Connect sink, which uses the KeeperMap table engine for exactly-once semantics, can now be deployed as a Confluent Cloud Custom Connector. The walkthrough streams public Ethereum datasets from Google Pub/Sub through a Confluent Kafka topic into ClickHouse Cloud using only UI configuration, cutting data latency from about 30 minutes with the earlier batch BigQuery export to roughly 4 minutes. Practical tips include using a pull subscription and raising the Pub/Sub acknowledgement deadline from 10s to 60s to avoid duplicate deliveries. Cost estimates are under $1/month for Pub/Sub on the blocks dataset and about $6/day for Confluent.
- Streamkap: An out-of-the-box CDC solution for ClickHouse
ClickHouse mediumAdept
Streamkap's ClickHouse connector streams change data capture from PostgreSQL, MySQL, SQL Server, Oracle and MongoDB into ClickHouse using Kafka, Debezium and Flink. It maps Kafka Connect types, including nested structs and arrays, to ClickHouse types such as Tuple and Array, and adds metadata columns like op type, source timestamp and delete flag to every row. Append mode writes every change to MergeTree tables, while the default upsert mode uses ReplacingMergeTree keyed on the event timestamp and a delete flag, so queries need FINAL to get deduplicated results. The post also covers handling inconsistent semi-structured source data and choosing between blocking and incremental snapshots for the initial load.
- Announcing the Fivetran Destination for ClickHouse Cloud
ClickHouse easyNovice
ClickHouse Cloud now has an open-source (Apache 2.0) Fivetran destination in public preview, written in Go on the Fivetran Partner SDK, that loads data from Fivetran's 500+ sources. Because Fivetran may send partial update events, the destination reads the full row before reinserting an updated copy, and it uses select_sequential_consistency=1 to avoid stale reads behind load balancers. That setting is cheap on SharedMergeTree but costly on ReplicatedMergeTree, so the destination is Cloud-only for now. Updates and deletes go through SharedReplacingMergeTree, which means queries need FINAL for accurate results. It suits moderate volumes of SaaS data such as Zendesk or Salesforce; for TB/PB-scale loads, ClickPipes or Kafka Connect are the recommended tools.
- Collecting Semi-structured Data from Kafka Topics Using ClickHouse Kafka Engine
ClickHouse mediumAdept
Superology, a sports-betting product company, ingests clickstream and other customer quantitative data into ClickHouse straight from Kafka using the Kafka table engine with the Protobuf input format. Events are batched into a single proto message that uses oneof fields for varying event types. Schemas evolve only by adding fields, which keeps them backward compatible; origin table columns are added with ALTER TABLE, and dropped fields are deprecated rather than removed. Materialized views filter and transform the data for funnels, segmentation and dashboards, tiered storage moves older data to S3, and built-in statistical functions such as welchTTest and mannWhitneyUTest support A/B and Bayesian experimentation.
- ClickHouse v21.11 Released
ClickHouse mediumAdept
ClickHouse 21.11 adds asynchronous inserts, which buffer many small concurrent INSERTs server-side and flush them as a single batch. This removes the need for Kafka or buffer tables in high-rate ingestion, and it is tunable via async_insert, wait_for_async_insert, async_insert_threads, async_insert_max_data_size and async_insert_busy_timeout_ms. The release also brings an interactive clickhouse-local CLI that needs no server, executable UDFs written in any language, named predefined connections to external sources such as MySQL and S3, and automatic compression handling for INTO OUTFILE and FROM INFILE.