Skip to content

Concepts: Caching

Pratik Bhattacharya edited this page Dec 20, 2021 · 3 revisions

Concepts: Caching

Multiple workflows in the Feature Flighting service has caching involved to boost performance

Cache Types

When caching data the following types of cache can be used

Cache Type Description Configuration Key
In Memory The data is cached in memory of the instance. For every type of data that's cached, a caching duration is taken into consideration to determine the caching period InMemory
Redis Data cached in Azure Cache for Redis. Read more Redus
Unified Redis Platform An open-source solution for re-utilizing Redis Cache for multiple applications. Read more. URP
No Cache Cache will be disabled NoCache

The configuration key represents the value that must added in the Configuration. See Tenant Configuration for understanding the usage.

Cacheable Workflows

The following workflows can be cached

  1. Feature Flag Names

    The names of all the feature flags for a tenant can be cached. This is helpful is boosting the performance of Evaluate All Flags API.
    Recommended Cache - URP or In-Memory
    Recommended Duration - 4-6 hours

  2. Feature Flag Results

    Results of the feature flag evaluation. Helpful in boosting the performance of the Evaluate API.
    Recommended Cache - No cache

  3. Graph data

    Cache the list of users from the Configured Groups. Helpful in boosting the performance of the Evaluate API, when Graph Operators are used.
    Recommended Cache - In-Memory or URP
    Recommended Duration - 24-48 hours

  4. Rules Engine JSON

    Caches the JSON file from Azure Blob containing the Rules Engine. Helpful in boosting the performance of the Evaluate API, when Rules Engine filters are used.
    Recommended Cache - In-Memory
    Recommended Duration - 4-24 hours

Clone this wiki locally