Configure Azure Redis cache

When you upload your site on several instances in Azure or want to scale the instances, you need to prepare the communication infrastructure to transmit messages between the nodes. For example, to communicate cache invalidation. Sitefinity CMS uses Redis message sender that you must configure for NLB communication in Azure Web Apps.

NOTE: In Sitefinity CMS Redis Cache is used for NLB communication only. It is not used for persisting items in cache.

Perform the following:

  1. In Microsoft Azure, configure a running instance of Azure Redis and get a connection string.
    For more information, see How to Use Azure Redis Cache.
  2. In Sitefinity CMS backend, navigate to Administration » Settings » Advanced » System » LoadBalancing » Redis Settings » Connection String.
  3. In the Redis Settings page that appears, enter the connection string and prefix key for all messages to be used from this site.
  4. This enables using Redis from different client applications.
    Ensure that the ConnectionString field is in the following format: 
    $redisPrimaryKey@$redisCacheName.redis.cache.windows.net?ssl=true
    For example, 
    yq2YLjsdlf34iwushrgesdeirkfs034jsdls493=@mydomain.redis.cache.windows.net?ssl=true
  5. Save your changes.

NOTE: Because Redis Cache is not used for storing cache data, but for NLB communication only, Sitefinity CMS can work with the minimum pricing tier for Azure Redis – Basic tier for development purposes. If you want to achieve failover redundancy for a production environment, we recommend using at least Azure Standard Pricing tier (C0+). For more information about the different pricing tires, see Redis Cache Pricing.

NOTE: Sitefinity CMS and Redis are completely decoupled and they can work both (or one of them) on-premises infrastructure.

 

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?