---
title: "Discussion on \"CockroachDB Changefeeds: mapping primary key to Kafka partition\" | Hashnode"
description: "Discussion on \"CockroachDB Changefeeds: mapping primary key to Kafka partition\". In the Documentation for CockroachDB changefeeds (CDC), we read that\n\nRows are sharded between Kafka partitions by the row’s primary key.\nThis post documents a simple experiment to verify this claim.\n\nThis comment from the Go Kafka client used by Coc..."
url: "https://hashnode.com/posts/cockroachdb-changefeeds-mapping-primary-key-to-kafka-partition/6328a215195e7dc741da6145"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [CockroachDB Changefeeds: mapping primary key to Kafka partition](https://goddard.hashnode.dev/cockroachdb-changefeeds-mapping-primary-key-to-kafka-partition?utm_source=hashnode&utm_medium=feed)

In the Documentation for CockroachDB changefeeds (CDC), we read that Rows are sharded between Kafka partitions by the row’s primary key. This post documents a simple experiment to verify this claim. This comment from the Go Kafka client used by Coc...

Sep 19, 2022 · 3 min read · goddard.hashnode.dev  
Read the article

-   [#cockroachdb](https://hashnode.com/tag/cockroachdb)
-   [#sql](https://hashnode.com/tag/sql)
-   [#cdc](https://hashnode.com/tag/cdc)
-   [#databases](https://hashnode.com/tag/databases)
-   [#change-data-capture](https://hashnode.com/tag/change-data-capture)

## Written by

[Michael Goddard](https://hashnode.com/@linuxologist)

@linuxologist

  
[View profile](https://hashnode.com/@linuxologist)

I love CockroachDB

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
