Hear from Salesforce leaders on how to create and deploy Agentforce agents.
Contact Us 1-800-596-4880

Configuring Flex Gateway Configuration Caching in Connected Mode

To reduce scale-up time and increases resiliency, Flex Gateway can cache its gateway configuration in Redis shared storage. Flex replicas use the cached gateway configuration instead of each replica directly downloading the configuration from Anypoint Platform. By default, configuration caching is not enabled.

Flex Gateway configuration caching works by:

  1. After the first Flex replica starts, the replica downloads the configuration from Anypoint Platform, encrypts the configuration, and stores it in Redis.

  2. After subsequent replicas start, they use the locally cached configuration rather than downloading from Anypoint Platform.

  3. If the Flex Gateway configuration changes on Anypoint Platform, the replicas download the necessary configuration from Anypoint Platform and store it in Redis for immediate use by the other replicas.

If caching is configured and Redis errors occur, each replica downloads configurations directly from Anypoint Platform. If Flex Gateway disconnects from Anypoint Platform, Flex gateway uses the cached configuration until connections are restored.

Enable Flex Gateway Configuration Caching

  1. Ensure the Redis shared storage is configured.

  2. Enable the FLEX_DATASOURCE_CONTROL_NODE_ENABLED=true environment variable.