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

redis hash for StateManagerRedis #4459

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

Conversation

benedikt-bartscher
Copy link
Contributor

@benedikt-bartscher benedikt-bartscher commented Dec 1, 2024

Drastically reduces the amount of redis calls for apps with many states
Keeps all states of a session in one redis hashmap instead of separate redis keys

@benedikt-bartscher benedikt-bartscher changed the title Redis hashset redis hash for StateManagerRedis Dec 1, 2024
@benedikt-bartscher benedikt-bartscher marked this pull request as ready for review December 3, 2024 01:44
@benedikt-bartscher
Copy link
Contributor Author

ci failure is the typical dynamic routes flakyness

benedikt-bartscher and others added 9 commits December 9, 2024 12:18
remove oxbow code now that REDIS_URL must be a real redis url
Continue to support redis < 7.2

Instead of updating individual substate expiration, in older versions of redis
any update to any substate will cause the entire state expiration to be
refreshed, which is better than not supporting older redis versions.
redis-py 5.1.0 adds support for the .hexpire() command
@masenf
Copy link
Collaborator

masenf commented Dec 12, 2024

@benedikt-bartscher i really like this one 👍

@benedikt-bartscher
Copy link
Contributor Author

@masenf thanks for the feedback and compability improvements you have pushed. I really appreciate it. We are already using this since some weeks and did not experience any issues. Will update our fork to the latest changes and keep you posted if everything still works.

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.

2 participants