Service Applications in SharePoint 2010

29
Service Applications in SharePoint 2010 Andy Nogueira Solutions Architect / Team Lead Microsoft Practice nonlinear creations inc.

description

Service Applications in SharePoint 2010 - Andy Nogueira - Toronto Code Camp 2010. This presentation explains some of the concepts around the new Service Applications Framework in SharePoint 2010.

Transcript of Service Applications in SharePoint 2010

Page 1: Service Applications in SharePoint 2010

Service Applications in SharePoint 2010

Andy Nogueira

Solutions Architect / Team Lead

Microsoft Practice

nonlinear creations inc.

Page 2: Service Applications in SharePoint 2010

Services in MOSS 2007 (Recap)

Service Applications Framework

Demo

Questions and Answers

Agenda

Page 3: Service Applications in SharePoint 2010

Become familiar with the new Service Application (SA) modelUnderstand how sites use the Service Application features

Create, Manage and Use Service Applications

Session Objectives

Page 4: Service Applications in SharePoint 2010

MOSS 2007(recap)

Page 5: Service Applications in SharePoint 2010

ASP.NET 2.0 (AJAX)

Windows 2003

IIS

NET Framework 3.0

WSS 3.0

Document Management Security Content Types Windows Workflow

SQL Server

MOSS 2007 Enterprise

EnterpriseSearch

User Profiles

LOB Integration

(BDC)

Excel Services

Enterprise Content

Management

My SitesRecords

Management

SharePoint 2007 (MOSS)

Page 6: Service Applications in SharePoint 2010

Shared Services

Application (SSP)

User Profiles

Excel Services

BDC

Search

Shared Services Provider MOSS 2007

Page 7: Service Applications in SharePoint 2010

So, What was “bad“ about SSP’s ?

SSP’s• Big improvement, but some

limitations

All or nothing

• Search / Profiles / Excel / BDC

Not extensible

• No custom SSP

No granularity

• Web application tied to specific SSPs

Sharing across farms

• Tied to a single farm (shared-farm SSP’s possible but tricky)

Page 8: Service Applications in SharePoint 2010

Service Applications

Page 9: Service Applications in SharePoint 2010

Service Applications (SP2010)

Flexibility• New services model much more

flexible

A la carte • Just pick the one you need

Common Framework

• Build custom using framework

Sharing• Single farm or shared across

farms

Scalability• Entire farms can be dedicated to

service hosting and computing

Page 10: Service Applications in SharePoint 2010

Farm 3Farm 2Farm 1

http://www.acme.comhttp://intranet

Search

User Profile

s

Search

Excel

UserProfile

s

ManagedMetadata

Service Applications

Page 11: Service Applications in SharePoint 2010

Architectural ViewService: Actual program (binaries)deployed to servers in farm

Service Application

Service Proxy Service Proxy

Web Part, Pages(Service

Consumer)

*.SVC’s, PowerShell Cmdlets

(Service Consumer)

Service Machine Instance: Actual instance of the running service binaries on a server

Service Application: Configuration of the servicein a farm

Service Application Proxy:Reference to the Service Application

Service Consumer: Bits that utilize the service’s logic

Page 12: Service Applications in SharePoint 2010

Service Application Features• A configuration store within the SharePoint 2010

configuration database for application settings

• A common SQL Server database provisioning infrastructure (to use your own database to store data)

• Support for storing data in custom databases that are managed by SharePoint Foundation 2010

• A location to host middle-tier Web services

• A mechanism for provisioning Web services and managing their security

• A service-scoped timer job infrastructure that enables you to perform scheduled operations on your service or on Web applications that consume it

Page 13: Service Applications in SharePoint 2010

Service Platform Features

Core infrastructure

Settings (config database)

Web service provisioning

Database provisioning

Service discovery

Integrated round-robin load balancer

Claims based authentication

Backup & restore

ManagementCentral Administration UI

Permissions

PowerShell

Page 14: Service Applications in SharePoint 2010

Services

Page 15: Service Applications in SharePoint 2010

Service Application Lifecyle

Installation Provision

Start Instanc

esManage

Page 16: Service Applications in SharePoint 2010

Demo

Service Applications in SP2010

Page 17: Service Applications in SharePoint 2010

Creating Custom Services

Developers are free to create their own services

Allows developers to provide richer integration between a 3rd party system and SharePoint

Allows for sharing data across SP sites

Page 18: Service Applications in SharePoint 2010

Developers should be familiar with

Custom WCF

services

PowerShell

SharePoint admin

API

Page 19: Service Applications in SharePoint 2010

Create Custom Services

Do

• Provide specialized computations & analytics

• Share data across sites & site collections

• Execute long running operations• Requires a robust scale out

strategy• Common management and

provisioning infrastructure

Don’t• Features specific to a particular

site or site collection• Features specific to site template

Page 20: Service Applications in SharePoint 2010

ComponentsBrowser

ConsumerWeb Part

SP W

FEConsumerWeb Part

Service Application Proxy

WCF Contract(*.svc)

* .asmx …

Service Logic (* .dll)

SP A

PP

SER

VER

Config DB Custom DBContent DB

SQ

LSER

VER

Client App

Page 21: Service Applications in SharePoint 2010

To Build a Service ApplicationCreate a service application

Create a WCF service application endpoint

Write the service application installation code

Install and provision the service application

Create the service application proxy

Write the service application proxy installation code

Install and provision the service application proxy

Create the service application consumers

Install, deploy, and test the service application consumers

Page 22: Service Applications in SharePoint 2010

Service Application Installation

Components on serversService Application

components must be deployed to

application servers

Proxies and consumers must be deployed to WFE’s

Installation OptionsCustom MSI’s

Features

PowerShell Cmdlets

* all require custom code

Page 23: Service Applications in SharePoint 2010

Demo

Custom Service Application

Page 24: Service Applications in SharePoint 2010

Takeaways

Preferred method to create “services” solutions on SharePoint 2010

Create custom Service Applications is not easy (yet)

Requires big learning curve but it’s a “moat” (high barriers of entry)

Lack of documentation and samples (eventually will get better with RTM)

For now, start with a sample solution and modify it to your needs

Page 25: Service Applications in SharePoint 2010

Links and Resources Service Application Frameworkhttp://msdn.microsoft.com/en-us/library/ee536263(v=office.14).aspx

SharePoint 2010 Beta Developer Center http://msdn.microsoft.com/en-us/sharepoint/ee514561.aspx Get Started Developing on SharePoint 2010http://msdn.microsoft.com/en-ca/sharepoint/ee513147.aspx

Page 26: Service Applications in SharePoint 2010

Sample codes and TutorialsMSDN Service Application Framework Samplehttp://msdn.microsoft.com/en-us/library/ee724430%28office.14%29.aspx

Custom SA Sample – Andrew Connellhttp://www.criticalpathtraining.com/Members/Pages/default.aspx

Building a SharePoint Service Application to Provide Auto-completion Services for AJAX-enabled Rich User Controls (4 Parts)http://sharepointsolutions.com/sharepoint-help/blog/index.php/2009/10/building-a-sharepoint-service-application-to-provide-auto-completion-services-for-ajax-enabled-rich-user-controls-%E2%80%93-part-1/

Page 27: Service Applications in SharePoint 2010

?

Questions and Answers

Page 28: Service Applications in SharePoint 2010

Thanks to our contributors

Page 29: Service Applications in SharePoint 2010

Andy [email protected]

Thank You !