Financial service system publishing method and device, storage medium and electronic equipment
Through multiple release stages, the new version of the service system is gradually deployed and exceptions are verified, which solves the problem of high failure impact during the grayscale release of financial institutions' securities business systems, and achieves higher stability and failure control.
Patent Information
- Application Number
- CN202410803867.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In the grayscale release mode of the securities business system of financial institutions, faults in the new version of the business service may not be discovered in time, causing the fault to have a large impact, making it difficult to resolve quickly and affecting system stability.
Use multiple release stages to gradually deploy a new version of the service system, forward transaction requests to the target server for processing through predefined routing rules, and verify whether the service system is abnormal at each stage. If abnormal, fall back to the previous stage and generate an early warning. information to ensure that the impact of the fault is small.
It effectively narrows the scope of the new version service system failure, improves the release stability of the financial securities business system, and avoids the problem of failure expansion caused by direct deployment to all servers after grayscale release.
Smart Images

Figure CN118764531A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology or other related technical fields, and in particular to a publishing method, device, storage medium and electronic device of a financial service system. Background Art
[0002] Against the backdrop of increasingly stringent securities business regulation, the stability of financial institutions' securities business systems has received high attention from regulatory authorities at all levels. How to accurately control the scope of fault impact while ensuring the iterative launch of business services and ensure the stability of banks' securities business systems is an issue that needs to be addressed urgently.
[0003] At present, the grayscale release method of the securities business system of financial institutions is mainly to deploy the new version of the business service on the grayscale cluster server. All business transaction requests are processed by the new version of the business service and the old version of the business service respectively through random routing, and the business results are verified by checking the execution results of the new version of the business service. After the verification is passed, the new version of the business service is directly deployed to all servers to complete the business service online.
[0004] As the frequency of user transactions increases, the stability requirements for the securities business systems of financial institutions are getting higher and higher. However, the new version of the business service and the old version of the business service are used to process transaction requests separately in a random routing manner. The failure of the new version of the business service may not be discovered, and after verification, the new version of the business service is deployed to all servers. Once the failure of the new version of the business service is discovered, the impact range is large and it is difficult to quickly resolve the failure, resulting in the securities business system being unable to provide services to customers.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present invention provide a publishing method, device, storage medium and electronic device for a financial service system, so as to at least solve the technical problem of poor publishing effect of a new version of a business service system in the related art.
[0007] According to one aspect of an embodiment of the present invention, a publishing method for a financial service system is provided, comprising: in a process of publishing a target version of the service system, locating a current publishing stage, receiving a transaction request, and searching for a routing rule matching the transaction request to obtain a target routing rule, wherein the process of publishing the target version of the service system includes N publishing stages, in each of the publishing stages, the number of servers in a server cluster deploying the target version of the service system is higher than that in a previous publishing stage, and the target routing rule is used to determine a forwarding address for the transaction request, where N is a positive integer; based on the target routing rule, forwarding the transaction request to a target server in the server cluster, wherein the target server is used to process the transaction request to obtain a processing result of the transaction request; based on the processing result, verifying whether the target version of the service system has an abnormality to obtain a verification result; and if the verification result indicates that the target version of the service system has no abnormality, entering the next publishing stage until the N publishing stages are completed.
[0008] Furthermore, based on the processing result, it is verified whether there is any abnormality in the service system of the target version to obtain a verification result, including: obtaining a preset verification script, and executing the preset verification script to verify whether the processing result is consistent with the expected result; when the processing result is consistent with the expected result, determining that the verification result indicates that there is no abnormality in the service system of the target version; when the processing result is inconsistent with the expected result, determining that the verification result indicates that there is an abnormality in the service system of the target version.
[0009] Furthermore, in the process of publishing the target version of the service system, it also includes: obtaining the parameter data filled in the target page, and generating routing rules corresponding to the parameter data, wherein the target page is used to configure the parameters of the routing rules; storing the routing rules corresponding to the parameter data into the target storage space.
[0010] Furthermore, searching for a routing rule that matches the transaction request to obtain a target routing rule includes: reading the routing rules stored in the target storage space to obtain S routing rules, where S is a positive integer greater than 1; matching the transaction data carried in the transaction request with the S routing rules, and determining the routing rule that matches the transaction data as the target routing rule.
[0011] Furthermore, when the verification result indicates that there is an abnormality in the service system of the target version, the system rolls back to the specified release stage and generates an early warning message, wherein the early warning message is used to prompt the target object that there is a fault in the service system of the target version in the current release stage, and the specified release stage includes: the release stage before the current release stage; and the early warning message is sent to the device used by the target object.
[0012] Further, based on the target routing rule, forwarding the transaction request to the target server in the server cluster includes: parsing the target routing rule based on the data format of the target routing rule to obtain the forwarding address of the transaction request; and forwarding the transaction request to the target server based on the forwarding address of the transaction request.
[0013] Furthermore, when the verification result indicates that there is no abnormality in the target version of the service system, after entering the next release stage, it also includes: obtaining the release strategy of the target version of the service system in the next release stage, wherein the release strategy at least includes: in the next release stage, the number of servers of the target version of the service system deployed in the server cluster; based on the release strategy, deploying the target version of the service system in the server cluster.
[0014] According to another aspect of an embodiment of the present invention, a publishing device for a financial service system is also provided, comprising: a first processing unit, used to locate the current publishing stage, receive a transaction request, and find a routing rule matching the transaction request during the publishing process of a target version of the service system to obtain a target routing rule, wherein the publishing process of the target version of the service system includes N publishing stages, in each of the publishing stages, the number of servers deploying the target version of the service system in a server cluster is higher than that in the previous publishing stage, and the target routing rule is used to determine a forwarding address of the transaction request, where N is a positive integer; a forwarding unit, used to forward the transaction request to a target server in the server cluster based on the target routing rule, wherein the target server is used to process the transaction request to obtain a processing result of the transaction request; a verification unit, used to verify whether the target version of the service system has an abnormality based on the processing result to obtain a verification result; a second processing unit, used to enter the next publishing stage when the verification result indicates that the target version of the service system has no abnormality, until the N publishing stages are completed.
[0015] Furthermore, the verification unit includes: a verification subunit, used to obtain a preset verification script and execute the preset verification script to verify whether the processing result is consistent with the expected result; a first determination subunit, used to determine that the verification result indicates that there is no abnormality in the service system of the target version when the processing result is consistent with the expected result; and a second determination subunit, used to determine that the verification result indicates that there is an abnormality in the service system of the target version when the processing result is inconsistent with the expected result.
[0016] Furthermore, the publishing device of the financial service system also includes: a first acquisition unit, used to acquire parameter data filled in the target page during the publishing process of the target version of the service system, and generate routing rules corresponding to the parameter data, wherein the target page is used to configure the parameters of the routing rules; a storage unit, used to store the routing rules corresponding to the parameter data to the target storage space.
[0017] Furthermore, the first processing unit includes: a reading subunit, used to read the routing rules stored in the target storage space to obtain S routing rules, where S is a positive integer greater than 1; a matching subunit, used to match the transaction data carried in the transaction request with the S routing rules, and determine the routing rule that matches the transaction data as the target routing rule.
[0018] Furthermore, the publishing device of the financial service system also includes: a rollback unit, which is used to roll back to a specified publishing stage and generate an early warning message when the verification result indicates that there is an abnormality in the service system of the target version, wherein the early warning message is used to prompt the target object that there is a fault in the service system of the target version in the current publishing stage, and the specified publishing stage includes: a publishing stage before the current publishing stage; a sending unit, which is used to send the early warning message to the device used by the target object.
[0019] Furthermore, the forwarding unit includes: a parsing subunit, which is used to parse the target routing rule based on the data format of the target routing rule to obtain the forwarding address of the transaction request; and a forwarding subunit, which is used to forward the transaction request to the target server based on the forwarding address of the transaction request.
[0020] Furthermore, the publishing device of the financial service system also includes: a second acquisition unit, used to obtain the publishing strategy of the target version of the service system in the next publishing stage after entering the next publishing stage when the verification result indicates that there is no abnormality in the target version of the service system, wherein the publishing strategy at least includes: the number of servers in the server cluster where the target version of the service system is deployed in the next publishing stage; and a deployment unit, used to deploy the target version of the service system in the server cluster based on the publishing strategy.
[0021] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned publishing methods of the financial service system by executing the executable instructions.
[0022] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned publishing methods of the financial service system.
[0023] In the present invention, in the process of publishing the target version of the service system, the current publishing stage is located, a transaction request is received, and a routing rule matching the transaction request is found to obtain a target routing rule, wherein the process of publishing the target version of the service system includes N publishing stages, in each publishing stage, the number of servers deploying the target version of the service system in the server cluster is higher than that in the previous publishing stage, and the target routing rule is used to determine the forwarding address of the transaction request, where N is a positive integer; based on the target routing rule, the transaction request is forwarded to the target server in the server cluster, wherein the target server is used to process the transaction request, and the processing result of the transaction request is obtained; based on the processing result, it is verified whether the target version of the service system has an abnormality, and a verification result is obtained; when the verification result indicates that the target version of the service system has no abnormality, the next publishing stage is entered until N publishing stages are completed. Thus, the technical problem of poor effect of publishing the new version of the business service system in the related art is solved.
[0024] In the present invention, the target version of the service system is gradually deployed to the server cluster through multiple release stages, and in each release stage, the transaction request is forwarded to the corresponding server for processing through pre-defined routing rules, thereby avoiding the situation in the related technology that when the new version of the service system is grayed out and verified, it is directly deployed to all servers, which may have a wide impact range after a failure occurs. This achieves the technical effect of reducing the impact range of the failure and improving the stability of the system release when releasing a new version of the business service system. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 is a flow chart of an optional publishing method of a financial service system according to an embodiment of the present invention;
[0027] Figure 2 is a structural diagram of a publishing system of an optional financial service system according to an embodiment of the present invention;
[0028] Figure 3 is a schematic diagram of the internal structure of an optional data acquisition device 1 according to an embodiment of the present invention;
[0029] Figure 4 is a schematic diagram of the structure of an optional transaction routing rule configuration device 2 according to an embodiment of the present invention;
[0030] Figure 5 is a schematic diagram of the internal structure of an optional routing rule loading device 3 according to an embodiment of the present invention;
[0031] Figure 6 is a schematic diagram of the internal structure of an optional business service result verification device 4 according to an embodiment of the present invention;
[0032] Figure 7 is a schematic diagram of the internal structure of an optional transaction routing strategy updating device 5 according to an embodiment of the present invention;
[0033] Figure 8 is a schematic diagram of the internal structure of an optional service version rolling update strategy device 6 according to an embodiment of the present invention;
[0034] Fig. 9 is a schematic diagram of the internal structure of an optional result notification device 7 according to an embodiment of the present invention;
[0035] Fig.10 is a schematic diagram of the internal structure of an optional event alarm device 8 according to an embodiment of the present invention;
[0036] Fig.11 is a schematic diagram of an optional publishing device of a financial service system according to an embodiment of the present invention;
[0037] Fig.12 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0040] It should be noted that the publishing method, device, storage medium and electronic device of the financial service system in the present disclosure can be used in the financial technology field when a new version of the system is released, and can also be used in any field other than the financial technology field. In the case of a new version of the system, the present disclosure does not limit the application field of the publishing method, device, storage medium and electronic device of the financial service system.
[0041] It should be noted that the user information (including but not limited to user device information, user personal information, etc.), collected information and data (including but not limited to data used for analysis, stored data, displayed data, electronic medical records, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0042] The present invention can be applied to various software products, control systems, and client (including but not limited to: mobile client, PC, etc.) control systems of various financial institutions. The software product is used as an example for schematic illustration. By installing a new version of the software product through the mobile client, the business content of the financial institution (including but not limited to: transfer, financial management, funds, payment, account checking, advertising, recommendation and other business functions) can be realized through the new version of the software product.
[0043] Embodiment 1
[0044] According to an embodiment of the present invention, a method embodiment of an optional publishing method of a financial services system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0045] Figure 1 is a flow chart of an optional publishing method of a financial service system according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0046] Step S101, during the release process of the target version of the service system, locate the current release stage, receive a transaction request, and search for a routing rule matching the transaction request to obtain a target routing rule.
[0047] The process of publishing the target version of the service system includes N publishing stages. In each publishing stage, the number of servers deploying the target version of the service system in the server cluster is higher than that in the previous publishing stage. The target routing rule is used to determine the forwarding address of the transaction request, and N is a positive integer.
[0048] The above-mentioned service system may include a system for processing transaction data in a financial institution, including but not limited to: a securities business system. The target version of the service system may refer to a new version of the service system obtained by upgrading and transforming certain service functions in the old version of the service system.
[0049] In order to avoid deploying the new version of the business service on the grayscale cluster server in the related technology, all business transaction requests are processed by the new version of the business service and the old version of the business service respectively through random routing. After verification, the new version of the business service is directly deployed to all servers to complete the business service online. Once a failure occurs and the impact of the failure is large, in this embodiment, the process of publishing the target version of the service system can include multiple publishing stages. The deployment of the new version of the service system in the server cluster can be different between each publishing stage. For example, in each publishing stage, the number of servers deploying the target version of the service system in the server cluster can be higher than that in the previous publishing stage. In an optional example, different publishing stages can be set with different routing rules, and the traffic corresponding to the transaction requests flowing into the target version of the service system and the old version of the service system can also be different. The purpose of rolling upgrade of the service system and improving the stability of the release of the new version of the service system is achieved.
[0050] The above-mentioned routing rules can be used to determine the address to which the transaction requests corresponding to the business of the financial institution are forwarded. For example, according to the routing rules, the transaction requests containing preset data can be forwarded to the server where the service system of the target version is deployed. The preset data may include but is not limited to: a mobile phone number with certain digits as xx, an account number with certain digits as xx, etc.
[0051] Step S102: forwarding the transaction request to a target server in the server cluster based on the target routing rule, wherein the target server is used to process the transaction request and obtain a processing result of the transaction request.
[0052] In this embodiment, the target routing rule can be parsed to identify the forwarding address of the transaction request (ie, the address of the target server), and then the transaction request is forwarded to the target server in the server cluster for processing according to the forwarding address.
[0053] Step S103: Based on the processing result, verify whether there is any abnormality in the service system of the target version, and obtain a verification result.
[0054] In this embodiment, it is also possible to verify whether the processing result meets expectations, thereby determining whether there is an abnormality in the service system of the target version of the current release stage, and obtaining a verification result.
[0055] Step S104, when the verification result indicates that there is no abnormality in the service system of the target version, enter the next release stage until N release stages are completed.
[0056] When the verification result indicates that there is no abnormality in the service system of the target version, the next release phase is entered. In the next release phase, the deployment of the service system of the target version in the server cluster can be adjusted according to the verification result, and the routing rules can also be different from the current release phase.
[0057] When the verification result indicates that there is an abnormality in the target version of the service system, it is possible to roll back to the specified release stage, which may refer to the release stage before the current release stage, thereby achieving the technical effect of increasing the flexibility of adjusting the grayscale range of the release of the new version of the service system.
[0058] Through the above steps, in this embodiment, the target version of the service system is gradually deployed to the server cluster through multiple release stages, and the transaction request is forwarded to the corresponding server for processing through the pre-defined routing rules in each release stage, avoiding the situation in the related art that when the new version of the service system is grayed out and is directly deployed to all servers after verification, the impact range is large after the failure occurs, thereby achieving the technical effect of reducing the impact range of the failure and improving the stability of the system release when releasing the new version of the business service system. This solves the technical problem of poor effect of the release of the new version of the business service system in the related art.
[0059] Optionally, based on the processing result, verify whether there is any abnormality in the service system of the target version to obtain a verification result, including: obtaining a preset verification script, and executing the preset verification script to verify whether the processing result is consistent with the expected result; when the processing result is consistent with the expected result, determine that the verification result indicates that there is no abnormality in the service system of the target version; when the processing result is inconsistent with the expected result, determine that the verification result indicates that there is an abnormality in the service system of the target version.
[0060] In this embodiment, the preset verification rules can be obtained, the verification rules can be parsed, the corresponding automated verification script (corresponding to the preset verification script) can be obtained, the automated verification script can be executed, the verification result can be obtained and stored. The following processing is performed according to the verification result of the automated verification script:
[0061] Result 1: The verification result of the verification script indicates that the processing result of the transaction request is consistent with the expected result, indicating that there is no abnormality in the new version of the business service (that is, there is no abnormality in the service system of the target version). The grayscale strategy for expanding the business service in the next release phase can be obtained according to the preset business service grayscale strategy. Among them, the grayscale strategy for expanding the business service in the next release phase can refer to expanding the deployment scope of the service system of the target version in the server cluster.
[0062] Result 2: The verification result of the verification script indicates that the processing result of the transaction request is inconsistent with the expectation, which means that the new version of the business service has a fault (that is, there is an abnormality in the service system of the target version). The business service rollback grayscale strategy can be obtained according to the business service grayscale strategy.
[0063] By presetting the verification script, it is automatically verified whether the processing result of the transaction request is consistent with the expectation, thereby achieving the technical effect of improving the verification efficiency of the processing result of the new version of the business service.
[0064] Optionally, during the release of the target version of the service system, it also includes: obtaining parameter data filled in the target page, and generating routing rules corresponding to the parameter data, wherein the target page is used to configure the parameters of the routing rules; storing the routing rules corresponding to the parameter data into the target storage space.
[0065] In order to improve the flexibility of routing rule settings, the parameters of routing rules can also be configured using the target page. By real-time monitoring whether new parameter data is set on the target page, the parameter data filled in the target page can be obtained and converted into a specified format to obtain the routing rules corresponding to the parameter data. The routing rules corresponding to the parameter data are stored in the target storage space, thereby achieving the purpose of flexibly adjusting routing rules during the release of the target version of the service system.
[0066] For example, it is possible to detect in real time whether there are any new routing rules to be implemented, and mark the routing policies to be implemented as effective. Then, the routing rules that have not been loaded and marked as effective can be loaded and stored in the target storage space so that subsequent business transaction requests can be forwarded according to the new routing rules.
[0067] Optionally, searching for a routing rule that matches the transaction request to obtain a target routing rule includes: reading the routing rules stored in the target storage space to obtain S routing rules, where S is a positive integer greater than 1; matching the transaction data carried in the transaction request with the S routing rules, and determining the routing rule that matches the transaction data as the target routing rule.
[0068] In this embodiment, the routing rules stored in the target storage space can also be read, and the transaction data carried in the transaction request is matched with the read routing rules, and the successfully matched routing rules are determined as the target routing rules. For example, if the customer number indicated in the transaction data is 0010000, and the forwarding address corresponding to the first three digits of the customer number indicated in the routing rule is 001, which is the forwarding address of the target server, then the transaction data is successfully matched with the routing rule, thereby achieving the purpose of controlling the routing of the transaction request and realizing the technical effect of controlling the failure impact range of the new version of the service system.
[0069] Optionally, when the verification result indicates that there is an abnormality in the service system of the target version, roll back to the specified release stage and generate a warning message, wherein the warning message is used to prompt the target object that there is a fault in the service system of the target version in the current release stage, and the specified release stage includes: the release stage before the current release stage; the warning message is sent to the device used by the target object.
[0070] In this embodiment, when the verification result indicates that there is an abnormality in the target version of the service system, the current release stage can be rolled back to the specified release stage according to a pre-set rollback strategy, and an early warning message can be generated. The early warning message can be sent to the device used by the target object via SMS or email, so as to facilitate timely handling of abnormal situations in the target version of the service system and ensure the stability of the new version of the service system.
[0071] For example, if the verification result fails, the event alarm device can be used to complete SMS alarm and email alarm to notify the operation and maintenance personnel to handle the fault event.
[0072] Optionally, based on the target routing rule, forwarding the transaction request to the target server in the server cluster includes: parsing the target routing rule based on the data format of the target routing rule to obtain the forwarding address of the transaction request; and forwarding the transaction request to the target server based on the forwarding address of the transaction request.
[0073] In this embodiment, the target routing rules can be parsed into a language that can be processed by a computer device (or server), and the destination service cluster address (i.e., forwarding address) in the parsing result can be identified to obtain the destination service cluster address, forward the transaction request to the target server, and process the transaction request, thereby achieving the purpose of accessing business services according to routing rules and ensuring that the expected number of customers use the new version of the business service system.
[0074] Optionally, when the verification result indicates that there is no abnormality in the target version of the service system, after entering the next release stage, it also includes: obtaining the release strategy of the target version of the service system in the next release stage, wherein the release strategy at least includes: in the next release stage, the number of servers in the server cluster where the target version of the service system is deployed; based on the release strategy, deploying the target version of the service system in the server cluster.
[0075] In this embodiment, when the verification result indicates that there is no abnormality in the target version of the service system, after entering the next release stage, the release strategy of the target version of the service system in the next release stage can be obtained. The release strategy may include: grayscale strategy, transaction routing strategy, etc. The grayscale strategy may include: the number of servers for deploying the target version of the service system in the server cluster in the next release stage, and the transaction routing strategy may include: routing rules for the next release stage, etc. Based on the release strategy, the deployment scope of the target version of the service system in the server cluster can be expanded, and the transaction requests generated in the next release stage can be forwarded according to the transaction routing strategy.
[0076] For example, you can obtain the grayscale strategy for the next phase of business services. Based on the business service verification results and the grayscale strategy for the next level of business services, you can generate the next phase of transaction routing strategy, and you can also update the release strategy in real time.
[0077] In this embodiment, routing rules can be customized according to business elements to enable business requests (or transaction requests) to access business services according to specified routes, ensuring that the expected number of customers use the new version of the business service (i.e., the service in the target version of the service system), and gradually expand the deployment scope of the new version of the service and the scope of pilot users through intelligent adjustment, and finally complete the launch of the new version of the business service.
[0078] In this embodiment, it is possible to support customized rules for accessing the new version of the service customer group according to the service channels, securities companies, service types and customer numbers configured by the business, and to support the hot loading mode of the customer group rules. After automatically identifying that the processing result of the new version of the service has passed the verification, the grayscale range of the new version of the business service and the rolling upgrade of the server installation can be adjusted according to the preset intelligent strategy (for example, after entering the next release stage, the release strategy is adjusted), and finally all server update services are realized. When it is identified that the new version of the service verification has not passed, the routing rules for accessing the new version of the service customer group are automatically adjusted to the routing rules of the old version of the service (that is, fall back to the specified release stage), reducing the scope and time of the failure impact and quickly restoring the service.
[0079] By taking advantage of the dynamic loading technology of transaction routing rules and the automatic verification of new business service results, the pilot scope of the new version of the service (for example, the service in the target version of the service system) is intelligently adjusted to ensure that during the launch of the new business service, the pilot scope of the new business service in the next release phase and the installation scope of the server cluster of the new business service can be dynamically adjusted according to the phased verification results, effectively controlling the impact scope when a failure occurs, reducing the impact of the new business service launch on customers, and solving the problem of providing continuous and stable services to customers during the release of new business services.
[0080] Embodiment 2
[0081] Embodiment 2 of the present invention provides an optional publishing system of a financial service system, which can be used to execute the publishing method of the financial service system provided in Embodiment 1 of the present invention.
[0082] Figure 2 is a structural diagram of a publishing system of an optional financial service system according to an embodiment of the present invention, such as Figure 2As shown, it includes a data collection device 1, a transaction routing rule configuration device 2, a routing rule loading device 3, a business service result verification device 4, a transaction routing strategy update device 5, a service version rolling update strategy device 6, a result notification device 7, and an event alarm device 8. The devices cooperate with each other to jointly realize the grayscale release of the new version of the business service and the rolling installation version of the server.
[0083] Data acquisition device 1: Figure 3 is a schematic diagram of the internal structure of an optional data acquisition device 1 according to an embodiment of the present invention. Figure 3 As shown, it includes a bank-securities business request data collection unit 11, which is used to realize real-time collection of bank-securities business request (corresponding to transaction request) data.
[0084] Transaction routing rule configuration device 2: Figure 4 is a schematic diagram of an optional transaction routing rule configuration device 2 structure according to an embodiment of the present invention, such as Figure 4 As shown, it includes: a routing rule configuration unit 21, which is responsible for storing the grayscale release routing rules set by the user. A routing rule parsing unit 22, which completes the grayscale release routing rule parsing and identifies the routing forwarding destination service cluster address. A routing request forwarding unit 23, which obtains the destination service cluster address and forwards the request.
[0085] Routing rule loading device 3: Figure 5 is a schematic diagram of the internal structure of an optional routing rule loading device 3 according to an embodiment of the present invention, such as Figure 5 As shown, it includes: a routing rule change detection unit 31, which is responsible for real-time detection of whether there are the latest routing rules to be effective, and converting the routing policies to be effective into effective ones. A routing rule dynamic loading unit 32, which is responsible for loading the unloaded and effective routing rules, so that subsequent service requests are forwarded according to the new routing rules.
[0086] Business service result verification device 4: Figure 6 FIG. 4 is a schematic diagram of the internal structure of an optional business service result verification device 4 according to an embodiment of the present invention. Figure 6 As shown, it includes: a business service result verification rule parsing unit 41, which is used to parse the verification rule and obtain the corresponding automatic verification script. A verification rule execution unit 42, which is used to execute the automatic verification script (corresponding to the preset verification script) and store the verification result. A business service grayscale strategy update unit 43, which is used to perform the following processing according to the result of the automatic verification script:
[0087] Result 1: The verification script result (corresponding to the processing result) is consistent with expectations, indicating that there is no abnormality in the new version of the business service. The grayscale strategy for expanding the business service in the next phase is obtained according to the grayscale strategy of the business service.
[0088] Result 2: The verification script result is inconsistent with the expected result, indicating that the new version of the business service has a fault. Obtain the business service rollback grayscale strategy according to the business service grayscale strategy.
[0089] Transaction routing strategy updating device 5: Figure 7 is a schematic diagram of the internal structure of an optional transaction routing strategy updating device 5 according to an embodiment of the present invention, such as Figure 7 As shown, it includes: a business service result scanning unit 51, which can be used to obtain the business service verification result. A business service grayscale strategy scanning unit 52, which can be used to obtain the next stage business service grayscale strategy. A transaction routing strategy generation unit 53, which can be used to generate the next stage transaction routing strategy according to the business service verification result and the next level business service grayscale strategy, wherein the business service grayscale strategy and the transaction routing strategy correspond to the release strategy in the first embodiment.
[0090] Service version rolling update strategy device 6: Figure 8 FIG. 6 is a schematic diagram of the internal structure of an optional service version rolling update strategy device 6 according to an embodiment of the present invention. Figure 8 As shown, it includes: a business service grayscale strategy change scanning unit 61, which can be used to detect and obtain the latest strategy of the business service grayscale strategy update unit in real time. A service version rolling update strategy generation unit 62, which can be used to generate an update strategy for the next stage of service version rolling according to the latest business service grayscale strategy. It also includes a service version update strategy execution unit 63.
[0091] Result notification device 7: Fig. 9 is a schematic diagram of an optional internal structure of a result notification device 7 according to an embodiment of the present invention. Fig. 9 As shown, it includes: a result notification unit 71, which can notify the terminal user according to the latest policy results in the business service result verification device 4, the transaction routing strategy update device 5, and the service version rolling update strategy device 6.
[0092] Event alarm device 8: Fig.10 FIG. 8 is a schematic diagram of the internal structure of an optional event alarm device 8 according to an embodiment of the present invention. Fig.10 As shown, it includes: a text message alarm unit 81 and an email alarm unit 82, which can be used to complete text message alarms and email alarms through an event alarm device when the business service verification result in the business service result verification device 4 fails to verify the result, and notify the operation and maintenance personnel to handle the fault event.
[0093] The above-mentioned data collection device 1, transaction routing rule configuration device 2, routing rule loading device 3, business service result verification device 4, transaction routing strategy update device 5, service version rolling update strategy device 6, result notification device 7, event alarm device 8, each device cooperates with each other to jointly realize the gray release of new version business services and server rolling installation version and other 8 devices. Through mutual combination, the entire process of automated gray release of new business services can be realized. Specifically, the data collection device 1 is relatively independent and can collect real-time data of bank-securities business requests. It uses the transaction routing rule configuration device 2 to find the routing rules that match the current data request, and forwards the data request to the service cluster for business service processing. The business service result verification device 4 can verify the business results of the new service. If the verification passes, the next stage of business service grayscale strategy can be generated. If the verification fails, a business service fallback grayscale strategy can be generated. The transaction routing strategy update device 5 and the service version rolling update strategy device 6 can generate the next stage of transaction routing strategy and service version rolling update strategy according to the next stage of business service grayscale strategy. The routing rule loading device 3 can dynamically load the next stage routing strategy, and the new routing strategy will take effect. The result notification device 7 can be responsible for persisting the latest strategy results in the business service result verification device 4, the transaction routing strategy update device 5, and the service version rolling update strategy device 6. The event alarm device 8 can be responsible for the business service verification results in the business service result verification device 4 through the operation and maintenance personnel.
[0094] By taking advantage of the dynamic loading technology of transaction routing rules and the automatic verification of new business service results, the pilot scope of the new version of the service (for example, the service in the target version of the service system) is intelligently adjusted to ensure that during the launch of the new business service, the pilot scope of the new business service in the next release phase and the installation scope of the server cluster of the new business service can be dynamically adjusted according to the phased verification results, effectively controlling the impact scope when a failure occurs, reducing the impact of the new business service launch on customers, and solving the problem of providing continuous and stable services to customers during the release of new business services.
[0095] Embodiment 3
[0096] Embodiment 3 of the present invention provides an optional publishing device of a financial service system, and each implementation unit in the publishing device corresponds to each implementation step in Embodiment 1.
[0097] Fig.11 is a schematic diagram of an optional publishing device of a financial service system according to an embodiment of the present invention, such as Fig.11 As shown, the publishing device includes: a first processing unit 111, a forwarding unit 112, a verification unit 113 and a second processing unit 114.
[0098] The first processing unit 111 is used to locate the current publishing stage, receive the transaction request, and find the routing rule matching the transaction request during the publishing process of the target version of the service system to obtain the target routing rule, wherein the publishing process of the target version of the service system includes N publishing stages, and in each publishing stage, the number of servers deploying the target version of the service system in the server cluster is higher than that in the previous publishing stage, and the target routing rule is used to determine the forwarding address of the transaction request, and N is a positive integer;
[0099] A forwarding unit 112, configured to forward the transaction request to a target server in the server cluster based on a target routing rule, wherein the target server is configured to process the transaction request and obtain a processing result of the transaction request;
[0100] A verification unit 113 is used to verify whether there is an abnormality in the service system of the target version based on the processing result, and obtain a verification result;
[0101] The second processing unit 114 is configured to enter the next release phase when the verification result indicates that there is no abnormality in the service system of the target version, until N release phases are completed.
[0102] In the publishing device of the financial service system provided in the third embodiment of the present invention, the first processing unit 111 can be used to locate the current publishing stage, receive the transaction request, and find the routing rule matching the transaction request during the publishing process of the target version of the service system to obtain the target routing rule, wherein the publishing process of the target version of the service system includes N publishing stages, in each publishing stage, the number of servers deploying the target version of the service system in the server cluster is higher than that in the previous publishing stage, the target routing rule is used to determine the forwarding address of the transaction request, N is a positive integer, and then the forwarding unit 112 forwards the transaction request to the target server in the server cluster based on the target routing rule, wherein the target server is used to process the transaction request and obtain the processing result of the transaction request, and then the verification unit 113 verifies whether the target version of the service system has an abnormality based on the processing result to obtain the verification result, and then the second processing unit 114 enters the next publishing stage when the verification result indicates that the target version of the service system has no abnormality, until the N publishing stages are completed. Thus, the technical problem of poor publishing effect of the new version of the business service system in the related art is solved.
[0103] In this embodiment, the target version of the service system is gradually deployed to the server cluster through multiple release stages, and in each release stage, the transaction request is forwarded to the corresponding server for processing through pre-defined routing rules, thereby avoiding the situation in the related technology that when the new version of the service system is grayed out and is directly deployed to all servers after verification, the impact range is large after the failure occurs, thereby achieving the technical effect of reducing the impact range of the failure and improving the stability of the system release when releasing the new version of the business service system.
[0104] Optionally, in the publishing device of the financial service system provided in Example 3 of the present invention, the verification unit includes: a verification sub-unit, used to obtain a preset verification script, and execute the preset verification script to verify whether the processing result is consistent with the expected result; a first determination sub-unit, used to determine that the verification result indicates that there is no abnormality in the target version of the service system when the processing result is consistent with the expected result; and a second determination sub-unit, used to determine that the verification result indicates that there is an abnormality in the target version of the service system when the processing result is inconsistent with the expected result.
[0105] Optionally, in the publishing device of the financial service system provided in Example 3 of the present invention, the publishing device of the financial service system also includes: a first acquisition unit, used to acquire parameter data filled in the target page during the publishing process of the target version of the service system, and generate routing rules corresponding to the parameter data, wherein the target page is used to configure the parameters of the routing rules; a storage unit, used to store the routing rules corresponding to the parameter data to the target storage space.
[0106] Optionally, in the publishing device of the financial service system provided in Example 3 of the present invention, the first processing unit includes: a reading sub-unit, used to read the routing rules stored in the target storage space to obtain S routing rules, where S is a positive integer greater than 1; a matching sub-unit, used to match the transaction data carried in the transaction request with the S routing rules, and determine the routing rule that matches the transaction data as the target routing rule.
[0107] Optionally, in the publishing device of the financial service system provided in Example 3 of the present invention, the publishing device of the financial service system also includes: a rollback unit, used to roll back to a specified publishing stage and generate warning information when a verification result indicates that there is an abnormality in the target version of the service system, wherein the warning information is used to prompt the target object that there is a fault in the target version of the service system in the current publishing stage, and the specified publishing stage includes: a publishing stage before the current publishing stage; and a sending unit, used to send the warning information to a device used by the target object.
[0108] Optionally, in the publishing device of the financial service system provided in Example 3 of the present invention, the forwarding unit includes: a parsing subunit, which is used to parse the target routing rules based on the data format of the target routing rules in the publishing device of the financial service system provided in Example 3 of the present invention to obtain the forwarding address of the transaction request; and a forwarding subunit, which is used to forward the transaction request to the target server based on the forwarding address of the transaction request.
[0109] Optionally, in the publishing device of the financial service system provided in Example 3 of the present invention, the publishing device of the financial service system also includes: a second acquisition unit, used to obtain the publishing strategy of the target version of the service system in the next publishing stage after entering the next publishing stage when the verification result indicates that there is no abnormality in the target version of the service system, wherein the publishing strategy at least includes: the number of servers in the server cluster where the target version of the service system is deployed in the next publishing stage; and a deployment unit, used to deploy the target version of the service system in the server cluster based on the publishing strategy.
[0110] The publishing device of the above-mentioned financial service system may also include a processor and a memory. The above-mentioned first processing unit 111, forwarding unit 112, verification unit 113 and second processing unit 114 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0111] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the target version of the service system can be gradually deployed to the server cluster through multiple release stages by adjusting the kernel parameters, and the transaction request is forwarded to the corresponding server for processing through pre-defined routing rules in each release stage, avoiding the situation in the related technology that when the new version of the service system is grayed out and directly deployed to all servers after verification, the impact range is large after the failure occurs, thereby achieving the technical effect of reducing the impact range of the failure and improving the stability of the system release when releasing the new version of the business service system.
[0112] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0113] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned publishing methods of the financial service system by executing the executable instructions.
[0114] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned publishing methods of the financial service system.
[0115] Fig.12 is a schematic diagram of an electronic device according to an embodiment of the present invention, such as Fig.12 As shown, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, any one of the above-mentioned publishing methods of the financial service system is implemented.
[0116] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0117] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0118] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0120] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0121] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0122] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for publishing a financial service system, It is characterized in that include: In the process of publishing the target version of the service system, the current publishing stage is located, a transaction request is received, and a routing rule matching the transaction request is found to obtain a target routing rule, wherein the process of publishing the target version of the service system includes N publishing stages, and in each of the publishing stages, the number of servers deploying the target version of the service system in the server cluster is higher than that in the previous publishing stage, and the target routing rule is used to determine the forwarding address of the transaction request, and N is a positive integer; forwarding the transaction request to a target server in the server cluster based on the target routing rule, wherein the target server is used to process the transaction request and obtain a processing result of the transaction request; Based on the processing result, verify whether the service system of the target version has an abnormality, and obtain a verification result; When the verification result indicates that there is no abnormality in the service system of the target version, the next release phase is entered until N release phases are completed.
2. The publishing method of the service system according to claim 1, It is characterized in that Based on the processing result, verify whether the service system of the target version has an abnormality, and obtain a verification result, including: Obtain a preset verification script, and execute the preset verification script to verify whether the processing result is consistent with the expected result; In a case where the processing result is consistent with the expected result, determining that the verification result indicates that there is no abnormality in the service system of the target version; In a case where the processing result is inconsistent with the expected result, it is determined that the verification result indicates that an abnormality exists in the service system of the target version.
3. The publishing method of the service system according to claim 1, It is characterized in that The process of publishing the target version of the service system also includes: Obtain parameter data filled in the target page, and generate routing rules corresponding to the parameter data, wherein the target page is used to configure the parameters of the routing rules; The routing rules corresponding to the parameter data are stored in the target storage space.
4. The publishing method of the service system according to claim 3, It is characterized in that Find the routing rule that matches the transaction request and obtain the target routing rule, including: Read the routing rules stored in the target storage space to obtain S routing rules, where S is a positive integer greater than 1; The transaction data carried in the transaction request is matched with the S routing rules, and the routing rule matching the transaction data is determined as the target routing rule.
5. The publishing method of the service system according to claim 1, It is characterized in that If the verification result indicates that the service system of the target version is abnormal, roll back to the specified release stage and generate warning information, wherein the warning information is used to prompt the target object that the service system of the target version has a fault in the current release stage, and the specified release stage includes: the release stage before the current release stage; The warning information is sent to the device used by the target object.
6. The publishing method of the service system according to claim 1, It is characterized in that Forwarding the transaction request to a target server in the server cluster based on the target routing rule includes: Based on the data format of the target routing rule, the target routing rule is parsed to obtain a forwarding address of the transaction request; Based on the forwarding address of the transaction request, the transaction request is forwarded to the target server.
7. The publishing method of the service system according to claim 1, It is characterized in that When the verification result indicates that there is no abnormality in the service system of the target version, after entering the next release stage, the method further includes: Acquire a release strategy for the target version of the service system in the next release phase, wherein the release strategy at least includes: the number of servers for deploying the target version of the service system in the server cluster in the next release phase; Based on the release strategy, the service system of the target version is deployed in the server cluster.
8. A publishing device for a financial service system, It is characterized in that include: The first processing unit is used to locate the current publishing stage, receive the transaction request, and find the routing rule matching the transaction request during the publishing process of the target version of the service system to obtain the target routing rule, wherein the publishing process of the target version of the service system includes N publishing stages, in each of the publishing stages, the number of servers deploying the target version of the service system in the server cluster is higher than that in the previous publishing stage, and the target routing rule is used to determine the forwarding address of the transaction request, and N is a positive integer; a forwarding unit, configured to forward the transaction request to a target server in the server cluster based on the target routing rule, wherein the target server is configured to process the transaction request and obtain a processing result of the transaction request; A verification unit, configured to verify whether the service system of the target version has an abnormality based on the processing result, and obtain a verification result; The second processing unit is configured to enter the next release phase if the verification result indicates that there is no abnormality in the service system of the target version, until N release phases are completed.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the publishing method of the financial service system according to any one of claims 1 to 7.
10. An electronic device, It is characterized in that It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the publishing method of the financial service system described in any one of claims 1 to 7.
Citation Information
Patent Citations
Service release system and method, equipment and storage medium
CN108376118A
Gray-scale release method and device, electronic equipment, medium and program product
CN113138774A
Transaction request processing method and device in new and old system switching process
CN116414628A
Release orchestration for performing pre-release, version specific testing to validate application versions
US20200241865A1
Product grayscale releasing method, apparatus and device, and storage medium
WO2021179633A1
Cited By
Transaction data processing method and device, storage medium and electronic equipment
CN119831745A
