Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gzip compression as an option #77

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

jbeemster
Copy link
Member

This is a simple PR to test out GZIP compression on a tracker and can be used to validate whether or not it gives sufficient gains to be worth pursuing as a formal integration with the Snowplow Collector.

@coveralls
Copy link

coveralls commented Oct 27, 2023

Coverage Status

coverage: 98.491% (-1.0%) from 99.452% when pulling 8aba726 on gzip-post-compression into 88ca5cf on master.

@@ -40,20 +41,19 @@ func main() {
tracker := sp.InitTracker(
sp.RequireEmitter(emitter),
sp.OptionSubject(subject),
sp.OptionBase64Encode(true),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: just for setting up the experiment, wouldn't the gzip compression be more efficient in case we didn't encode to base 64? I think we lose some potential for compression by using base64 before gzip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants