Skip to content

GRPC Web Client Request Compression #706

Description

@lherman-cs

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions