question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please add support for server compression

See original GitHub issue

Is your feature request related to a problem? Please describe.

Not really, other than the fact that I cannot migrate my server from grpc to @grpc/grpc-js until @grpc/grpc-js supports compression. Our clients (millions of them…) send messages compressed (gzip) in a bi-directional stream. Also, @grpc/grpc-js does not return an UNIMPLEMENTED error when the client sends the grpc-compression header with a value other than identity

Describe the solution you’d like

Something along the lines of what is implemented in https://www.npmjs.com/package/grpc-server-js (I just perused through that code and found out that they already support compression) It also looks like this has been partially implemented in compression-filter.ts already… And I see a lot of TODO(cjihrig) in the code to point to the areas that should be modified.

Describe alternatives you’ve considered

Keep using the grpc package for now, even though it explicitly says that it has been deprecated. Compression is a major feature IMO, so maybe the deprecation was a little hasty?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
Lutzifercommented, Sep 20, 2021

We also have a use case for this feature in our projects.

6reactions
murgatroid99commented, Jan 18, 2022

Compression support in grpc-js has been expanded in the 1.5.x release: clients can now send compressed messages, and servers can now receive compressed messages. Support for sending compressed messages from servers is still pending.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable compression on the Tomcat server
It is recommended that customers activate compression on their Connect Layer Tomcat servers. This reduces the size of transaction data (and ...
Read more >
How to Enable GZIP Compression to Speed Up WordPress Sites
Learn how to enable GZIP compression to speed up your WordPress site on various web servers like Apache, Nginx, and IIS.
Read more >
SMB Compression | Microsoft Learn
SMB compression allows an administrator, user or application to request compression of files as they transfer over the network.
Read more >
Enabling data compression on an IBM HTTP Server
The Apache mod_deflate module can be used to improve response time in environments that have low bandwidth and high latency. The Apache ...
Read more >
2226 (Please add cache compression) - nginx
Please add cache compression ... TLS SNI support enabled ... We do it after our redis enterprise cloud server is slow when there...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found