All Classes Namespaces Functions Properties Pages
Context aware APIs and data caching

APIs can be context aware or non-context aware. A context aware SDK method is “aware” of the “context” in which it is being executed. A context aware method when executed in a scenario where the data cache is being used, can access the data cache instead of accessing the database directly.

TotalAgilty uses a temporary data cache to improve system performance under certain circumstances. When the data cache is being used, the latest data is contained within the data cache, and not the database itself. The database receives the latest data only when the system commits the information in the data cache to the database When a data cache is being used, only the context aware SDK methods execute correctly, as these methods are aware of the context under which they are being executed. They correctly access the data cache instead of the database.

If a non-context aware SDK method is used when a data cache is in use, an error occurs as the method tries to access the database instead of the data cache.

Scenarios where data cache is used

Context aware APIs

Not all public APIs are context aware. A list of context aware APIs of TotalAgility includes: