In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Scenario: recently, Xiao L encountered a headache when he released app. Because Apple app store needs to be audited, the project needs to deploy the latest version, but it can not affect the normal use of the coming version.
Analyze the problem: if it is an app business-related program bug, or a pre-release version
Solution: configure multiple versions of dubbo
Implement the same interface, but the corresponding version of the interface varies from 1.0 to 1.1. Implement the 1.1 interface according to the requirements, so that the new and old interfaces will coexist when it is released. If the old version (1.0 version code is removed) will be stopped running after the mandatory update audit is passed, if there is no need for a mandatory update, then the new and old versions can coexist.
Client call, Little L uses dubbox, so different versions can configure different paths.
Http://127.0.0.1:80/a//xxx/v1( Old) @ GET @ Path ("/ xxx/v1") public ApiResult xxx (@ QueryParam ("code") String resourceCode) http://127.0.0.1:80/a//xxx/v2 (new) @ GET @ Path ("/ xxx/v2") public ApiResult xxx (@ QueryParam ("code") String resourceCode)
This method is not recommended if there is a change in the data structure.
Such a situation requires a specific solution to the specific problem, which can be deployed separately, can be used as a pre-release environment, and deploy a test database with a new table structure and objects (pre-release environment).
For those with large changes, heavy new features have been added to the product, and the business level or underlying table structure are not compatible, it is recommended to make a mandatory upgrade.
Note: the implementation method of the interface is determined according to the interface version; the newly added method of the interface is written in the V1 version. If the parameter condition of a method in the V1 version changes, then the new implementation is written in the V2 version, and the V1 version is retained.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.