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

Speedup startup by caching rooms with active connections #892

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

Conversation

Half-Shot
Copy link
Contributor

When we start up, we currently fetch all state across all rooms that we are joined to. This is ludicrously expensive, but reasonably safe to do. On large deployments this effectively means there is a noticeable gap between restarts. We can do some tinkering around the edges here by caching the rooms which are "active", and do fewer state requests as a result.

@Half-Shot Half-Shot requested a review from a team as a code owner February 6, 2024 17:19
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.

None yet

1 participant