Two Game plan for better performance : MDS & DCS

Hello, SharePointer 🙂

It’s a lazy Sunday and I am looking for faster performance on SharePoint 2013 (absolutely different than my current mood 😉 ) and I came across on two strategy points :

  1. Minimal Download Strategy (MDS)
  2.  Distributed Cache Service (DCS)

 

 

 

 

 

 

 

 

 

Minimal Download Strategy : MDS is a feature provided by SharePoint 2013 to improve the page load that reduces the amount of data that the browser has to download when users navigate from one page to another compatible page in a SharePoint site. When users browse an MDS-enabled site, the client processes only the differences (or delta) between the current page and the requested page.

Minimal Download Strategy implements a new download manager that interfaces between the client and server and retrieves the data as needed depending the initiating request. Each control on the page uses the download manager to update itself when necessary.

There are two ways to enable MDS :

  1. OOTB: You can enable the MDS fromSite settings > Manage site features, and activate the Minimal Download Strategy
  2. Client API: You can also enable the MDS by JavaScript as mentioned in following script.
var clientContext;

clientContext = new SP.ClientContext.get_current();
this.oWeb = clientContext.get_web();

this. oWeb.set_enableMinimalDownload(true);
this. oWeb.update();

clientContext.load(this. oWeb);

clientContext.executeQueryAsync(
    Function.createDelegate(this, successHandler),
    Function.createDelegate(this, errorHandler)
);

function successHandler() {
    alert("MDS is enabled for this website.");
}

function errorHandler() {
    alert("Request has been failed: " + arguments[1].get_message());
}

For more information, about modifying component for MDS, please have a look on below link:

https://msdn.microsoft.com/EN-US/library/office/dn456543.aspx

Distributed Cache service : The Distributed Cache service gives caching highlights for SharePoint Server 2013. The Distributed Cache service is actually based on Windows Server AppFabric (Windows Server Caching Mechanism), which manage the AppFabric Caching service.Addionally, Windows Server AppFabric installs with prerequisites for SharePoint Server 2013.

The Distributed Cache service  improves performance of the following features in SharePoint 2013:

  • Authentication
  • Newsfeeds
  • OneNote client access
  • Security Trimming
  • Page load performance

Any server in the farm implemented with the Distributed Cache service is called as a cache host and cache cluster is the group of all cache hosts in a SharePoint Server 2013 farm. A cache host joins a cache cluster when a new application server running the Distributed Cache service is added to the farm.

distributed-cache-in-sharepoint-2013

When using a cache cluster, the Distributed Cache spans all application servers and creates one cache in the server farm. The total cache size is the sum of the memory allocated to the Distributed Cache service on each of the cache hosts.

For more information on planning distributed cache, please have look on following link:

https://technet.microsoft.com/en-us/library/jj219572.aspx#plandc

Happy SharePoint Running 🙂

Be Gifted,Stay Young !

Leave a Reply

2 responses to “Two Game plan for better performance : MDS & DCS”

  1. Hi Dipti ,

    Thanks for the above pointers.
    Apart from the MDS and DCS what other optimization steps can be taken to improve performance. I am specifically talking about a SharePoint hosted app on O365 or On-Prem.

    1. My app is very slow and renders static content. There are very few list items
    2.Even bootstrap enabled pages render slowly in UI Blocks.
    3. Page redirects are slow
    4. Workflow in the app is slow sometimes .

    I tried increasing the site collection resource quota for host web but that did not help. Now trying bundling and minifying JS/CSS

    Please advice.

    • Hello Kirthi,

      There can be many other external factors as well to have your site with better performance:

      1) Update your farm with latest patch update
      2) Use MS recommended hardware and software configuration to set-up SP2013
      3) Reinitialize the full search crawling
      4) Check and resolve if any network connection issues
      5) Have a look on MS performance points for SharePoint 2013.- https://technet.microsoft.com/en-us/library/ee424404.aspx
      6) Verify any error in browser using console/network/developer tools

      I hope above points will help you further.Please let me know if any other concerns.

      Thanks and Regards,
      Dipti

Leave a Reply

Your email address will not be published.