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

Feature: add phpredis zstd compression support #104

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

benplunkett
Copy link
Contributor

Hi all,

First off, love your work. We (iseekplant.com.au) use Vapor to manage around 30 applications and 4 Redis clusters of varying sizes. We run one of our Redis clusters at 100% memory utilisation relying on LFU evictions to keep the cache fresh, and being able to transparently compress the cache values would allow us to utilise that cluster even more. So, recently I tried to enable cache compression following the Laravel docs here but found that compression support wasn't compiled into phpredis extension in the vapor runtime.

This PR adds only Zstandard compression in order to keep the PR small but also to minimise the layer size; on average it has added ~900kb to each version of the exported zip. I've also tested the exported layer in our production environment to ensure it works as expected.

We hope you'll consider merging and thanks for your hard work!

Cheers,
~Ben Plunkett

@taylorotwell taylorotwell marked this pull request as draft October 6, 2023 13:26
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.

1 participant