---
title: "Announcing a New Official ClickHouse Kafka Connector"
description: "ClickHouse released a beta open-source Kafka Connect sink that aims for exactly-once delivery into ClickHouse."
url: "https://swe.quest/articles/announcing-a-new-official-clickhouse-kafka-connector-5e810526c099fceb"
canonical: "https://clickhouse.com/blog/kafka-connect-connector-clickhouse-with-exactly-once"
source: "ClickHouse"
published: "2023-01-12"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 8
tags: ["messaging","data-pipelines","analytics","consistency"]
---

# Announcing a New Official ClickHouse Kafka Connector

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-01-12, 8 min read, Announcement. Original: [https://clickhouse.com/blog/kafka-connect-connector-clickhouse-with-exactly-once](https://clickhouse.com/blog/kafka-connect-connector-clickhouse-with-exactly-once)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Consistency models](https://swe.quest/tags/consistency.md) (Distributed systems)

## Prerequisites

- Kafka consumer offsets ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- Kafka Connect basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- Delivery semantics

## Keywords

ClickHouse, Apache Kafka, Kafka Connect, ClickHouse Keeper, KeeperMap, RowBinary, ClickHouse Cloud

## Related posts

- [Real-time Event Streaming with ClickHouse, Kafka Connect and Confluent Cloud](https://swe.quest/articles/real-time-event-streaming-with-clickhouse-kafka-connect-and-confluent-cloud-afbdec81890c4edb.md): ClickHouse · 2023-06-22 · Medium · 18 min read · Queues & messaging, Data pipelines, Analytics & OLAP, Stream processing
  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.
- [Streamkap: An out-of-the-box CDC solution for ClickHouse](https://swe.quest/articles/streamkap-an-out-of-the-box-cdc-solution-for-clickhouse-fb75535a3b94ad24.md): ClickHouse · 2024-02-22 · Medium · 14 min read · Event-driven architecture, Analytics & OLAP, Data pipelines, Schema migrations
  Streamkap's ClickHouse connector streams change data capture from PostgreSQL, MySQL, SQL Server, Oracle and MongoDB into ClickHouse using Kafka, Debezium and Flink.
- [Announcing the Fivetran Destination for ClickHouse Cloud](https://swe.quest/articles/announcing-the-fivetran-destination-for-clickhouse-cloud-fb04100010478236.md): ClickHouse · 2024-04-25 · Easy · 4 min read · Analytics & OLAP, Data pipelines, Consistency models
  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.
- [Collecting Semi-structured Data from Kafka Topics Using ClickHouse Kafka Engine](https://swe.quest/articles/collecting-semi-structured-data-from-kafka-topics-using-clickhouse-kafka-engine-3d9b1ad5e7d388c2.md): ClickHouse · 2022-06-15 · Medium · 5 min read · Analytics & OLAP, Queues & messaging, Data pipelines, Schema migrations
  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.
- [ClickHouse v21.11 Released](https://swe.quest/articles/clickhouse-v21-11-released-1011a7b63db415f6.md): ClickHouse · 2021-11-11 · Medium · 4 min read · Analytics & OLAP, Databases
  ClickHouse 21.11 adds asynchronous inserts, which buffer many small concurrent INSERTs server-side and flush them as a single batch.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
