Multi-layer data cache to prevent user experience interrupts during feature flag management
Inventors
Assignees
Interested in licensing this patent?
MTEC can help explore whether this patent might be available for licensing for your application.
Abstract
There are provided systems and methods for a multi-layer cache to prevent user experience interrupts during feature flag management. A service provider may provide applications to computing devices of users including mobile applications. Use and availability of features in an application may be configured using feature flags, however, change of these feature flags may initiate an application refresh that affects user experiences with the application. To prevent interruptions, a multi-layer data cache may be used where feature flag data for the feature flags may initially be loaded, after a time period, to a first layer cache that is not used to update the application. When conditions exist for updating the application without affecting the user experience, such as if the user is no longer using a workflow, the feature flag data may be loaded to a second layer cache. The second layer cache may then be used for updating.
Core Innovation
The invention concerns a method in which an application on a computing device receives feature flag data for a feature flag associated with an application functionality. The feature flag data is stored in a first cache that persists in memory of the computing device after exiting the application, while a second cache for the application is erased after exiting the application.
The method detects a current usage of the application and determines that a first amount of time has elapsed between the current usage and a previous usage, where the first amount of time meets or exceeds a threshold amount of time designated for loading or updating the feature flag. Based on the current usage and the first amount of time, the method determines whether to load or update the feature flag using the feature flag data and the second cache for the application.
Claims Coverage
The independent claims are directed to a method, a computing device configured to perform the operations, and a non-transitory machine-readable medium. Across these, the inventive coverage centers on feature-flag loading or updating decisions based on detected application usage and elapsed time relative to a threshold, using a first cache that persists after exit and a second cache that is erased after exit.
Time-threshold feature flag load/update selection using first and second caches
Determining that a first amount of time has elapsed between the current usage of the application and a previous usage of the application, wherein the first amount of time meets or exceeds a threshold amount of time designated for loading or updating the feature flag; and determining, based on the current usage and the first amount of time, whether to load or update the feature flag using the feature flag data and a second cache for the application, wherein the second cache is erased after exiting the application.
Persistent first cache for feature flag data across exiting the application
Storing the feature flag data in a first cache for the application on the computing device, wherein the first cache persists in a memory of the computing device after exiting the application.
Detected current usage of the application for load/update decisioning
Detecting a current usage of the application and determining that a first amount of time has elapsed between the current usage of the application and a previous usage of the application.
Non-transitory machine-readable medium instructions to perform cache-based feature flag load/update decisioning
A non-transitory machine-readable medium having stored thereon machine-readable instructions executable to cause a computing device to perform operations comprising receiving, by an application on the computing device, feature flag data; storing the feature flag data in a first memory that persists after exiting the application; detecting a current usage; determining elapsed time versus a threshold; and determining whether to load or update using the feature flag data and a second memory erased after exiting.
The claim set covers feature-flag loading or updating decisions driven by detected current usage and elapsed time relative to a threshold, using feature flag data stored in a first cache that persists after application exit and a second cache that is erased after exiting. The method, computing device, and machine-readable medium embodiments share this core workflow.
Stated Advantages
Documented Applications
No documented applications found
Interested in licensing this patent?