More in this section
Forums / Developing with Sitefinity / Web Farm question

Web Farm question

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Marcelo
    Marcelo avatar
    1 posts
    07 Jan 2009
    07 Jan 2009
    Link to this post


    My company is looking for a CMS solution and I'm responsible for the product decision. I have a question about Web Farms and Sitefinity.

    I read in the documentation that Sitefinity supports web farms. The only requirement for load balanced environment is to change the cache dependency mode in the application web.config from "InMemory" to "InDatabase".

    My question is about how "InDatabase cache" works? I mean, suppose that I have 30 web servers in load balancing. Everytime when a user request a page the web server will connect to the database cache? If I shutdown the database cache my site goes down? Or the pages stay in each web server and Sitefinity synchronize files between servers?


  2. Vlad
    Vlad avatar
    498 posts
    19 Jun 2017
    08 Jan 2009
    Link to this post
    Hello Marcelo,

    You said "InDatabase cache", but this is not correct, because "InDatabase" is only the CacheDependency, the actual cached items are stored in the memory by default. However, you can easy implement a custom CachingProvider for storing cached items in different place, i.e. in the database.

    How the Sitefinity caching works?
    Let say that you have 2 servers in the web farm and you are using the default MemoryCachingProvider. When you request a page, which requires caching, and it is processed by the first server, the page will be cached on the server memory. If the same page is processed on the second server, it will be cached on it as well. The "InDatabase" CacheDependency mode means that if you change the page (update properties, publish, delete, etc.) on any of the servers, Sitefinity will invalidate all dependent cache items on all servers in the farm. Otherwise, in case of "InMemory" cache dependency, it will invalidate only the cache items on the server, where the change is made.
    As for synchronizing files between servers, it is not Sitefinity responsibility, the load balanced software should manage this.

    Hope this information is helpful. Please let us know if you need more details.

    Kind regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered