Skip to content

FEATURE: Tenant partitioned caches could improve cache-hit ratio#2956

Open
rPraml wants to merge 1 commit intoebean-orm:masterfrom
FOCONIS:tenant-partitioned-caches
Open

FEATURE: Tenant partitioned caches could improve cache-hit ratio#2956
rPraml wants to merge 1 commit intoebean-orm:masterfrom
FOCONIS:tenant-partitioned-caches

Conversation

@rPraml
Copy link
Contributor

@rPraml rPraml commented Feb 2, 2023

Hello @rbygrave,

this is more or less a proof-of-concept, where I need your feedback

we have a multi-tenant application with ~ 50 tenants. I noticed, that we get a lot of 'cache clears' from other customers.
We cache a lot of things in our applications (user-directory, settings, ...) and if one customer updates the settings e.g. it will invalidate the caches for all other. So I tried to experimet with tenant partitioned caches, which means, each tenant has its own set of caches.

On the other hand, caches had to be created dynamically and would - at least in current implementation - stay there forever, also if the tenant does not longer exist.

I don't have exact numbers about this improvement, but do you think, this could be useful?

@rPraml rPraml changed the title Tenant partitioned caches could improve cache-hit ratio FEATURE: Tenant partitioned caches could improve cache-hit ratio Aug 8, 2023
rPraml added a commit to FOCONIS/ebean that referenced this pull request Aug 10, 2023
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