Configure Auto Scale (Optional)
v4.3.1
Last updated
v4.3.1
Last updated
Data caching is a technique used to improve the performance and responsiveness of applications. It works by storing frequently accessed data in a fast and easily accessible location.
When an application needs the data it can be retrieved quickly without having to go through time-consuming operations like accessing a database.
Distributed caching takes the concept of caching further by caching data in an external service accessible by one or more servers. This approach offers several benefits, including increased capacity to handle larger amounts of data, synchronized data across servers, and better scalability. By distributing the cache, the overall performance of the application can be enhanced, ensuring faster response times and improved efficiency.
The default behavior for all XMPro installations is that this location is on the host server memory, i.e. a single server.
Auto Scale, XMPro's implementation of distributed caching, offers a superior caching approach that is highly recommended, particularly for larger production-ready implementations. XMPro utilizes “Redis” (Remote Dictionary Server), which is a popular open-source data structure store for XMPro’s distributed caching needs.
The upgrade path to utilize Auto Scale is as follows:
Upgrade XMPro to V4.3.1+.
Provision Redis. Refer to Redis documentation for a guide on how to provision Redis.
Although Auto Scale has a bigger impact on App Designer performance, it is for all XMPro products that use SignalR, i.e. Data Stream Designer and Subscription Manager too.
Enable the AutoScale
setting in Application Designer.
Open the Application Designer appsettings.json file.
In the autoscale
object, set enabled
to true and enter the connectionstring
value.
Save the file and restart the Application Designer service.
Upgrade Data Streams Connector to V2.0+. Refer to Manage Connectors for a guide on adding a Connector and view the versions in use.
Upgrade Apps to use Data Streams Connector V2.0+. Refer to Data Integration for a guide on how to upgrade an App's connection.
Upgrading the Connector will clear the cache from the existing connector, and all data for the consuming App will be lost.
You do not have to upgrade all Apps to the new Connector version - their cached data and caching process will continue to work as before.
Repeat step 1 for Data Stream Designer.
Repeat step 1 for Subscription Manager but in the web.config file.
It might be encrypted, which will require you to decrypt it first. For instructions, please refer to the How to encrypt and decrypt a web.config file Knowledge Base article.