- RESTful Web API Design with Node.js 10
- Valentin Bojinov
- 135字
- 2021-08-27 18:37:24
Visibility
REST is designed to be visible and simple. Visibility of the service means that every aspect of it should self-descriptive and follow the natural HTTP language according to principles 3, 4, and 5.
Visibility in the context of the outer world would mean that monitoring applications would be interested only in the HTTP communication between the REST service and the caller. Since the requests and responses are stateless and atomic, nothing more is needed to flow the behavior of the application and to understand whether anything has gone wrong.
Remember that caching reduces the visibility of your RESTful applications and in general should be avoided, unless needed for serving resources subject to large amounts of callers. In such cases, caching may be an option, after carefully evaluating the possible consequences of serving obsolete data.
推薦閱讀
- DevOps:軟件架構師行動指南
- Functional Python Programming
- Implementing VMware Horizon 7(Second Edition)
- 程序設計與實踐(VB.NET)
- Rust編程:入門、實戰與進階
- 程序員面試算法寶典
- 編程珠璣(續)
- Android Application Development Cookbook(Second Edition)
- MySQL數據庫管理與開發(慕課版)
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- Protocol-Oriented Programming with Swift
- 寫給程序員的Python教程
- Qlik Sense? Cookbook
- Python 3 Object:oriented Programming(Second Edition)
- Java Hibernate Cookbook