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

perf: Use local caches for avatars #8951

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

ChristophWurst
Copy link
Member

Local caches are faster. Distributed caches are only needed if cache is used for consistency. Populating avatar/provisioning caches for each application server should be cheaper than the remote cache access for a lot of requests reading avatars and provisionings.

@ChristophWurst
Copy link
Member Author

I'm realizing that for provisionings it's tricky. We don't use cache as a cache but as storage with explicit clearing to propagate changes. There will be strange artifacts on distributed systems.

@ChristophWurst ChristophWurst mentioned this pull request Nov 29, 2023
24 tasks
Local caches are faster. Distributed caches are only needed if cache is
used for consistency. Populating avatar/provisioning caches for each
application server should be cheaper than the remote cache access for a
lot of requests reading avatars.

Signed-off-by: Christoph Wurst <[email protected]>
@ChristophWurst ChristophWurst changed the title perf: Use local caches for avatars and provisioning configs perf: Use local caches for avatars Jul 2, 2024
@ChristophWurst
Copy link
Member Author

Provisioning cache changes undone

@ChristophWurst ChristophWurst merged commit 8c79988 into main Jul 2, 2024
36 checks passed
@ChristophWurst ChristophWurst deleted the perf/local-caches branch July 2, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants