Home > Common Problem > body text

What does rest architecture mean?

hzc
Release: 2020-06-29 14:26:13
Original
2961 people have browsed it

REST software architecture was first proposed by Dr. [Roy Thomas Fielding] in 2000. REST software architecture is an abstract concept and an action guide for realizing the hypermedia distributed system of the Internet. .

What does rest architecture mean?REST software architecture was first proposed by Dr. Roy Thomas Fielding in 2000. REST software architecture is an abstract concept and an action guide for realizing the hypermedia distributed system of the Internet.

Basic information:

He gave us a blueprint for developing Internet-based network software. This concept can be realized using any technology.

Today, HTTP is the most widely used computer protocol on the Internet. HTTP is not a simple protocol for carrying data, but a network software protocol with rich connotations. It can not only uniquely locate Internet resources, but also tell us how the resources operate. These are also the two most important concepts in REST software architecture. The REST software architecture concept is formed by truly understanding the HTTP protocol. The emergence of the REST software architecture concept has enabled the software industry to avoid a one-sided understanding of the HTTP protocol. Only with correct theoretical guidance can we avoid detours in the actual work process of software development.

Resource positioning:

The reason why REST software architecture is a hypermedia system is that it can uniquely locate all resources on the network, regardless of your files Whether it is a picture, Word document or video file, it does not matter whether your file is in txt file format, xml file format or other text file format. It utilizes the TCP/IP protocol supporting HTTP to identify resources on the Internet.

Resource operation:

REST software architecture uses the CRUD principle, which tells us that only four types of resources (including network resources) are needed Behaviors: Create, Read, Update and DELETE, which can be combined into countless other operations. In fact, everything in the world follows this law: birth, change, seeing, and destruction. This principle is derived from our data operations on database tables: insert (raw), select (see), update (change) and delete (destroy), so sometimes CRUD is also written as RUDI (read update delete insert). These four operations are the most basic operations, that is, operations that cannot be subdivided. Through them, complex operation processes can be constructed, just as the four arithmetic operations in mathematics are the most basic operations of numbers.

AJAX Technology

Although AJAX technology has only appeared for less than two years, AJAX technology follows some important principles of REST. AJAX technology makes full use of HTTP to obtain network resources and realizes the function of asynchronous data transmission that HTTP does not have. AJAX technology also enables software to better implement distributed functions. As long as one person in an enterprise downloads the AJAX engine, personnel in other enterprises can share the resource. AJAX technology complies with the REST principles for a simple and scalable architecture in applications. All pages using AJAX technology are simple and rich, and one page shows a variety of forms.

AJAX technology also uses a JSON file format that is different from XML format. What is the significance of this? Under the REST software architecture, we cannot serialize XML files, so programmers must use their own XML binding framework. JSON, which is based on serialized JavaScript objects, has gained wide recognition and is considered to be a far better way to serialize and transmit simple data structures than XML, and it is more concise. This is a great contribution and complement to REST.

Current network application software also violates the "stateless server" constraint of REST. The REST server only knows its own state. REST does not care about the status of the client, and manages the status of the client itself. This is where AJAX technology is applied. Through AJAX technology, you can take advantage of stateful network clients. The REST server cares about the order of operations sent from all network clients to the server. This allows a huge network like the Internet to be managed in an orderly manner.

The above is the detailed content of What does rest architecture mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!