Learning rest together (2) -- rest as a lightweight Web Service

Source: Internet
Author: User

 

Original address: http://rest.elkstein.org/

Learn rest: a tutorial

A fast-training courseRest-
Re
PresentationalSTateTRansfer, a new approach to systems architecture and a lightweight alternative to Web Services

Rest-transition of expressive state-quick learning tutorial, a new system architecture method that can replace the lightweight Web service protocol.

_______________________________________________________________________________________

As a programming method, rest is a lightweight solution that can replace web service and rb5.

Similar to Web Services, rest services are:

  • Platform-independent (you do not need to worry about Unix servers, Mac clients, or others)
  • Language independence (C # interaction with Java)
  • Based on the standard (on top of HTTP), and
  • It can still be used in the case of a firewall)

Like web services, rest does not provide built-in security features, encryption, session management, and QoS Assurance. Like web services, security features and encryption mechanisms can be provided over HTTP:

  • For security, the user name/password token is usually used
  • For encryption, rest can be based on HTTPS (Secure Socket)
  • And so on.

However, there is one thing that is not a good rest design-Cookie. The "St" in "rest" has achieved status transfer. In fact, good rest design operations are self-contained (self-contained) and) each request contains all the information (Status) required by the server to complete the request ).

 

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.