Skip to content

feat: Compress requests using brotli algo#962

Open
mixalturek wants to merge 3 commits into
masterfrom
brotli-compression
Open

feat: Compress requests using brotli algo#962
mixalturek wants to merge 3 commits into
masterfrom
brotli-compression

Conversation

@mixalturek

@mixalturek mixalturek commented Jul 8, 2026

Copy link
Copy Markdown
  • https://github.com/apify/apify-core/pull/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

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
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.
@mixalturek mixalturek force-pushed the brotli-compression branch from 72a31ef to eb5fea4 Compare July 8, 2026 07:11
```
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 barjin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mixalturek !

Looks pretty straightforward to me, so approving 👍

- 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.
@mixalturek mixalturek force-pushed the brotli-compression branch from d069ea9 to 72d9bf0 Compare July 8, 2026 15:41
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
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

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.

3 participants