feat: Compress requests using brotli algo#1031
Draft
mixalturek wants to merge 1 commit into
Draft
Conversation
- Update apify-client dependency to use `brotli` extra. - Introduced in apify/apify-client-python#927. TODO/blocked: ``` What to do once PR #927 merges and apify-client releases: 1. Check which version introduced the extra (likely 3.1.0 or 3.0.5) 2. Optionally bump the floor in pyproject.toml: apify-client[brotli]>=3.1.0 in the extra dep, or tighten the main apify-client>=3.0.0 to that version 3. Run uv sync --all-extras — the warning will disappear and brotli's transitive deps will be locked 4. Commit both files ```
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1031 +/- ##
=======================================
Coverage 91.75% 91.75%
=======================================
Files 50 50
Lines 3215 3215
=======================================
Hits 2950 2950
Misses 265 265
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
mixalturek
added a commit
to apify/apify-client-js
that referenced
this pull request
Jul 9, 2026
- 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. ### Related PRs - apify/apify-core#28971 - apify/apify-docs#2750 - #962 - apify/apify-client-python#927 - apify/apify-sdk-python#1031
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.
brotliextra.Related PRs
TODO/blocked: