Skip to content

client can use lz4 to compress request #89988

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wjp719
Copy link
Contributor

@wjp719 wjp719 commented Sep 11, 2022

now client can use gzip to compress request, but gzip is more cpu consuming, this pr add another choice to use lz4 to compress request.

In my test data, lz4 can compress data size to one fifth with 4% cpu overhead in client, while gzip can compress data size to one eighth with 17% cpu overhead. So LZ4 is more lightweight.

@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team v8.5.0 needs:triage Requires assignment of a team area label labels Sep 11, 2022
@wjp719 wjp719 changed the title add client lz4 compression client can use lz4 to compress request Sep 11, 2022
@kingherc kingherc added >enhancement :Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch labels Sep 12, 2022
@elasticsearchmachine elasticsearchmachine added Team:Clients Meta label for clients team and removed needs:triage Requires assignment of a team area label labels Sep 12, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/clients-team (Team:Clients)

@wjp719
Copy link
Contributor Author

wjp719 commented Sep 16, 2022

@jpountz can you help or find some one to review this pr, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Clients/Java Low Level REST Client Minimal dependencies Java Client for Elasticsearch >enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Clients Meta label for clients team v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.