persist_write

The persist_write directive controls whether to persistently write arbitrary data associated with the API request.

Syntaxpersist_write on | off;
Defaultoff
Context
Arguments1

Description

The persist_write directive allows for the preservation of data that is tied to a specific API request within the Kaltura Media Framework. By setting this directive, users can choose to store arbitrary user-defined data that can be accessed later, which is particularly useful for tracking state or managing user sessions across various components of the media framework. This data is likely stored in a structure that can be fetched later, allowing for easier management of user information and events without needing to manage separate databases or context management manually.

When configured, this directive is often part of the setup for the REST API interactions where session persistence is required. Setting this directive means that any data written will be retained across requests as long as the associated context is valid. Without enabling persistence using this directive, any data written during an API request would not survive beyond the lifecycle of that request, potentially leading to loss of important application state.

Config Example

persist_write on;

Ensure to verify that the necessary storage mechanism for the persistence is correctly configured, as misconfiguration could lead to data loss.

Check API request handling logic to ensure it properly reads and writes the persisted data.

Using persistence without clear data management practices can lead to memory bloat and performance issues.

← Back to all directives