Summary : SharePoint 2013 – Apps Vs Farm solutions,Difference between Apps and Farm solutions in SharePoint 2013,Comparison between Apps and Farm solutions in SharePoint 2013
SharePoint 2013 introduces the new Cloud App Model that enables you to create apps.
In SharePoint 2010 you had an Option to Add custom components to SharePoint via SharePoint Sandboxed or Farm solutions.But in SharePoint 2013 sandboxed solutions are deprecated.So all we got is the New App model and the Old SharePoint Farm solutions.
SharePoint 2013 – Apps Vs Farm solutions
To begin developing on SharePoint 2013 you need to first know what would you choose an App or farm solution? Here is a little Comparison chart –
What are apps –
An app for SharePoint is a small, easy-to-use, stand-alone app that solves a specific end-user or business need.
|What are Farm solutions – Farm solutions are pieces of functionality that extend the capabilities of a SharePoint website. They are Installed to the solution store of a farm by a farm administrator.|
|where does it run – The code for an app runs in different places, depending on where your app is hosted.They never run in the context of SharePoint Server, but they will run in the context of the browser or in the context of the hosted platform.
||where does it run – They are Installed to the solution store of a farm by a farm administrator. They run from the sharepoint server.|
when you deploy a Farm solution, It gets deployed to one or more web apps (any existing or new one). You can use it in any site collection of the web app where you deployed it.
Authentication options – Before you can call SharePoint APIs from your app, you need to authenticate to SharePoint. Which authentication mechanism you use depends upon where the code of your app is running.
* In the cloud: You have two choices:
Use client-side code along with the cross-domain library.
User server-side code along with OAuth.
|Authentication options – The components in the solution can, and usually do, run in full trust|
Resource Allocation –
Site collection administrators and tenant administrators can monitor apps and change the resources allocated to them.
|Resource Allocation – No resource usage restrictions are placed on them|
What Can be Created as Apps –
||What Can be Created as Farm soltuion – You can deploy almost all the components as Farm solution.|