Thursday, December 29, 2011

Why the change in architecture?

With SSPs everything was lumped together, even though some services offered very different capabilities. This made SSPs difficult to deploy and manage over the lifetime of your SharePoint deployment. Plus, because SSPs were effectively grouped together into a single database, scalability became difficult. In addition, allowing administration of a single service in the SSP, so that every administrator could administer any service, was next to impossible. Finally, you couldn’t really share services across farms. There were many restrictions and the administrative and management overhead made administration difficult.
As a developer, you can write your own Service Application that provides services to your features that run on the SharePoint WFEs. There are certain scenarios in which this makes sense. For example, if you need specialized computing and analytics, if you want to share data across sites, site collections, and farms, if you need to execute long running operations or if you want to scale out your application by taking advantage of the services infrastructure. You should not use Service Applications if your data or features are specific to a site, a site collection or a site template. Instead, you should write code that runs within the boundaries of your site or site collection, such as event receiver or web part.
Anyways I may not tell you writing a complete Service Application because even I too don’t know. But I can provide some steps to be aware of and also the APIs associated with Service Applications. To write a good Service Application, you should have a working knowledge of Windows communication Foundation (WCF), because Service Applications use WCF extensively to communicate between the Service Application Proxy and the consumer.
The steps to write a Service Application at the high level are:
1. Create Service Application
2. Create Service Application endpoint using WCF
3. Create Service Application Installers
4. Install and provision Service Application
5. Create Service Application Proxy
6. Create Service Application Proxy Installers
7. Install and provision the Service Application Proxy
8. Create Service Application consumers
9. Install, deploy and test consumers

No comments:

Post a Comment