Topic Compaction Strategy #21371
marekczajkowski
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
cc @coderzc |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice to be able to set a compaction strategy on topic/namespace level. Something similar to what it's available for TableView where we can pass the compactionStrategy class name to load TopicCompactionStrategy but on the broker.
Such a change would make topic compaction more flexible. Let's think of an application that sets eventTime on messages when a message is produced. These messages can be sent one by one with time T1,T2...TN. Despite the fact that messages are sent in order they may be put to topic in different order. We would like to compact the topic based on eventTime to have the last sent messages on the compacted topic instead of the last received.
Beta Was this translation helpful? Give feedback.
All reactions