Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Message key#

Sumit Rawal answered on May 31, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers


Message key#

0

We mentioned earlier that a message gets written to a topic. Yet since partitions make up a topic, messages in reality get written to and read from partitions. We can control which partition a message lands in with the use of message keys. A message key is treated like a byte array by Kafka and is optional. Say there are five partitions within a topic. One scheme might be to compute modulo five of the numeric value represented by the key and direct the message to the partition number equal to the result of the operation. Thus, all messages with the same key are written to the same partition.

Popularity 2/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on May 31 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.