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

Add compression support to Forest RPC server #4903

Open
2 of 3 tasks
hanabi1224 opened this issue Oct 16, 2024 · 0 comments · May be fixed by #4906
Open
2 of 3 tasks

Add compression support to Forest RPC server #4903

hanabi1224 opened this issue Oct 16, 2024 · 0 comments · May be fixed by #4906
Assignees
Labels
Type: Task Discrete task to implement

Comments

@hanabi1224
Copy link
Contributor

hanabi1224 commented Oct 16, 2024

Summary

An F3 sidecar uses the hosting Forest node as EC backend via RPC calls, we could reduce response size and latency of the RPC calls by using content compression.

Completion Criteria

  • Forest RPC server should support Accept-Encoding header (e.g. Accept-Encoding: gzip, deflate, compress, br, zstd) and respond with Content-Encoding header. (e.g. Content-Encoding: br)
  • RPC client in f3-sidecar should request content compression by sending Accept-Encoding header
    confirmed that http.client sets Accept-Encoding: gzip and decodes gzipped response automatically
  • Consider using content compression in RPC parity tests

Additional Links & Resources

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding

@hanabi1224 hanabi1224 added the Type: Task Discrete task to implement label Oct 16, 2024
@hanabi1224 hanabi1224 self-assigned this Oct 16, 2024
@hanabi1224 hanabi1224 linked a pull request Oct 16, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Task Discrete task to implement
Projects
Status: Ready
Development

Successfully merging a pull request may close this issue.

1 participant