You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2026/10/24 01:10:18 UTC
[I] Support client-side request compression [pekko-grpc]
pjfanning opened a new issue, #923:
URL: https://github.com/apache/pekko-grpc/issues/923
Pekko gRPC clients always send uncompressed requests. Compressed responses are decompressed, and the server already negotiates gzip for its responses (`Codecs.negotiate`), but a client cannot compress what it sends.
Current state:
- pekko-http backend: `PekkoHttpClientUtils.createChannel` hard-codes `GrpcProtocolNative.newWriter(Identity)`. The comment there says "Configuring a different default could be a future feature. Configuring compression per call could be a future power API feature."
- Netty backend: grpc-java supports `CallOptions.withCompression("gzip")`, but Pekko gRPC exposes no way to set it.
- `GrpcClientSettings` and the `RequestBuilder`s have no compression option.
Proposal:
- A client setting (e.g. `GrpcClientSettings.withCompression` / `pekko.grpc.client."*".compression`, default none) that compresses requests with a supported codec (`gzip`) on both backends.
- Optionally, a per-call option on the request builders, like `setDeadline` (#922).
- A client can't know which algorithms a server supports (https://github.com/grpc/grpc/blob/master/doc/compression.md), so the default stays uncompressed.
- Tests against both backends and the interop server. Docs in `client/configuration.md`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org
Re: [I] Support client-side request compression [pekko-grpc]
Posted by "pjfanning (via GitHub) via notifications" <no...@pekko.apache.org>.
pjfanning closed issue #923: Support client-side request compression
URL: https://github.com/apache/pekko-grpc/issues/923
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org