Skip to content

Conversation

@leejustin
Copy link

@leejustin leejustin commented Jan 23, 2026

Summary

Adds gzip compression support to the Kafka producer. Users can now configure compression when creating or updating Kafka sinks to reduce network bandwidth and storage requirements.

I chose to only include gzip since other compression formats (snappy, lz4, zstd) require additional libraries to be installed. gzip works out of the box using Erlang's built-in zlib module.

Changes

Backend

Added compression field to KafkaSink schema with enum values: :none, :gzip
Default value is :none (no compression) for backward compatibility

Frontend

Added compression dropdown to Kafka sink configuration form for None and Gzip

Documentation

Updated docs/reference/sinks/kafka.mdx with compression configuration details

Tests

I ran the full test suite with the newly-added tests:

Finished in 45.7 seconds (16.3s async, 29.3s sync)
4 doctests, 1309 tests, 0 failures, 14 skipped

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. sink-kafka labels Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sink-kafka size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant