Skip to content

Commit

Permalink
Use snappy compression as this is the only compression type supported…
Browse files Browse the repository at this point in the history
… by most kafka clients
  • Loading branch information
fernandofcampos committed Oct 2, 2024
1 parent 62a2237 commit bfe4314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/kafka_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func NewFranzClient(seeds []string, user, password string) (*kgo.Client, error)
User: user,
Pass: password,
}.AsMechanism()),
kgo.ProducerBatchCompression(kgo.ZstdCompression()),
kgo.ProducerBatchCompression(kgo.SnappyCompression()), // Do not change this, as this is the only compression type supported by most kafka clients
kgo.RequiredAcks(kgo.AllISRAcks()),
kgo.ProducerBatchMaxBytes(16e6),
kgo.RecordPartitioner(kgo.ManualPartitioner()),
Expand Down

0 comments on commit bfe4314

Please sign in to comment.