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

Introduce header/data compression for sending events #439

Open
JSmith01 opened this issue Aug 6, 2024 · 0 comments
Open

Introduce header/data compression for sending events #439

JSmith01 opened this issue Aug 6, 2024 · 0 comments

Comments

@JSmith01
Copy link

JSmith01 commented Aug 6, 2024

The company I work in uses Mixpanel API for quite some time at a decent scale for their products. Some of them send a big amount of data for each event. Additionally, Mixpanel does batching, that leads to requests having huge payloads. The question: is it possible to add some data compression (gzip/etc)?

We've implemented this for our internal tracking tool, so it uses "Content-Encoding: gzip" header and compresses (our case) json payload using Compression Streams API. But our tracking backend supports this encoding. In the product we mostly support recent browsers, so this compression API is almost always present.

It is critical for some applications to have an ability to deliver events in a realtime still keeping them small despite the high amount of reported data. As an example, our company provides a WebRTC-based videoconferencing solution, that in some circumstances suffers from additional traffic we're producing by calling the Mixpanel API.

To sum up, please consider adding compression for sending event payloads.

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

No branches or pull requests

1 participant