Considerations and recommendations for the development of SharePoint 2013 development--app

Source: Internet
Author: User

??Blog Address: Http://blog.csdn.net/FoxDave

Areas to consider:

1. Remember that the Csom grants the site collection and the following permissions, and the farm solution requires access to the entire farm.

2. Because the application is completely independent of each other, they directly cannot communicate directly, which is the same as on tablets and phones. One implementation is to leave an external part of the app, such as in the Azure cloud, which exposes a Web service such as a WCF endpoint that can act as a medium for communication between apps, similar to the principle of proxies.

3. Silverlight has not been formally deprecated and is still valid in the client object model. However, Microsoft recommends using JavaScript and HTML5.

4. The DNS entries for each app are not required, and it is recommended that you create a wildcard DNS entry for the target app domain that Visual Studio can do for you.

5. The app supports their own authentication, which means they support Windows Authentication or form authentication/claims-based authentication.

6. It is important to note that server-side code (including custom server-side controls) cannot be used. All custom server-side code must be hosted outside of the SharePoint environment. But server-side code is still a handy tool for local SharePoint developers, which I've always emphasized as an irreplaceable aspect of the server API. Web Parts, application pages, timer tasks, and so on, are still something of great value. The app broadens the realm of SharePoint business development, but it's still limited, and I think that's why it's not much of a data source.

7. The remote event receiver is similar to a traditional event receiver, but the code runs on an external service. Remote event receivers are a bit tricky for development, but apps are available because the traditional can't be used in apps.


Key recommendations provided:

1. Decision criteria for colud-hosted and sharepoint-hosted applications.

cloud-hosted APP sharepoint-hosted APP
The most flexible choice to support any type of application code Built-in JavaScript code requirements for smaller applications
Developers can use any development technology to create their own infrastructure SharePoint-based JavaScript code, no service-side code exists
May need to handle multi-tenancy management and explicit rights management Inherit multi-tenancy features and permissions on a page or site

2. Decision-making standards for apps and farm solutions.

First, Microsoft is advising developers to choose the way the app is developed by default, because the app offers some advantages for the farm solution:

(1). For end users, it is easy to find, buy, and install apps through the SharePoint store and the app catalog within the enterprise, and once the application is written, it can run almost anywhere on-premises and in the cloud.

(2). For administrators, applications provide a more secure way to extend SharePoint than sandboxed solutions.

(3). For developers, applications can apply non-SharePoint development technologies, which lowers the threshold for developer-required techniques and learning curves, and is more flexible and extensible than the farm solution, and the application uses OAuth to implement the permissions of the installers Developers can use cross-platform standards, including HTML, REST, OData, JavaScript, and OAuth.

(4). For businesses, SharePoint applications are more flexible than solutions and can be easily expanded and marketed through Microsoft SharePoint stores.

Despite these advantages, I will still emphasize that the solution (i.e. the server API) is irreplaceable, so when we need to solve the specific problem, we need to consider the following aspects to determine which method to use:

(1). Whether the server-side object model needs to be included in the code. This is obvious, the Server API is always the most comprehensive and powerful interface (highlighted here, much more powerful), some of the Csom force can not be in place to use the solution.

(2). Whether the code needs to access SharePoint objects outside the Web site where the app is running, and if so, use the solution.

(3). The purpose of our implementation is to assist the end user or administrator, and the Administrator task is not implemented through the Csom, so we also use the solution.

(4). Simple things with apps, complex things with solutions. Because app individuals are independent of each other, if we are going to achieve a relatively large number of intrinsically connected things, or choose the solution with the appropriate.

However, it is important to be careful that the farm solution is available to all Web applications on a single server, requires full trust, and has administrator privileges, which can cause the entire server to become paralyzed when a code error results in a serious exception.

Finally, we refer to a table, which we can refer to when we actually do the development task.

??

Considerations and recommendations for the development of SharePoint 2013 development--app

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.