Presentation is loading. Please wait.

Presentation is loading. Please wait.

TRANSITIONING FULL TRUST CODE TO CLIENT APIS Architecting SharePoint For The Future Chris Domino December 10, 2015.

Similar presentations


Presentation on theme: "TRANSITIONING FULL TRUST CODE TO CLIENT APIS Architecting SharePoint For The Future Chris Domino December 10, 2015."— Presentation transcript:

1 TRANSITIONING FULL TRUST CODE TO CLIENT APIS Architecting SharePoint For The Future Chris Domino December 10, 2015

2 SharePoint Fest 20152 HI Chris Domino chris@chrisdomino.com (not so social on the media)chris@chrisdomino.com Rightpoint SharePoint Architect / Developer / Everything Author – Blog: http://chrisdomino.com/blog – Book: http://www.amazon.com/Deployment-Driven-Design-Chris-Domino-ebook/dp/B00C4V482E

3 SharePoint Fest 20153 TRANSITIONING FULL TRUST CODE TO CLIENT APIS Microsoft has ushered in a paradigm shift for SharePoint developers. Emerging best practices call for us to start moving away from deploying server code to the farm. Custom solutions should start leveraging the Client APIs. …but…but why?

4 SharePoint Fest 20154 A BRIEF HISTORY OF SHAREPOINT APIS SharePoint 2003SharePoint 2007SharePoint 2010SharePoint 2013 Server APIsASP.NETClient APIsEnhanced Client APIs Web ServicesSolutions / FeaturesSandbox SolutionsApp Model Event ReceiversSSPsService ApplicationsSearch Each new version of SharePoint has added more capabilities to our customization arsenals.

5 SharePoint Fest 20155 SO WHAT’S WRONG WITH SERVER CODE? Technically speaking…nothing… – Very powerful – I could do anything – Tooling keeps improving But… – Too powerful? – Deployments are too impactful – Not future-proof

6 SharePoint Fest 20156 THE PARADIGM SHIFT Server code… – Is architecturally monolithic – Does not scale – Requires heavy dev environments Client code… – Is layered – Scales like a champ – Lightweight and efficient It’s time to start thinking about SharePoint as a modern web platform.

7 SharePoint Fest 20157 MEET THE CLIENT APIS C# Object Model (CSOM)JavaScript Object Model (JSOM)REST (already an acronym!) Managed C# codeFirst class ECMAScriptPure URL-based REST endpoints Runs on any.NET platformRuns on any SharePoint pageRuns on anything that’s HTTP Replaces server code behindAll you need for SP hosted appsGreat for cross-platform integration But… ChattyDifficult to debugURLs can get cryptic SynchronousNeed to load scripts in orderAuthentication tokens required These are the wireless drills of SharePoint development. Site collection scoped Feature parity

8 SharePoint Fest 20158 THE APP MODEL (PROVIDED HOSTED) Provider hosted apps demonstrate the power of CSOM and are great for distributing autonomous functionality across farms. But… Difficult to configure Forces our hand a bit architecturally Introduces an extra layer of security Uses IFRAMES 

9 SharePoint Fest 20159 RETHINKING SHAREPOINT ARCHITECTURES With an understanding of the paradigm shift and client APIs, let’s look at how we can start transitioning our full trust code. 1.Server-based with some client functionality. 2.Client-based with some server functionality. 3.SharePoint as a platform.

10 SharePoint Fest 201510 1. SERVER-BASED ARCHITECTURE This is a largely out-of-the-box SharePoint deployment with very few customizations. Content Query web parts become Content Search web parts. JSOM can be used for light-weight custom functionality. Install third party apps for advanced functionality.

11 SharePoint Fest 201511 2. CLIENT-BASED ARCHITECTURE This is a largely custom SharePoint solution that is still on premise. Pages are still served out of SharePoint. All custom code is converted to CSOM and potentially moved off- farm. Blend of WSPs, features, branding, JSOM, REST, etc.

12 SharePoint Fest 201512 3. SHAREPOINT AS A PLATFORM In this architecture, SharePoint acts as a database / asset repository. End users never visit SharePoint. All UI is hosted externally (like a provider-hosted app). No code is deployed to the farm. Search, security, document libraries, image renditions, and any other services can be leveraged.

13 SharePoint Fest 201513 WHAT SHOULD STAY THE SAME The Client APIs can’t actually do everything … Subset of the Server APIs Beyond site collections… – Web Applications – Service Applications Cross-site collection functionality Non code based customizations – Custom Actions – Application Pages

14 29 North Wacker Drive | 4 th Floor | Chicago, Illinois 60606 312.920.8383 | 312.920.8384 fax rightpoint.com Indulge the paradigm shift. Transition your full trust code to client APIs and watch your SharePoint architectures evolve. Questions?


Download ppt "TRANSITIONING FULL TRUST CODE TO CLIENT APIS Architecting SharePoint For The Future Chris Domino December 10, 2015."

Similar presentations


Ads by Google