devops_dummy
devops_dummy

Reputation: 43

Limit for no of messages in a topic partition

Is there a limit for total no of messages (or records or offsets) within a partition in a topic? I know there is a max. message size limit we can set either per partition or at broker level but I want to know if there is a no of limit for total no or max no of messages within a particular partition.

Thanks

Upvotes: 0

Views: 84

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191874

There is a theoretical limit. Kafka stores offsets as a Java Long. Therefore, I'd assume it's around Long.MAX_VALUE, but it would take years for you to really reach it.

Upvotes: 1

Related Questions