FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Compression for KafkaSink by leejustin · Pull Request #2106 · sequinstream/sequin · GitHub

Repository navigation

Add Compression for KafkaSink - #2106

Open
leejustin wants to merge 4 commits into
sequinstream:mainfrom
leejustin:jlee/01-23-feat_kafka_producer_compression
Open

leejustin wants to merge 4 commits into
sequinstream:mainfrom
leejustin:jlee/01-23-feat_kafka_producer_compression

Conversation

leejustin commented Jan 23, 2026 •
edited
Loading

Copy link
Copy Markdown
Contributor

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 Bot added size:L This PR changes 100-499 lines, ignoring generated files. sink-kafka labels Jan 23, 2026

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL