feat: Compress requests using brotli algo#962
Open
mixalturek wants to merge 3 commits into
Open
Conversation
Contributor
|
✅ The link checker did not find any broken links. See more at https://github.com/apify/apify-client-js/actions/runs/28925391027#summary-85811695449 |
- apify/apify-core#28971 added support for brotli compression to BE. - Pros: higher compression, cons: more CPU intensive. - The code could be running on too old Node.js, so brotli compression is applied only if possible; the code otherwise falls back to gzip. Too small payloads and unsupported types are still not compressed - no change.
72a31ef to
eb5fea4
Compare
``` Errors in website/build/reference/next/class/ActorClient.html [404] https://docs.apify.com/api/v2/act-input-validate-post | Rejected status code: 404 Not Found (configurable with "accept" option) ```
barjin
approved these changes
Jul 8, 2026
barjin
left a comment
Member
There was a problem hiding this comment.
Thank you @mixalturek !
Looks pretty straightforward to me, so approving 👍
This was referenced Jul 8, 2026
14986dd to
d069ea9
Compare
- apify/apify-client-python#927 (comment) - The default was 11 (max). Now it uses quality 6 - roughly 2–4× faster with only a modest increase in compressed size.
d069ea9 to
72d9bf0
Compare
Contributor
|
✅ The link checker did not find any broken links. See more at https://github.com/apify/apify-client-js/actions/runs/28955593200#summary-85913601586 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related PRs