Does protobuf-ts support client request compression?
From my search, this is technically possible using https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API.
My use case is for recording analytics. I want to keep the protocol as simple as possible. But, this comes at a cost of having many redundant strings in the analytics request (this is due to batching the analytics events, and each event has tags).
Simple protocol, but redundant data on "tags". But, a compression like gzip can easily reduce the size.
message AnalyticsReportReq {
repeated AnalyticsEvent events = 1;
}
message AnalyticsEvent {
sint64 timestamp_us = 1;
AnalyticsTags tags = 2;
AnalyticsMetrics metrics = 2;
}
Does protobuf-ts support client request compression?
From my search, this is technically possible using https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API.
My use case is for recording analytics. I want to keep the protocol as simple as possible. But, this comes at a cost of having many redundant strings in the analytics request (this is due to batching the analytics events, and each event has tags).
Simple protocol, but redundant data on "tags". But, a compression like gzip can easily reduce the size.