- Building Microservices with Go
- Nic Jackson
- 228字
- 2021-07-15 17:28:15
Semantic versioning
Microservices should implement the Major versioning scheme. Quite often, designers will elect to only implement a Major version number and imply .0 for the minor version as according to the semantic versioning principles http://semver.org a Minor version would generally indicate the addition of functionality that has been implemented in a backwards compatible way. This could be adding additional endpoints to your API. It can be argued that since this would not affect the client's ability to interact with your API you should not worry about Minor versions and only concentrate on major as the client will not need to request a particular version without these additions in order to function.
When versioning APIs I think it is cleaner to drop the minor version and only concentrate on major version. We would take this approach for two reasons:
- The URI becomes more readable, and dots are only used as network location separators. When using an RPC API dots are only used to separate API.VERSION.METHOD and make everything easier to read.
- We should be inferring through our API versioning that change is a big thing and has an impact on the function of the client. Internally we can still use Major.Minor; however, this does not need to be something to the client as they will not have the capability to elect to use minor versions of the API.
- DBA攻堅指南:左手Oracle,右手MySQL
- Learn Type:Driven Development
- 信息可視化的藝術:信息可視化在英國
- Mastering Selenium WebDriver
- C語言程序設計實訓教程
- PostgreSQL技術內幕:事務處理深度探索
- ASP.NET動態網頁設計教程(第三版)
- The Complete Coding Interview Guide in Java
- Java面向對象程序設計
- JavaScript+jQuery網頁特效設計任務驅動教程
- RocketMQ實戰與原理解析
- 多媒體技術及應用
- Raspberry Pi Robotic Projects
- 前端程序員面試算法寶典
- Raspberry Pi開發實戰