Cache Implementation in Cac Client #258
Closed
pratikmishra356
started this conversation in
General
Replies: 2 comments 2 replies
-
@pratikmishra356 do we need a new function
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Perf cac eval cache hit : microseconds Perf cac eval cache miss : microseconds (this includes eval and updating cache) -> around 500 overrides |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea is to fast lookup of the config for a given context, for this we will use cache where evaled config will be stored, and fallback will be the current eval logic i.e to iterate over all the condition , apply the given context and keep patching overrides
on top of default_configs
New Structure of Client
Function addition
Crate used for caching ->
For now we are going with mini_moka
we can set ttl, tti, number of keys in configuration
Structure of Cache
<String, Map<String,Value>>
key: this will sorted json string of (given context based on which eval happens)
value: this will be the full evaled config
Beta Was this translation helpful? Give feedback.
All reactions