rohityadavcloud commented on pull request #5854:
URL: https://github.com/apache/cloudstack/pull/5854#issuecomment-1011077221


   @shwstppr Another way is to cache the entire listApis response cache for 
each role type in the system (or roles in use by account); we can try to keep 
this for most common/"hot" roles the algorithm is simply:
   - when a list API is called -> check if an API cache exists for a role
   - If not, create the response and put the list API response cached somewhere
   - misc: keep a max/threadhold on this in-memory cache so this cache doesn't 
take say more than 100MB ram etc.
   - complex/adv level: let this be served by a different/static end point 
where this cache is stored somewhere in memory/disk and let UI load diffs 
automatically (for ex. list APIs that are allowed by all + diff. APIs specific 
t roles)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to