SharePoint

Distributed Cache in SharePoint Server 2016 IT Preview

Overview

The Distributed Cache service provides in-memory caching services to several features in SharePoint Server 2016 IT Preview.

Some of the features that use the Distributed Cache service include:

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

These features use the Distributed Cache for quick data retrieval. The Distributed Cache service stores data in memory and does not have a dependency on databases in SharePoint Server 2016 IT Preview. However, some SharePoint features may store data in both the Distributed Cache and databases.

Distributed Cache Improvements in SharePoint Server 2016 IT Preview

SharePoint Server 2016 IT Preview improves Distributed Cache performance and resiliency through a change which switches off NTLM authentication between SharePoint and the cache cluster; instead relying on encryption of cache data before transport.  In SharePoint Server 2013 under load/high scale – the cluster would start getting unresponsive to calls from SharePoint due to authentication overhead. i.e. every call from SharePoint, the cluster had to authenticate the call with AD.  This change also allows SharePoint Server 2016 IT Preview Distributed Cache clusters to scale up the number of client connections to help with throughput.

Topologies with MinRole and Distributed Cache

The Distributed Cache component is on by default in the SingleServerFarm role and in the Cache role for SharePoint Server 2016 IT Preview. 

To learn more about MinRole roles and services see also https://technet.microsoft.com/en-us/library/mt346114(v=office.16).aspx.

 

MinRole Roles and Distributed Cache

Role Name

Display Name Description Distributed Cache
WebFrontEnd Front End Services end user requests.  Optimized for low latency. No
Application Application Services backend jobs or requests triggered by backend jobs.  Optimized for high throughput. No
Cache Distributed Cache Services Distributed Cache.  Servers assigned to this role can load balance end user requests among Web Front End servers. Yes
Search Search Reserved for Search services. No
Custom Custom

Reserved for services to be isolated from other services, I.e. 3rd party, PerformancePoint, etc.

No
SingleServerFarm Single Server Farm

Provisions all services on the server for a single server deployment.  This role is provided for evaluation and development purposes.

Yes

 

Single Server Farm Example

All services isolated to the scope of single machine to include Distributed Cache.

SingleServerFarm

Content + Search Farm Example

All services isolated with the scope of a server farm.  Distributed Cache hosted on one or more dedicated servers.

ContentandSearchFarm

Content Farm + Search Farm Example

Services distributed across one or more content farms and one dedicated search farm.  Distributed cache hosted on one or more dedicated servers with the scope of the content farm.

ContentSearchFarm

Content + Service Farm Example

Services distributed across one or more content farms and one dedicated service farms.  Distributed cache hosted on one or more dedicated servers with the scope of the content and/or service farm.

ContentServiceFarm

Standard
SharePoint

Introduction to PowerPoint Automation Services in SharePoint Server 2013

Introduction

PowerPoint Automation Services is a new service application in SharePoint Server 2013 that provides automatic server-side conversion of PowerPoint Presentations from one format to another, for example, a PowerPoint Presentation in Open XML File Formar .pptx format can be converted into Portable Document Format (.pdf) for archival purposes, distribution to clients who do not have Microsoft PowerPoint installed, or to protect the presentation from editing.

PPTAutomation

PowerPoint Automation Services supports conversion of Open XML File Format (.pptx) and PowerPoint 97-2003 presentation format (.ppt) to .pptx, .pdf, .xps, .jpg, and .png.

PowerPoint Automation Services provides conversion capabilities similar to Word Automation Services introduced in SharePoint Server 2010.  The code samples that follow show the similarities between Word Automation Services and PowerPoint Automation Services programming.

Word Automation Services

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.Office.Word.Server.Conversions;

class Program
{
    static void Main(string[] args)
    {
        string siteUrl = "
http://www.contoso.com";
        string wordAutomationServiceName = "Word Automation Services";
        using (SPSite spSite = new SPSite(siteUrl))
        {
            ConversionJob job = new ConversionJob(wordAutomationServiceName);
            job.UserToken = spSite.UserToken;
            job.Settings.UpdateFields = true;
            job.Settings.OutputFormat = SaveFormat.MHTML;
             job.AddFile(siteUrl + "/Documents/Foo.docx",
                siteUrl + "/Documents/Foo.mht");
            job.Start();
        }
    }
}

PowerPoint Automation Services

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using Microsoft.SharePoint;
using Microsoft.Office.Server.PowerPoint.Conversion;

class Program
{
    static void Main(string[] args)
    {
        string siteURL = "
http://www.contoso.com";
        using (SPSite site = new SPSite(siteURL))
      {
          using (SPWeb web = site.OpenWeb())
          {
              SPFolder docs = web.Folders[siteURL +
              "/Shared Documents"];
              SPFile file = docs.Files[siteURL +
              "/Documents/foo.ppt"];

              Stream fStream = file.OpenBinaryStream();
              SPFileStream stream = new SPFileStream(web, 0x1000);

              PresentationRequest request = new PresentationRequest(
                fStream,
                ".ppt",
                stream);

              IAsyncResult result = request.BeginConvert(
                SPServiceContext.GetContext(site),
                null,
                null);

              request.EndConvert(result);

              SPFile newFile = docs.Files.Add(
                "foo.pptx",
                 stream,
                 true);
           }
       }
    }
}

Conclusion

PowerPoint Automation Services is a new service application in SharePoint Server 2013 that provides automatic server-side conversion of PowerPoint Presentations from one format to another.

Resources

Learn more about SharePoint Server 2013

Learn more about PowerPoint Automation Services

Standard