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)

Performance improvement

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 !

Dipti Chhatrapati

Dipti Chhatrapati is a SharePoint specialist currently working as a Senior Consultant for CapGemini in Mumbai, India. She has more than 9 years of experience in application development, design, maintenance, administration and is continuously working with improving her skills and keeping them up to date. As a developer, project leader and SharePoint Business Analyst, she has been an extensive user of Visual Studio and Team Foundation Server throughout her career. Dipti is very passionate about music, sports, and arts and loves to spend her free time learning new things, socializing with friends and family, cooking, exercising and singing.

Leave a Reply

2 Comments on "Two Game plan for better performance : MDS & DCS"

Notify of
avatar
Sort by:   newest | oldest | most voted
kirti kulkarni
Guest

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.

wpDiscuz