Restful technology

  I. Overview

  Restful technology is an architectural style (Representational State Transfer) presentation layer state transformation, rather than a programming standard.

  Before, the front-end and back-end were mixed together. The front-end found the back-end through mapping and sent data to the back-end, while the back-end needed to send a string to the front-end to generate a view layer page that should be returned. content of the work.

  Restful is a technology that can separate the front and back ends. Transfer data directly by returning a json data instead of specifying a page corresponding to a string.

 

  2. Advantages  

    Cache can be used more efficiently to improve response speed

    The statelessness of the communication itself allows different servers to process different requests in a series of requests, improving the scalability of the server.

    The browser is the client, simplifying software requirements

    Compared to other mechanisms superimposed on the HTTP protocol, REST has less software dependencies

    No additional resource discovery mechanism is required

    Better long-term compatibility in software technology evolution

 

  3. RESTFUL regulations

    Data meta operations: CRUD (create, read, update, delete) correspond to

      r GET(SELECT): Retrieve resource(s) from the service.

      c POST (CREATE): Create a new resource on the server.

      u PUT (UPDATE): Update resources on the server.

      d DELETE (DELETE): delete the resource from the server.

 

    

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324641841&siteId=291194637