- Hands-On RESTful Web Services with Go
- Naren Yellavula
- 290字
- 2021-06-24 17:04:22
Characteristics of REST services
These are the main properties that make REST simple and unique compared to its predecessors:
- Client-server based architecture: This architecture is most essential for the modern web to communicate over HTTP. A single client-server may look naive initially, but many hybrid architectures are evolving. We will discuss more of these shortly.
- Stateless: This is the most important characteristic of a REST service. A REST HTTP request consists of all the data needed by the server to understand and return the response. Once a request is served, the server doesn't remember whether the request arrived after a while. So, the operation will be a stateless one.
- Cacheable: In order to scale an application well, we need to cache certain responses. REST services can be cached for better throughput.
- Representation of resources: The REST API provides the uniform interface to talk to. It uses a Uniform Resource Identifier (URI) to map the resources (data). It also has the advantage of requesting a specific data
- Implementation freedom: REST is just a mechanism to define your web services. It is an architectural style that can be implemented in multiple ways. Because of this flexibility, you can create REST services in the way you wish to. As long as it follows the principles of REST, you have the freedom to choose the platform or technology for your server.
Thoughtful caching is essential for REST services to scale.
We have seen the types of web services and understood what is REST API. We also looked at the characteristics that make REST services unique. In the next section, we will take a look at REST verbs and status code and cover a few examples of path parameters.
推薦閱讀
- Advanced Quantitative Finance with C++
- Python 3.7網絡爬蟲快速入門
- Getting started with Google Guava
- Visual Basic程序開發(學習筆記)
- RTC程序設計:實時音視頻權威指南
- Designing Hyper-V Solutions
- 信息安全技術
- Getting Started with Python Data Analysis
- 概率成形編碼調制技術理論及應用
- Python全棧數據工程師養成攻略(視頻講解版)
- JavaScript程序設計(第2版)
- Test-Driven iOS Development with Swift
- ASP.NET Core and Angular 2
- OpenStack Sahara Essentials
- SQL Server 2012數據庫管理與開發(慕課版)