Skip to content

[docs] Add info on how to choose partition when using a key #6056

Description

@Jennifer88huang-zz

Describe the bug
On Partitioned topics page, it does not say what happens when you use a key. Does that override things? Does it change how a partition is chosen? Looking at the API docs, all of them talk about the absence of keys but don't say what happens with keys.

I see the link now to the routing modes. It doesn't really make sense that you can set round robin and have that overridden by simply adding a key.

With keys, how are partitions chosen? With Kafka it is:
selectedPartition = murmur2(keybytes) % numPartitions

Comments from Jesse Anderson

Metadata

Metadata

Labels

docYour PR contains doc changes, no matter whether the changes are in markdown or code files.type/bugThe PR fixed a bug or issue reported a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions