Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the rest architecture?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

This article is to share with you what is the rest architecture, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

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.

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 the development of Internet-based network software. This idea can be realized with 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 protocol for network software with rich connotations. It can not only uniquely locate the Internet resource, but also tell us how to operate the resource. These are the two most important concepts in REST software architecture. The concept of REST software architecture is formed by the real understanding of HTTP protocol. With the emergence of the concept of REST software architecture, the software industry avoids the one-sided understanding of HTTP protocol. Only with correct theoretical guidance can we avoid detours in the actual process of software development.

Resource location:

The reason why REST software architecture is a hypermedia system is that it can uniquely locate all resources on the network, whether your file is a picture, Word or video file, or whether your file is in txt file format, xml file format or other text file format. It uses the TCP/IP protocol that supports HTTP to determine resources on the Internet.

Resource operations:

The REST software architecture uses the CRUD principle, which tells us that resources (including network resources) can be combined into countless other operations by requiring only four behaviors: Create, Read, Update, and DELETE. In fact, everything in the world follows this law: birth, change, see, and death. This principle is derived from our data manipulation of database tables: insert, select, update, and delete, so CRUD is sometimes written as RUDI (read update delete insert). These four operations are the most basic operations, that is, operations that can no longer be subdivided, through which complex operations can be constructed, just as the four operations are the most basic operations of numbers in mathematics.

AJAX technology

Although AJAX technology has been around 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 the software to better achieve the distributed function, as long as one person downloads the AJAX engine in an enterprise, and other people in the enterprise can share the resources. AJAX technology complies with the REST guidelines in the application of simple and scalable architecture, where the use of AJAX technology page simple and rich, a page shows a rich and colorful form.

AJAX technology also uses a JSON file format that is different from the XML format. What's the point of this? Under the REST software architecture, we cannot serialize XML files, so programmers have to use their own XML binding framework. JSON, based on serialized JavaScript objects, has been widely recognized as being able to serialize and transmit simple data structures in a much better way than XML, and it is more concise. This is a great contribution and supplement to REST.

Current network applications also violate the "stateless server" constraint of REST. The REST server only knows its own status. REST does not care about the state of the client, which is managed by itself, which is the place where AJAX technology is applied. Through AJAX technology, you can take advantage of stateful network clients. The REST server is concerned with the order in which operations are sent from all network clients to the server. In this way, the Internet, a huge network, is managed in an orderly manner.

The above is what the rest architecture is, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report