You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking into using Casbin in a project, but I am a bit concerned about performance, and I can't really find any good info about how casbin-server works internally.
What I am hoping is that upon start the server loads the policy from storage (which will most likely be a SQL backend), and then keeps it in memory until server is shut down or restarted.
I'm guessing that all changes to the policy should then be performed via the API, which then auto-saves to the backend and updates internal states on changes.
Can anyone confirm that this is how the server operates? Loading and parsing the entire policy on each request does not seem very performant to me, if the project is going to be serving a couple of requests per second, and policy is comprehensive (some hundred users and likely a resource count in the thousands)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking into using Casbin in a project, but I am a bit concerned about performance, and I can't really find any good info about how casbin-server works internally.
What I am hoping is that upon start the server loads the policy from storage (which will most likely be a SQL backend), and then keeps it in memory until server is shut down or restarted.
I'm guessing that all changes to the policy should then be performed via the API, which then auto-saves to the backend and updates internal states on changes.
Can anyone confirm that this is how the server operates? Loading and parsing the entire policy on each request does not seem very performant to me, if the project is going to be serving a couple of requests per second, and policy is comprehensive (some hundred users and likely a resource count in the thousands)
Beta Was this translation helpful? Give feedback.
All reactions