-
Notifications
You must be signed in to change notification settings - Fork 932
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
OpenFGA: Add request cache to the OpenFGA datastore #14557
base: main
Are you sure you want to change the base?
OpenFGA: Add request cache to the OpenFGA datastore #14557
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General LGTM, just a couple of nits :)
Thanks! Fixing this right away |
a4814ce
to
9c61530
Compare
Signed-off-by: Gabriel Mougard <[email protected]>
…name. Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Mark Laing <[email protected]> Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
9c61530
to
2f78972
Compare
@tomponline @markylaing updated (thanks Mark for helping documenting this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This PR decrease the latency of API calls that are going through the OpenFGA fine-grained authorizer. Thanks to a per-request cache mechanism, we avoid calling the database when the cache key is present.
This work has been benchmarked and has been used in the following PR: #14476
openfga_benchmark.pdf
The benchmarking script can be found at: https://paste.ubuntu.com/p/WCwsk6gSSK/