pekko-grpc icon indicating copy to clipboard operation
pekko-grpc copied to clipboard

Investigate a historical issue: gzip shouldn't be included by default ?

Open laglangyue opened this issue 1 year ago • 7 comments

I have been interested in FIXME of GRPC. image

image

So I want to talk about : (1)Gzip should be the default, or only use Identity? (2)supportedCodecs can be configured by reference?

In my opinion, according to the comments, gzip is not the default value for the client. Users can modify the supported codecs through the conf file

laglangyue avatar Apr 09 '24 07:04 laglangyue

@raboof I saw your comments from the PR of history in akka-grpc,WDYT ?

laglangyue avatar Apr 09 '24 07:04 laglangyue

Seems like it is the same issue https://github.com/grpc/grpc-java/issues/8542?

Roiocam avatar Apr 09 '24 15:04 Roiocam

Seems like it is the same issue grpc/grpc-java#8542?

thanks, let me see

laglangyue avatar Apr 10 '24 03:04 laglangyue

Seems like it is the same issue grpc/grpc-java#8542?

If I am reading this correctly this appears to be a non issue creating by a misunderstanding, i.e. Message-Accept-Encoding should list all of the compression schemes that you support, not the ones that is being used right now.

mdedetrich avatar Apr 10 '24 13:04 mdedetrich

I think the limitation identified here was the fact that we currently do not provide a way for the client to prevent the server from compressing the responses. This could be interesting to allow when making requests from low-powered machines, where you might be happy to spend a bit more bandwidth if it means spending less CPU time decompressing.

No idea why it was added as a 'FIXME' rather than a regular feature request, though - in retrospect it seems rather niche.

raboof avatar Apr 10 '24 14:04 raboof

I agree that this is not a major issue. If someone wants to add a config setting that allows users to disable compression support then that is nice to have

pjfanning avatar Apr 10 '24 14:04 pjfanning

Thanks for all. I only started reading the PR related to grpc-Java.

Yes, aggre that it is a Feature, not FXIME. GRPC-Java already support APIs for registering compression methods https://github.com/grpc/grpc-java/issues/1704 https://github.com/grpc/grpc-java/pull/9942

laglangyue avatar Apr 11 '24 03:04 laglangyue