Context lease time

Last Updated : Sep 14, 2020 |

Context Store preserves a context entry for a specific time. Context Store defines this time as the lease time or time-to-live of the context. Any Context Store client can renew this lease time, or time-to-live at any moment. A Context Store client can also define the context lease time while creating a context. The client can specify different lease time values for different scenarios. The default value is 2 hours.

A Context Store client can also provide the lease query parameter, or leave the value blank. In this case, Context Store uses the default configured lease time for the context object.

If you are planning to use the External Data Mart Provisioning feature, you must remember that the provisioned context objects are stored in the data-grid with infinite lease time.

Note:

Context Store supports retrieval of expired context data if that data was persisted to the External Data Mart. The retrieved data is written back into the data-grid with default lease. This optional feature is enabled through the Enable Retrieval From Database attribute of the ContextStoreRest service.

To use the Context Store in-memory data grid efficiently, you must evaluate the lease time requirements of the contexts before implementing Context Store. This analysis helps to understand the memory requirements and usage, and to provide a Context Store solution that can store all information for the required time. For data to be considered temporary under data privacy laws, the lease time for any context store data must be less than 24 hours.

For details about the average latency of a request, see the Capacity and specifications section. To store the information for a longer duration, you can use an external database.