Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Brotli compression for RPC requests by default #6719

Merged
merged 11 commits into from
May 15, 2024

Conversation

GytisCepk
Copy link
Contributor

Motivation

Enabling compression for RPC response bodies have show to significantly drop size of data which needs to be downloaded by the frontend. Right now, only certain RPC requests have Gzip compression enabled.

Also, Brotli compression have shown to have better compression ratio for our RPC requests without additional compressing time.

Changes

  • Make Brotli main compression instead of Gzip (if Brotli not supported by the browser, will fallback to Gzip).
  • Enable compression for all RPC responses by default (to disable compression for specific RPC request, add following line above definition: @RpcOperation.setPolicy({ allowResponseCompression: false }).

@GytisCepk GytisCepk merged commit 42c05b8 into master May 15, 2024
16 checks passed
@GytisCepk GytisCepk deleted the gytis/brotli-compression-for-rpc branch May 15, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants