Rest framework on. NET 4

Source: Internet
Author: User

Two common distributed application architectures: Do (Distributed Object) and RPC (Remote process call ). These two architectural styles have been widely applied to enterprises.
However, Web architecture designers intentionally avoid using these two architectural styles. The main reason is that the Internet environment for running Web applications is very different from the Intranet environment for running enterprise applications.
What are the unique characteristics of the Internet environment?
1. difficult to predict and control scalability requirements: the concurrent access volume of a Web application is unpredictable and uncontrollable for developers.
2. Unpredictable and uncontrollable security requirements: The request format accepted by a Web application is unpredictable and uncontrollable by developers, and a large number of malicious request formats may occur.
3. Loose coupling is crucial: because there are a large number of heterogeneous systems, the maximum loose coupling must be pursued.
4. Simplicity is crucial: complex programming models cannot be introduced, and developers must be lowered to develop Web applications.

The operating environment of the software application has a huge impact on the architecture design. To design the architecture of software applications, you must thoroughly consider the running environment of the software. Remove the running environment of the software and compare different architectures
The advantages and disadvantages between them are meaningless.

The rest architecture is tailored for Internet-oriented web applications. It consists of a set of architecture constraints:
1. Customer-Server
2. Stateless
3. Cache
4. unified interface
5. Hierarchical System
6. On DemandCode(Optional)

The above content comes from the translator's preface to "Rest practice .. From the perspective of WCF, the distributed application architecture on net unifies remoting, soap, and rest support. Now let's look at the rest frameworks and tool libraries on the latest. NET platform:

  1. WCF webhttp services in. net 4: Since WCF 3.5 started to support rest, the implementation method is still the RPC method. The windows Communication Foundation (WCF) web HTTP programming model can publish WCF Service Operations to non-soap endpoints. Document address http://msdn.microsoft.com/zh-cn/library/bb412169.aspx
  2. ASP. NET web API: This is completely implemented based on the HTTP model and is currently in the preview version,ASP. NETWeb APIs allow developers to open their applications over HTTPProgram, Data and services. This allows developers to make full use of HTTP as the protocol for applications. Applications can interact with a wide range of clients, not just browsers, mobile devices, desktop applications, but other backend services.
  3. Open Rasta: openrasta is a rest development framework that supports. NET 2.0 and later based on the open-source mit protocol. It focuses on this resource and the rest framework for HTTP method development. Document address: https://github.com/openrasta/openrasta-stable/wiki
  4. Service Stack: Is a high-performance open source. Net/MONO rest service framework address: http://www.servicestack.net/
  5. Restsharp: This is just a rest client development library that supports windowsphone, mono for Android, and monotouch. Address:Http://restsharp.org/
  6. HammockIs a free open-source framework hosted onGitHubUpper Network operations are well encapsulated, includingOauth.Address:Https://github.com/danielcrenna/hammock

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.