CN112187662B - Apollo-based traffic distribution method - Google Patents
Apollo-based traffic distribution method Download PDFInfo
- Publication number
- CN112187662B CN112187662B CN202010971648.9A CN202010971648A CN112187662B CN 112187662 B CN112187662 B CN 112187662B CN 202010971648 A CN202010971648 A CN 202010971648A CN 112187662 B CN112187662 B CN 112187662B
- Authority
- CN
- China
- Prior art keywords
- service
- database
- transaction
- merchant
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9005—Buffering arrangements using dynamic buffer space allocation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/085—Payment architectures involving remote charge determination or related payment systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
- G06Q20/4016—Transaction verification involving fraud or risk level assessment in transaction processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Signal Processing (AREA)
- Accounting & Taxation (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Finance (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a flow distribution method based on Apollo, relating to the technical field of financial payment, and the method comprises the following steps: s1, introducing Apollo dynamic configuration and injecting the Apollo dynamic configuration into a service cache to form a new version service environment; s2, introducing a transaction merchant into a configuration dimension, and distributing all transaction requests of the merchant to an independent new version service environment when the merchant initiating the request conforms to the set merchant dimension configuration; s3, based on the step S1 and the step S2, the flow switching of the transaction sub-database is realized, the stability of the sub-database service is gradually verified through Apollo configuration flow distribution, and the single-transaction database service is smoothly transited to the sub-database cluster service; s4, establishing a gray level service on the basis of the original transaction sub-database, wherein the gray level service directly depends on a database corresponding to the transaction sub-database; the invention has the beneficial effects that: the method and the system realize the distribution of the flow, gradually transfer the flow to the new version service, and are convenient for verifying the accuracy of the new version service.
Description
Technical Field
The invention relates to the technical field of financial payment, in particular to a flow distribution method based on Apollo.
Background
The security of data communication becomes more important with the development of internet technology, especially in the era of the vigorous development of internet finance nowadays. To the extent that internet finance is involved, mobile terminals often take an important position, which relates to financial security monitoring, electronic account transactions, and the like. Therefore, security of the transmission between the mobile terminal and the gateway server becomes important.
In the financial payment service industry, the safety and stability of the production operation environment need to be ensured. When the production service version is updated, the risk of updating the payment service version is easily caused, and the fund security of the merchant is threatened.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides the flow distribution method based on Apollo, which realizes the flow distribution, gradually transfers the flow to the new version service and is convenient to verify the accuracy of the new version service.
The technical scheme adopted by the invention for solving the technical problem is as follows: in an Apollo based traffic distribution method, the improvement comprising the steps of:
s1, introducing Apollo dynamic configuration and injecting the Apollo dynamic configuration into a service cache to form a new version service environment;
in the step S1, when the configuration is modified through Apollo, the modified configuration is released to the whole cluster service in real time and updated to the whole cluster service cache;
s2, introducing a transaction merchant into a configuration dimension, and distributing all transaction requests of the merchant to an independent new version service environment when the merchant initiating the request conforms to the set merchant dimension configuration;
s3, based on the step S1 and the step S2, the flow switching of the transaction sub-base is realized, the stability of the sub-base service is gradually verified through Apollo configuration flow distribution, and the transaction single database service is stably transited to the sub-base cluster service;
between the step S2 and the step S3, the new version service is rolled back to the last version through the Apollo function, and the request flow of the merchant is switched back to the last normal version service in time;
s4, establishing a gray level service on the basis of the original transaction sub-database, wherein the gray level service directly depends on a database corresponding to the transaction sub-database; the gray level service supports that after the merchant gray level service is switched back to the production service, the reverse payment transaction can directly complete the subsequent request interaction through the production service which the gray level service depends on.
In the above method, in the step S2, all transaction requests of the merchant are distributed to the independent new version service environment, and the function of the step is to verify the integrity of the new version service function.
In the above method, in the step S2, the merchant dimension configuration is set by artificial implementation.
The beneficial effects of the invention are: the distribution of real-time production request traffic is realized through dynamic configuration of apollo, and the traffic is gradually transferred into a new version service, so that the accuracy of the new version service is conveniently verified; when abnormity occurs in the verification process, the request flow can be directly switched back to the original version service, the effects of non-stop updating and real-time effect are achieved, the risk of updating the new version of the payment service is greatly reduced, and the fund safety of merchants is ensured.
Drawings
Fig. 1 is a schematic diagram of step S3 in an Apollo-based traffic distribution method according to the present invention.
Fig. 2 is a schematic diagram of step S4 in an Apollo-based traffic distribution method according to the present invention.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the drawings.
The conception, the specific structure, and the technical effects produced by the present invention will be clearly and completely described below in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the features, and the effects of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and other embodiments obtained by those skilled in the art without inventive efforts are within the protection scope of the present invention based on the embodiments of the present invention. In addition, all the connection relations related in the patent do not mean that the components are directly connected, but mean that a better connection structure can be formed by adding or reducing connection auxiliary components according to specific implementation conditions. The technical characteristics in the invention can be combined interactively on the premise of not conflicting with each other.
The invention discloses an Apollo-based traffic distribution method, which realizes the distribution of real-time production request traffic, gradually transfers the traffic to a new version service and is convenient for verifying the accuracy of the new version service.
In this embodiment, the method comprises the steps of:
s1, introducing Apollo dynamic configuration and injecting the Apollo dynamic configuration into a service cache to form a new version service environment; when the configuration is modified through Apollo, the modified configuration is released to the whole cluster service in real time and is updated to the whole cluster service cache; thereby updating the data in real time;
s2, introducing a transaction merchant into a configuration dimension, and distributing all transaction requests of the merchant to an independent new version service environment when the merchant initiating the request conforms to the set merchant dimension configuration; in the embodiment, all transaction requests of a merchant are distributed to an independent new version service environment, and the transaction requests are used for verifying the integrity of the new version service function; it should be noted that the merchant dimension configuration is set by artificial implementation;
between the step S2 and the step S3, the new version service is rolled back to the last version through the Apollo function, and the request flow of the merchant is switched back to the last normal version service in time;
s3, based on the step S1 and the step S2, the flow switching of the transaction sub-base is realized, the stability of the sub-base service is gradually verified through Apollo configuration flow distribution, and the transaction single database service is stably transited to the sub-base cluster service;
as shown in fig. 1, after the Apollo configuration is issued, after a merchant initiates a transaction request, whether to distribute the traffic to the sub-databases is judged according to the Apollo configuration, if yes, different transactions can be sent to the corresponding sub-databases, for example, the transaction 01 is sent to the sub-database 01, the transaction 02 is sent to the sub-database 02, if the traffic is not required to be distributed to the sub-databases, the old transaction is determined, and the old transaction is sent to the original database, namely, the old database;
s4, establishing a gray level service on the basis of the original transaction sub-database, wherein the gray level service directly depends on a database corresponding to the transaction sub-database; the gray level service supports that after the merchant gray level service is switched back to the production service, the reverse payment transaction can directly complete the subsequent request interaction through the production service which the gray level service depends on; as shown in fig. 2, it is a schematic flow chart after the gray scale service is built.
By the Apollo-based traffic distribution method, a set of gray level environment is established on the basis of the original disaster tolerance environment and is used for verifying the updating process of the production service version so as to ensure the stability and feasibility of the new version. The distribution of real-time production request traffic is realized through dynamic configuration of apollo, and the traffic is gradually transferred into a new version service, so that the accuracy of the new version service is conveniently verified; when abnormity occurs in the verification process, the request flow can be directly switched back to the original version service, the effects of non-stop updating and real-time effect are achieved, the risk of updating the new version of the payment service is greatly reduced, and the fund safety of merchants is ensured.
Based on the content, the Apollo-based flow distribution method achieves the effect of hot release, can support non-stop updating on the basis of normally providing services, and reduces artificial operation errors; the flow switching has extremely high real-time performance, and the configuration is immediately effective after being modified, so that the original transaction is not influenced; the cluster deployment is supported, and the flow of the whole cluster can be switched simultaneously; the system has strong functions, and supports various functions of unified management of different clusters, version release management, authority audit management, information monitoring and the like. The change of configuration will be updated directly to the cluster cache, which has better performance and reduces unnecessary database dependency compared to the scheme of querying database tables. The distribution of the flow is determined by combining the dimensions of transaction merchants, so that the transaction stability of important merchants can be guaranteed.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (3)
1. An Apollo-based traffic distribution method, characterized by comprising the steps of:
s1, introducing Apoll o dynamic configuration and injecting the Apoll o dynamic configuration into a service cache to form a new version service environment;
in the step S1, when the configuration is modified by Apoll o, the modified configuration is released to the whole cluster service in real time and updated to the whole cluster service cache;
s2, introducing a transaction merchant into a configuration dimension, and distributing all transaction requests of the merchant to an independent new version service environment when the merchant initiating the request conforms to the set merchant dimension configuration;
s3, based on the step S1 and the step S2, the flow switching of the transaction sub-database is realized, the stability of the sub-database service is gradually verified through the flow distribution configured by Apollo, and the single-transaction database service is smoothly transited to the sub-database cluster service;
between the step S2 and the step S3, the new version service is rolled back to the previous version through the Apoll o function, and the request flow of the merchant is switched back to the previous normal version service in time;
s4, establishing a gray level service on the basis of the original transaction sub-database, wherein the gray level service directly depends on a database corresponding to the transaction sub-database; the gray level service supports that after the merchant gray level service is switched back to the production service, the reverse payment transaction can directly complete the subsequent request interaction through the production service which the gray level service depends on.
2. The apollo-based traffic distribution method according to claim 1, wherein in step S2, all transaction requests of the merchant are distributed to an independent new-version service environment, and the function of the independent new-version service environment is to verify the integrity of the new-version service function.
3. The Apoll o-based traffic distribution method according to claim 1, wherein in the step S2, the merchant dimension configuration is set by human implementation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010971648.9A CN112187662B (en) | 2020-09-16 | 2020-09-16 | Apollo-based traffic distribution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010971648.9A CN112187662B (en) | 2020-09-16 | 2020-09-16 | Apollo-based traffic distribution method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112187662A CN112187662A (en) | 2021-01-05 |
CN112187662B true CN112187662B (en) | 2023-03-28 |
Family
ID=73921520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010971648.9A Active CN112187662B (en) | 2020-09-16 | 2020-09-16 | Apollo-based traffic distribution method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112187662B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088909A (en) * | 2018-06-15 | 2018-12-25 | 上海盛付通电子支付服务有限公司 | A kind of service gray scale dissemination method and equipment based on merchant type |
CN110750278A (en) * | 2019-09-24 | 2020-02-04 | 苏宁云计算有限公司 | Gray scale distribution method and device, routing equipment and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365502B (en) * | 2018-03-26 | 2021-04-09 | 华为技术有限公司 | Service upgrade management method, device and storage medium |
CN110071960A (en) * | 2019-03-12 | 2019-07-30 | 平安科技(深圳)有限公司 | Manage method, system, equipment and the storage medium of gray scale publication |
CN110417736B (en) * | 2019-06-25 | 2022-10-14 | 平安银行股份有限公司 | Method and device for issuing bank cross-isolated area software and computer readable storage medium |
CN111026769B (en) * | 2019-10-16 | 2023-04-18 | 平安科技(深圳)有限公司 | Working method of dual-core front-end system and related equipment thereof |
CN110784409B (en) * | 2019-10-31 | 2022-08-09 | 长沙水羊网络科技有限公司 | Spring Cloud-based micro-service gray level publishing method |
CN111131472A (en) * | 2019-12-27 | 2020-05-08 | 紫光云(南京)数字技术有限公司 | Building method of Apollo configuration center |
CN111404828B (en) * | 2020-03-11 | 2023-04-28 | 中国工商银行股份有限公司 | Method and device for realizing global flow control |
CN111586095B (en) * | 2020-03-26 | 2023-09-19 | 中国平安财产保险股份有限公司 | Micro-service gray level publishing method and device, computer equipment and storage medium |
-
2020
- 2020-09-16 CN CN202010971648.9A patent/CN112187662B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088909A (en) * | 2018-06-15 | 2018-12-25 | 上海盛付通电子支付服务有限公司 | A kind of service gray scale dissemination method and equipment based on merchant type |
CN110750278A (en) * | 2019-09-24 | 2020-02-04 | 苏宁云计算有限公司 | Gray scale distribution method and device, routing equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112187662A (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2020184774A (en) | Method and system for protecting and verifying identity and credential via blockchain | |
US7783591B2 (en) | Coordinated data conversion systems and methods | |
CN111309745B (en) | Virtual resource processing method and device, electronic equipment and storage medium | |
CN112750037B (en) | Block chain-based data compression and query method and device and electronic equipment | |
CN111125106B (en) | Batch running task execution method, device, server and storage medium | |
CN116501715B (en) | Real-time association updating method and device for multi-table full data | |
US20200340828A1 (en) | Enhanced Meter Management Solution | |
CN112187662B (en) | Apollo-based traffic distribution method | |
CN112527839A (en) | Multi-source data processing method, system, equipment and storage medium | |
US20120011164A1 (en) | Life cycle based data coordination | |
CN1963815A (en) | Apparatus, system, and method for accessing a database | |
CN112907336A (en) | Method and server for realizing order state synchronization based on mybatis interceptor | |
CN110991992B (en) | Processing method and device of business process information, storage medium and electronic equipment | |
CN112738550B (en) | Content data processing method and device, electronic equipment and medium | |
CN113778959B (en) | Method, apparatus, device and computer readable medium for data processing | |
CN114022279B (en) | Service data error correction method, device, equipment and readable storage medium | |
CN118475944A (en) | Method and system for storing intelligent contract event | |
CN112950384B (en) | Processing system, method, computer equipment and storage medium based on cache technology | |
CN116226144A (en) | Data processing method and device, computer readable storage medium and electronic equipment | |
CN117952747A (en) | Block chain-based equity voucher transaction method, device, equipment and readable medium | |
CN114519440A (en) | Passenger ticket data processing method, device, equipment and storage medium | |
CN112668998B (en) | Flow implementation method, device, system, electronic equipment and readable storage medium | |
CN112636954B (en) | Server upgrading method and device | |
CN112910923A (en) | Intelligent financial big data processing system | |
CN113254520B (en) | Method for processing credit investigation data missing report and automatically generating supplementary message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |