How to estimate size for Apache Shiro permissions cache?
For example, permissions strings are implemented in format:
<domain>:<resource_group>:<resource_name>:<permission>
for example
my-domain:resource-group-0001:resource-0001:permission-001
Would Shiro store all those strings as plain text? In our case, we have 10,000+ users, 10,000+ resources and up 100 possible permissions. Of course only a fraction of all permutations would be present, but even then we are looking at 200M+ entries with potentially 10+ GB of data, which would be taxing for an in-memory cache.
The data would not be coming from a database in plain form, so no ehcache here. However, we do have to make this cache distributed, so current (smaller scale) implementation uses Redis.