Feature request: External Caching #305
Closed
grizzlybearer
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
We have a roadmap item for this openfga/roadmap#21. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
We leverage OpenFGA server side in-memory caching of sub-problems of the Check API that improves latency and throughput (due to the reduction of DB calls). However, we’re unable to fully utilize the cache due to few factors:
Goal
Goal 1: Support external data stores for OpenFGA Check Caching
This would improve the cache hit percentage of an OpenFGA multi-instance setup since cache results are stored in an external store and not in-memory
Goal 2: Support OpenFGA ListObjects Caching
ListObjects API is used in 1 of our critical user paths (search pre-filtering with permissions).
The same data (user to groups) is used for a user and a ripe candidate for caching.
This has multiple benefits:
Solution Overview
OpenFGA would use a server-side L1 L2 caching strategy where:
Beta Was this translation helpful? Give feedback.
All reactions