What are the retention policies for Kafka messages?

Kafka has several different message retention policies.

  1. The deletion policy is set to automatically delete messages when they exceed the designated retention period.
  2. Compression is the deletion strategy: Messages will be compressed and old versions will be deleted once they reach the retention period.
  3. The deletion strategy is set to compact: once messages reach the retention period, only duplicate keys in key-value pairs will be deleted, retaining the latest messages.
Leave a Reply 0

Your email address will not be published. Required fields are marked *