Risk assessment method, device, equipment and computer-readable storage medium

Through the automated risk assessment method, change information is used to calculate the estimated impact request volume, which solves the problems of low efficiency and poor accuracy of change risk assessment in the existing technology, realizes intelligent risk assessment, and improves assessment efficiency and accuracy.

CN111582771BActive Publication Date: 2024-10-22WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010552077.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-16
Publication Date
2024-10-22
Estimated Expiration
2040-06-16

AI Technical Summary

Technical Problem

Change risk assessment in the existing technology has low efficiency and poor accuracy of results, mainly due to the need for manual participation, which leads to subjective effects.

Method used

By receiving subsystem change requests, obtain change information, determine the target impact request and target impact factor, and calculate the estimated impact request volume based on the historical average request volume, thereby determining the risk level and realizing automated risk assessment.

Benefits of technology

It improves the efficiency and accuracy of change risk assessment, reduces the impact of manual subjectivity, and realizes intelligent risk assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111582771B_ABST
    Figure CN111582771B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of financial technology, and discloses a risk assessment method, device, equipment and computer-readable storage medium. The risk assessment method comprises: upon receiving a subsystem change request, obtaining change information according to the subsystem change request; determining a target impact request and a target impact factor according to the change information, and obtaining the historical average request volume of the target impact request; calculating an estimated impact request volume according to the historical average request volume and the target impact factor, and determining a corresponding risk level according to the estimated impact request volume. The present invention can improve the efficiency of change risk assessment and the accuracy of change risk assessment results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of financial technology (Fintech), and in particular to a risk assessment method, device, equipment and computer-readable storage medium. Background Art

[0002] With the development of computer technology, more and more technologies are being applied in the financial field. The traditional financial industry is gradually transforming into financial technology (Fintech). However, due to the security and real-time requirements of the financial industry, higher requirements are also placed on technology.

[0003] The functional realization of product services usually requires the help of multiple subsystems. When updating or repairing functions, the corresponding subsystems need to be changed. In the process of change, there are often change risks. Therefore, the change risks need to be evaluated before the change so that corresponding preventive measures can be taken.

[0004] At present, the following two methods are usually used to evaluate the change risk, or a combination of the two methods: 1) According to certain process rules, organize relevant management personnel or technical personnel to conduct risk reviews on the subjects involved in the change (for example, version changes involve newly released version information) and change plans (such as implementation subjects, implementation steps, etc.); 2) Provide a document similar to a question-and-answer or configuration system, and ask relevant personnel to answer or fill it out, and then evaluate the risk according to certain rules based on the answers or filling results. The above methods all require human participation, and human subjective factors have a certain impact on the results of risk assessment, resulting in poor assessment accuracy and low risk assessment efficiency. Therefore, how to improve the efficiency of change risk assessment and the accuracy of change risk assessment results is an urgent problem to be solved. Summary of the invention

[0005] The main purpose of the present invention is to provide a risk assessment method, device, equipment and computer-readable storage medium, aiming to solve the problems of low efficiency of change risk assessment and poor accuracy of change risk assessment results in the prior art.

[0006] To achieve the above object, the present invention provides a risk assessment method, which comprises:

[0007] When receiving a subsystem change request, obtaining change information according to the subsystem change request;

[0008] Determine a target impact request and a target impact factor according to the change information, and obtain a historical average request volume of the target impact request;

[0009] An estimated impact request volume is calculated based on the historical average request volume and the target impact factor, and a corresponding risk level is determined based on the estimated impact request volume.

[0010] Optionally, the change information includes a target change subsystem identifier, change entity information, and change time information, and the step of determining a target impact request and a target impact factor according to the change information, and obtaining a historical average request volume of the target impact request includes:

[0011] Query the impact request list corresponding to each subsystem obtained by pre-statistication to obtain the target impact request corresponding to the target change subsystem identifier;

[0012] Determine a target impact factor according to the changed entity information;

[0013] Detecting whether the target change subsystem corresponding to the target change subsystem identifier adopts a flow switching mechanism, and obtaining a detection result;

[0014] Determine a target impact time period according to the detection result and the change time information;

[0015] Obtain a historical average request volume of the target impact request within the target impact time period.

[0016] Optionally, the risk assessment method further includes:

[0017] Acquire call path information of each type of request in advance, and obtain a call chain of each type of request according to the call path information;

[0018] Statistics are performed based on each subsystem in the call chain to obtain a list of impact requests corresponding to each subsystem.

[0019] Optionally, the step of determining a target impact factor according to the changed entity information includes:

[0020] If the changed entity information is the number of changed entities, the total number of entities of the target changed subsystem is obtained, and the number of changed entities is divided by the total number of entities to obtain a target impact factor;

[0021] If the changed entity information is a target changed entity, a weight value corresponding to the target changed entity is obtained, and the weight values ​​are summed to obtain a target impact factor.

[0022] Optionally, the step of obtaining a historical average request volume of the target impact request within the target impact time period includes:

[0023] Obtaining the current date, and determining the target historical date according to the current date and a preset number of days;

[0024] Obtain the total historical request volume of the target impact request within the target impact time period of the target historical date;

[0025] The historical average request volume is calculated based on the historical total request volume and the preset number of days.

[0026] Optionally, the step of determining a corresponding risk level according to the estimated impact request amount includes:

[0027] Matching the estimated impact request amount with a preset request amount interval of the target change subsystem to determine the target request amount interval in which the estimated impact request amount is located;

[0028] According to a preset mapping relationship between the request volume interval of the target change subsystem and the risk level, the risk level corresponding to the target request volume interval is determined.

[0029] Optionally, the risk assessment method further includes:

[0030] Get the request fault tolerance corresponding to each subsystem;

[0031] According to the mapping relationship between the request fault tolerance and the preset threshold range and the risk level, the request volume interval corresponding to each risk level is calculated;

[0032] Based on the calculation results, a mapping relationship between the request volume range and risk level of each subsystem is constructed.

[0033] In addition, to achieve the above object, the present invention also provides a risk assessment device, the risk assessment device comprising:

[0034] A first acquisition module, configured to acquire change information according to the subsystem change request when receiving the subsystem change request;

[0035] A second acquisition module is used to determine a target impact request and a target impact factor according to the change information, and obtain a historical average request volume of the target impact request;

[0036] The risk assessment module is used to calculate the estimated impact request volume according to the historical average request volume and the target impact factor, and determine the corresponding risk level according to the estimated impact request volume.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a risk assessment device, which includes: a memory, a processor, and a risk assessment program stored in the memory and executable on the processor, and the risk assessment program implements the steps of the risk assessment method described above when executed by the processor.

[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a risk assessment program is stored, and when the risk assessment program is executed by a processor, the steps of the risk assessment method described above are implemented.

[0039] The present invention provides a risk assessment method, device, equipment and computer-readable storage medium. When a subsystem change request is received, the change information carried in the subsystem change request is obtained; then, the target impact request and the target impact factor are determined according to the change information, and the historical average request volume of the target impact request is obtained; then, the estimated impact request volume is calculated according to the historical average request volume and the target impact factor, and the corresponding risk level is determined according to the estimated impact request volume. In the present invention, the target impact request and the target impact factor are determined based on the change information of the subsystem, and then the estimated impact request volume corresponding to the target impact request is estimated by combining the target impact factor and the historically monitored request volume data, and then the risk level is determined based on the estimated impact request volume. Through the above method, intelligent assessment of change risk is achieved. Compared with manual assessment in the prior art, the efficiency of change risk assessment and the accuracy of change risk assessment results can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;

[0041] Figure 2 This is a schematic diagram of the process of the first embodiment of the risk assessment method of the present invention;

[0042] Figure 3 Schematic diagram of functional modules of the first embodiment of the risk assessment device of the present invention.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0046] The risk assessment device in the embodiment of the present invention may be a smart phone, or may be a terminal device such as a PC (Personal Computer), a tablet computer, or a portable computer.

[0047] like Figure 1As shown, the risk assessment device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0048] Those skilled in the art will understand that Figure 1 The structure of the risk assessment device shown in the figure does not constitute a limitation on the risk assessment device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0049] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, and a risk assessment program.

[0050] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client and communicate data with the client; and the processor 1001 can be used to call the risk assessment program stored in the memory 1005 and execute the various steps of the following risk assessment method.

[0051] Based on the above hardware structure, various embodiments of the risk assessment method of the present invention are proposed.

[0052] The invention provides a risk assessment method.

[0053] Reference Figure 2 , Figure 2 Schematic diagram of the first embodiment of the risk assessment method of the present invention.

[0054] In this embodiment, the risk assessment method includes:

[0055] Step S10, when receiving a subsystem change request, obtaining change information according to the subsystem change request;

[0056] The risk assessment method of this embodiment is implemented by a risk assessment device, which is described using a server as an example.

[0057] In this embodiment, when the staff needs to change one or more subsystems in the service or product, they can input relevant change information in the corresponding software or App, such as the identifier of the subsystem to be changed (such as name or number) and the entity information to be changed in the subsystem (such as quantity or entity number). When the input is completed, the subsystem change request can be triggered. At this time, when the server receives the subsystem change request, it obtains the change information according to the subsystem change request. Among them, the change information includes the target change subsystem identifier, the change entity information and the change time information. The target change subsystem identifier is the name or number of the subsystem to be changed, the change entity information is the number of entities to be changed or the entity number to be changed, and the change time information includes the change start time, the change completion time and the rollback operation time. The change start time is the time when the subsystem change is started, the change completion time is the time when the subsystem change is completed, and the rollback operation time is the time after the subsystem change, when problems may occur and the rollback operation is completed. Since the staff inputs the identifier of the subsystem to be changed and the entity information to be changed in the subsystem when triggering the subsystem change request, the target change subsystem identifier and the target change entity information can be directly obtained from the subsystem change request. The change time information is determined based on the historical change record of the target change subsystem corresponding to the target change subsystem identifier. Specifically, the historical change time information of the target change subsystem can be obtained first, wherein the historical change time information includes the historical change start time and the historical change duration; then, the historical change start time and the historical change duration are counted respectively, and the change start time and the change duration are determined based on the statistical results. For example, the mode of the historical change start time obtained by statistics can be determined as the change start time, and the mode of the historical change duration obtained by statistics can be determined as the change duration. The specific determination rules can be flexibly set according to the actual situation; finally, the change completion time is calculated based on the change start time and the change duration (change completion time = change start time + change duration), and the change rollback time is obtained based on the change completion time and the preset rollback interval time (change rollback time = change completion time + preset rollback interval time). For example, if the start time of the last 10 change operations is counted and 7 of them occurred at 8 pm, then this time will be used as the start time of the change; if most of the historical changes took about 10 minutes, that is, the mode of the historical change duration is 10 minutes, then the change completion time is determined to be 8:10; and the rollback time is generally difficult to count, then the default set preset rollback interval time is used, such as 5 minutes, and the rollback operation time can be determined to be 8:15.

[0058] Step S20, determining a target impact request and a target impact factor according to the change information, and obtaining a historical average request volume of the target impact request;

[0059] Then, the target impact request and the target impact factor are determined according to the change information, and the historical average request volume of the target impact request is obtained. The target impact request is the request that will be affected during the change process of the target change subsystem.

[0060] Specifically, the target impact request corresponding to the target change subsystem can be obtained by querying the impact request list corresponding to each subsystem obtained by pre-statistics; the target impact factor is determined according to the change entity information; then, whether the target change subsystem adopts the traffic switching mechanism is detected to obtain the detection result; according to the detection result and the change time information, the target impact time period is determined; and the historical average request volume of the target impact request in the target impact time period is obtained. The specific execution process can refer to the second embodiment described below, which will not be repeated here.

[0061] Step S30, calculating an estimated impact request volume according to the historical average request volume and the target impact factor, and determining a corresponding risk level according to the estimated impact request volume.

[0062] Finally, the estimated impact request volume is calculated based on the historical average request volume and the target impact factor, and the corresponding risk level is determined based on the estimated impact request volume.

[0063] The estimated impact request volume is the product of the sum of the historical average request volumes and the target impact factor. That is, f(x) = I*Σp i , where f(x) is the estimated impact request amount, I is the target impact factor, and p i Represents the historical average request volume of target impact request i.

[0064] Specifically, the step of “determining the corresponding risk level according to the estimated impact request volume” includes:

[0065] Step a31, matching the estimated impact request volume with a preset target change subsystem request volume interval to determine the target request volume interval in which the estimated impact request volume is located;

[0066] Step a32, determining the risk level corresponding to the target request volume interval according to the preset mapping relationship between the request volume interval and the risk level of the target change subsystem.

[0067] In this embodiment, the mapping relationship between different request quantity intervals of each subsystem and the risk level can be pre-set. When determining the risk level, the request quantity interval of the target change subsystem can be obtained, and the estimated impact request quantity can be matched with the preset request quantity interval of the target change subsystem to determine the request quantity interval in which the estimated impact request quantity is located, which is recorded as the target request quantity interval. Then, based on the mapping relationship between the preset request quantity interval of the target change subsystem and the risk level, the risk level corresponding to the target request quantity interval is determined.

[0068] Furthermore, after determining the risk level, a corresponding monitoring strategy can be adopted based on the risk level to monitor the subsystem change process, wherein the formulation of the monitoring strategy can be based on actual conditions and different risk monitoring strategies can be formulated for different risk levels, which is not specifically limited here.

[0069] Furthermore, after determining the risk level, the reminder method corresponding to the risk level can be determined according to the pre-set mapping relationship between the risk level and the reminder method, and then the risk reminder is made according to the reminder method. Among them, the reminder method includes but is not limited to the reminder means (such as text prompts, voice prompts, etc.) and the number of reminders, so that the staff can intuitively obtain the risk level.

[0070] In addition, it should be noted that if multiple subsystems in a service or product are updated, the risk level of each subsystem can be output as a reminder, or the highest risk level can be selected for output reminder.

[0071] To facilitate understanding of the embodiments of the present invention, examples are given below:

[0072] If the target change subsystem is S2, its corresponding target impact request includes request a2 for product A and request b2 for product B, the entity information to be changed is n entities to be changed, and the target change subsystem S2 includes m entities, and the target impact factor I is determined to be n / m, that is, in this embodiment, the target impact factor can be obtained by dividing the number of entities to be changed by the total number of entities in the target change system, and then the historical average request volume p1 of the target impact request a2 is obtained, and the historical average request volume of the target impact request b2 is obtained, recorded as p2. Therefore, the estimated impact request volume of the target impact requests a2 and b2 can be calculated as n / m*(p1+p2), and then the corresponding risk level can be determined based on the estimated impact request volume.

[0073] The embodiment of the present invention provides a risk assessment method. When a subsystem change request is received, the change information carried in the subsystem change request is obtained; then, the target impact request and the target impact factor are determined according to the change information, and the historical average request volume of the target impact request is obtained; then, the estimated impact request volume is calculated according to the historical average request volume and the target impact factor, and the corresponding risk level is determined according to the estimated impact request volume. In the embodiment of the present invention, the target impact request and the target impact factor are determined based on the change information of the subsystem, and then the estimated impact request volume corresponding to the target impact request is estimated by combining the target impact factor and the historically monitored request volume data, and then the risk level is determined based on the estimated impact request volume. Through the above method, the intelligent assessment of the change risk is realized. Compared with the manual assessment in the prior art, the efficiency of the change risk assessment and the accuracy of the change risk assessment results can be improved. In addition, the present invention can not only automatically change, but also conduct risk assessment for different services in combination with the change information of each subsystem of the service to achieve the change, which is more targeted and meets the accuracy of the changes to each service.

[0074] Furthermore, based on the above-mentioned first embodiment, a second embodiment of the risk assessment method of the present invention is proposed.

[0075] In this embodiment, the change information includes the target change subsystem identifier, change entity information and change time information, and step S20 includes:

[0076] Step a21, querying the impact request list corresponding to each subsystem obtained by pre-statistication, and obtaining the target impact request corresponding to the target change subsystem identifier;

[0077] In this embodiment, the change information includes the target change subsystem identifier, change entity information and change time information. The target change subsystem identifier can be the name or number of the target change subsystem, and the change time information includes the change start time, change completion time and rollback operation time.

[0078] The process of obtaining the target impact request is as follows: first query the impact request list corresponding to each subsystem obtained in advance, wherein the impact request list corresponding to each subsystem is a list of requests that may be affected by the change of each subsystem, which is based on the call path information statistics of the subsystem called by each type of request during the processing process. The specific execution process can refer to the third embodiment described below.

[0079] Step a22, determining a target impact factor according to the changed entity information;

[0080] Determine the target impact factor based on the changed entity information.

[0081] Specifically, step a22 includes:

[0082] Step a221, if the changed entity information is the number of changed entities, then the total number of entities of the target changed subsystem is obtained, and the number of changed entities is divided by the total number of entities to obtain a target impact factor;

[0083] Step a222: If the changed entity information is a target changed entity, a weight value corresponding to the target changed entity is obtained, and the weight values ​​are summed to obtain a target impact factor.

[0084] In this embodiment, the target impact factor is determined by, but not limited to:

[0085] 1) If the changed entity information is the number of changed entities, the total number of entities of the target changed subsystem is obtained, and the number of changed entities is divided by the total number of entities to obtain the target impact factor, that is, the target impact factor = the number of changed entities / the total number of entities;

[0086] 2) If the changed entity information is the target changed entity, that is, the entity information (such as number, etc.) to be changed, then the weight value corresponding to the target changed entity is obtained according to the pre-set weight values ​​of each entity in the subsystem, and the weight values ​​are summed to obtain the target impact factor. That is, the target impact factor is the sum of the weight values ​​of the target changed entities.

[0087] Step a23, detecting whether the target change subsystem corresponding to the target change subsystem identifier adopts a flow switching mechanism, and obtaining a detection result;

[0088] Step a24, determining a target impact time period according to the detection result and the change time information;

[0089] Step a25, obtaining the historical average request volume of the target impact request within the target impact time period.

[0090] The process of obtaining the historical average request volume of target impact requests is as follows:

[0091] First, detect whether the target change subsystem corresponding to the target change subsystem identifier adopts the traffic switching mechanism to obtain the detection result, and then determine the target impact time period based on the detection result and the change time information. Among them, the change time information includes the change start time (recorded as t1), the change completion time (recorded as t2) and the rollback operation time (recorded as t3). The change start time is the time when the subsystem change is started, the change completion time is the time when the subsystem change is completed, and the rollback operation time is the time when the subsystem is changed, problems may occur and the rollback operation is completed.

[0092] If the detection result is that the target change subsystem adopts the traffic switching mechanism, the traffic will be cut off at time t1 and cut in at time t2. At this time, the target impact time period is determined to be t3-t2, that is, the time period from the change completion time to the rollback operation time; if the detection result is that the target change subsystem does not adopt the traffic switching mechanism, the target impact time period is determined to be t3-t1, that is, the time period from the change start time to the rollback operation time.

[0093] After determining the target impact time period, a historical average request volume of the target impact request in the target impact time period is obtained.

[0094] As one of the methods to obtain the historical average request volume, the total request volume of the target impact request within a preset time period (such as nearly n months) can be directly obtained, and then the total request volume is divided by the total number of days corresponding to n months to obtain the historical average request volume of the target impact request within the target impact time period.

[0095] As another way to obtain the historical average request volume, the total request volume of the target impact request in a target impact time period of a preset specific number of days is obtained, and then the total request volume is divided by the total number of specific days to obtain the historical average request volume of the target impact request in the target impact time period. Specifically, step a25 includes:

[0096] Step a251, obtaining the current date, and determining the target historical date according to the current date and a preset number of days;

[0097] Step a252, obtaining the total historical request volume of the target impact request within the target impact time period of the target historical date;

[0098] Step a253, calculating the historical average request volume based on the historical total request volume and the preset number of days.

[0099] In this embodiment, in order to improve the accuracy of estimating the affected request volume, the request volume on a specific date can be selected based on the following principles to calculate the historical average request volume: 1. The closer the historical monitoring data is to the current change date, the more it can reflect the service request volume during the change period; 2. Try to reduce the impact of sudden traffic peaks and low peaks caused by holidays, rest days or event days on the estimated volume; 3. The collected data history is generally not more than the past 2 months. Therefore, k=2 months past the current date can be selected. i (i<7) days of historical data.

[0100] Specifically, the current date is obtained first, and the target historical date is determined according to the current date and a preset number of days, wherein the preset number of days is 1, 2, 4, 8, 16, 32, and 64 days from the current date.

[0101] Then, the historical total request volume of the target impact request within the target impact time period of the target historical date is obtained, and then the historical average request volume is calculated based on the historical total request volume and the preset number of days, where the historical average request volume = historical total request volume / total number of days corresponding to the preset number of days (7 days).

[0102] It can be understood that by selecting historical data within a specific date to calculate the historical average request volume of target impact requests, compared to randomly selecting a preset time period, the accuracy of the historical average request volume calculation results can be improved, thereby improving the accuracy of the change risk assessment results, and faster calculation efficiency can be achieved while ensuring the accuracy of the historical average request volume calculation results, thereby ensuring a better balance between the accuracy and efficiency of the change risk assessment results.

[0103] Furthermore, based on the above second embodiment, a third embodiment of the risk assessment method of the present invention is proposed.

[0104] In this embodiment, before the above step a21, the risk assessment method further includes:

[0105] Step A, obtaining call path information of each type of request in advance, and obtaining a call chain of each type of request according to the call path information;

[0106] In this embodiment, the process of obtaining the impact request list corresponding to each subsystem is as follows:

[0107] Pre-acquire the call path information of each type of request, wherein the call path information is generated when the request calls each subsystem during the processing. It can be understood that the call path information may include multiple ones, which may be composed of a request identifier, a current calling subsystem identifier and a destination sending subsystem identifier. The request identifier is globally unique and may be composed of a unique identity ID (number), a starting calling subsystem identifier and a request type number.

[0108] Specifically, current product services are generally composed of multiple subsystems, that is, the processing of requests usually requires calling multiple subsystems. The common methods used for calling between subsystems are RPC (Romote Procedure Call) or message-based event-driven methods. Regardless of which method is used, at the initial entry of the product service request, when the request is received, a globally unique identity ID, such as uID, can be generated for the request, and then the ID is added with some special fields, such as a field used to indicate which subsystem is the starting subsystem for the current message (i.e., the starting calling subsystem identifier) ​​and which type of service request field this message belongs to (i.e., the request type number), to form a request identifier, recorded as traceId (trace ID), such as 111-S1-a1, where field 111 is a globally unique ID, S1 is the starting subsystem, and a1 indicates that this request is an a1 service request. When the service request is transferred from the S1 subsystem to the S2 subsystem, this global traceId is added to the RPC call parameters or the message sent, and the source address S1 (i.e. the current calling subsystem identifier, recorded as srcAdd) and the destination address S2 (i.e. the destination sending subsystem identifier, recorded as dstAdd) of this call are also attached. When this request is processed in S2 and needs to be transferred to the next subsystem for processing, this information is also attached. Then, these requests contain a triple of call information {traceId, srcAdd, dstAdd}. Assuming that for the above traceId: 111-S1-a1, all requests based on this traceId form the following sequence of triple information, {111-S1-a1, S1, S2}, {111-S1-a1, S2, S3}, {111-S1-a1, S3, S4}, and the corresponding call path information can be obtained based on the request identifier traceId.

[0109] Then, the call chain of each type of request is obtained according to the call path information. For example, in the above example, the call chain of request a1 is: S1->S2->S3->S4.

[0110] Step B: performing statistics based on each subsystem in the call chain as a dimension to obtain a list of impact requests corresponding to each subsystem.

[0111] Then, statistics are performed based on each subsystem in the call chain to obtain a list of impact requests corresponding to each subsystem.

[0112] Assume that the request call chain of product A a1 passes through subsystems S1, S2, S3, S4, the request call chain of a2 passes through subsystems S1, S3, S4, S5, the request call chain of product B b1 passes through subsystems S6, S3, S7, and the request call chain of b2 passes through subsystems S7, S2, S3, S8. That is, the obtained call chain list is as follows:

[0113] a1: {S1, S2, S3, S4}

[0114] a2: {S1, S3, S4, S5}

[0115] b1: {S6, S3, S7}

[0116] b2: {S7, S2, S3, S8}

[0117] By taking each subsystem in the call chain list as a dimension for statistics, we can get the impact request list corresponding to each subsystem, as follows:

[0118] S1: (a1, a2),

[0119] S2: (a1, b2),

[0120] S3: (a1, a2, b1, b2),

[0121] S4: (a1, a2),

[0122] S5: (a2),

[0123] S6: (b1),

[0124] S7: (b1, b2),

[0125] S8:(b2).

[0126] In this embodiment, by analyzing and counting the call path information corresponding to each type of request, a list of impact requests corresponding to each subsystem is obtained, that is, a list of requests that may be affected by changes in each subsystem, thereby facilitating subsequent queries on target impact requests corresponding to the target change subsystem.

[0127] Furthermore, based on the above-mentioned first embodiment, a fourth embodiment of the risk assessment method of the present invention is proposed.

[0128] In this embodiment, before the above step a31, the risk assessment method further includes:

[0129] Step C, obtaining the requested fault tolerance corresponding to each subsystem;

[0130] In this embodiment, the request fault tolerance corresponding to each subsystem is obtained. The request fault tolerance can be represented by the product of the total number of requests and the target request success rate. For example, a subsystem with a daily request success rate target of 99.99% receives 2.5 million requests a day, then it can allow a maximum of 250 errors per day, that is, the request fault tolerance is 250.

[0131] Step D, calculating the request volume interval corresponding to each risk level according to the mapping relationship between the request fault tolerance and the preset threshold range and the risk level;

[0132] Then, according to the mapping relationship between the request tolerance and the preset threshold range and the risk level, the request volume interval corresponding to each risk level is calculated. Specifically, according to the mapping relationship between the preset threshold range and the risk level, the threshold range corresponding to each risk level is determined, and then the request tolerance is multiplied by the boundary value of the threshold range corresponding to each risk level, so as to obtain the request volume interval corresponding to each risk level.

[0133] For example, the impact request volume can be defined as 20% or less (including 20%) of the maximum request tolerance as low risk, 20%-50% (excluding 20%, including 50%) as medium risk, 50-80% (excluding 50% and 80%) as high risk, and 80% or more (including 80%) as serious risk. Correspondingly, the request tolerance can be multiplied by the threshold range to obtain the request volume interval corresponding to each risk level. For example, in the above example, 250*20%=50 or less (including 50) is low risk, 50-125 (excluding 50, including 125) is medium risk, 125-200 (excluding 125 and 200) is high risk, and 200 or more (including 200) is serious risk.

[0134] Step E: construct a mapping relationship between the request volume interval and the risk level of each subsystem based on the calculation results.

[0135] Then, a mapping relationship between the request volume interval and the risk level of each subsystem is constructed according to the calculation result. The mapping relationship may be in a table form for easy query.

[0136] In this embodiment, by constructing a mapping relationship between the request volume interval and the risk level of each subsystem, it is convenient to subsequently determine the corresponding risk level based on the calculated estimated impact request volume. In addition, in the embodiment of the present invention, for subsystems of different services, since their request fault tolerance amounts are different, even if the threshold range of the risk level is the same, the request volume intervals of each subsystem finally calculated are also different, so that each service subsystem corresponds to its own request volume interval, rather than all subsystems uniformly setting the request volume interval, further improving the accuracy of subsequent risk assessments of various services.

[0137] The invention also provides a risk assessment device.

[0138] Reference Figure 3 , Figure 3 Schematic diagram of functional modules of the first embodiment of the risk assessment device of the present invention.

[0139] like Figure 3 As shown, the risk assessment device comprises:

[0140] A first acquisition module 10 is used to acquire change information according to the subsystem change request when receiving the subsystem change request;

[0141] A second acquisition module 20 is used to determine a target impact request and a target impact factor according to the change information, and to acquire a historical average request volume of the target impact request;

[0142] The risk assessment module 30 is used to calculate the estimated impact request volume according to the historical average request volume and the target impact factor, and determine the corresponding risk level according to the estimated impact request volume.

[0143] Further, the change information includes a target change subsystem identifier, change entity information and change time information, and the second acquisition module 20 includes:

[0144] A query unit, used for querying a list of impact requests corresponding to each subsystem obtained by pre-statistication, and obtaining a target impact request corresponding to the target change subsystem identifier;

[0145] A first determining unit, configured to determine a target impact factor according to the changed entity information;

[0146] A detection unit, used to detect whether the target change subsystem corresponding to the target change subsystem identifier adopts a flow switching mechanism, and obtain a detection result;

[0147] A second determining unit, configured to determine a target impact time period according to the detection result and the change time information;

[0148] The first acquisition unit is used to acquire the historical average request volume of the target impact request within the target impact time period.

[0149] Furthermore, the second acquisition module 20 further includes:

[0150] A second acquisition unit is used to pre-acquire the call path information of each type of request, and obtain the call chain of each type of request according to the call path information;

[0151] The statistical unit is used to perform statistics based on each subsystem in the call chain as a dimension to obtain a list of impact requests corresponding to each subsystem.

[0152] Further, the first determining unit is specifically configured to:

[0153] If the changed entity information is the number of changed entities, the total number of entities of the target changed subsystem is obtained, and the number of changed entities is divided by the total number of entities to obtain a target impact factor;

[0154] If the changed entity information is a target changed entity, a weight value corresponding to the target changed entity is obtained, and the weight values ​​are summed to obtain a target impact factor.

[0155] Furthermore, the first acquiring unit is specifically used for:

[0156] Obtaining the current date, and determining the target historical date according to the current date and a preset number of days;

[0157] Obtain the total historical request volume of the target impact request within the target impact time period of the target historical date;

[0158] The historical average request volume is calculated based on the historical total request volume and the preset number of days.

[0159] Furthermore, the risk assessment module includes:

[0160] An interval matching unit, used for matching the estimated impact request amount with a preset request amount interval of the target change subsystem, and determining the target request amount interval in which the estimated impact request amount is located;

[0161] The third determining unit is used to determine the risk level corresponding to the target request volume interval according to a preset mapping relationship between the request volume interval and the risk level of the target change subsystem.

[0162] Furthermore, the risk assessment device further comprises:

[0163] The third acquisition module is used to obtain the requested fault tolerance corresponding to each subsystem;

[0164] A calculation module, used to calculate the request volume interval corresponding to each risk level according to the mapping relationship between the request fault tolerance and the preset threshold range and the risk level;

[0165] The construction module is used to construct a mapping relationship between the request volume interval and the risk level of each subsystem according to the calculation results.

[0166] Among them, the functional implementation of each module in the above-mentioned risk assessment device corresponds to each step in the above-mentioned risk assessment method embodiment, and its functions and implementation processes are no longer repeated here one by one.

[0167] The present invention also provides a computer-readable storage medium having a risk assessment program stored thereon, and when the risk assessment program is executed by a processor, the steps of the risk assessment method described in any of the above embodiments are implemented.

[0168] The specific embodiments of the computer-readable storage medium of the present invention are substantially the same as the embodiments of the risk assessment method described above, and are not described in detail herein.

[0169] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0170] 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.

[0171] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0172] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A risk assessment method, characterized in that: Applied in the financial field, the risk assessment method includes: When receiving a subsystem change request, acquiring change information according to the subsystem change request; the change information includes a target change subsystem identifier, change entity information, and change time information; Query the impact request list corresponding to each subsystem obtained by pre-statistication to obtain the target impact request corresponding to the target change subsystem identifier; the target impact request is a request that will be affected during the change of the target change subsystem; If the changed entity information is the number of changed entities, the total number of entities of the target changed subsystem is obtained, and the number of changed entities is divided by the total number of entities to obtain the target impact factor; if the changed entity information is the target changed entity, the weight value corresponding to the target changed entity is obtained, and the weight values ​​are summed to obtain the target impact factor; Detecting whether the target change subsystem corresponding to the target change subsystem identifier adopts a flow switching mechanism, and obtaining a detection result; Determine a target impact time period according to the detection result and the change time information; Obtain a historical average request volume of the target impact request within the target impact time period; An estimated impact request volume is calculated based on the historical average request volume and the target impact factor, and a corresponding risk level is determined based on the estimated impact request volume.

2. The risk assessment method according to claim 1, characterized in that: The risk assessment method further comprises: Acquire call path information of each type of request in advance, and obtain a call chain of each type of request according to the call path information; Statistics are performed based on each subsystem in the call chain to obtain a list of impact requests corresponding to each subsystem.

3. The risk assessment method according to claim 1, characterized in that: The step of obtaining the historical average request volume of the target impact request within the target impact time period includes: Obtaining the current date, and determining the target historical date according to the current date and a preset number of days; Obtain the total historical request volume of the target impact request within the target impact time period of the target historical date; The historical average request volume is calculated based on the historical total request volume and the preset number of days.

4. The risk assessment method according to any one of claims 1 to 3, characterized in that: The step of determining the corresponding risk level according to the estimated impact request amount comprises: Matching the estimated impact request amount with a preset request amount interval of the target change subsystem to determine the target request amount interval in which the estimated impact request amount is located; According to a preset mapping relationship between the request volume interval of the target change subsystem and the risk level, the risk level corresponding to the target request volume interval is determined.

5. The risk assessment method according to claim 4, characterized in that: The risk assessment method further comprises: Get the request fault tolerance corresponding to each subsystem; According to the mapping relationship between the request fault tolerance and the preset threshold range and the risk level, the request volume interval corresponding to each risk level is calculated; Based on the calculation results, a mapping relationship between the request volume range and risk level of each subsystem is constructed.

6. A risk assessment device, characterized in that: Applied in the financial field, the risk assessment device comprises: A first acquisition module is used to acquire change information according to the subsystem change request when receiving the subsystem change request; the change information includes a target change subsystem identifier, change entity information and change time information; The second acquisition module is used to query the impact request list corresponding to each subsystem obtained by pre-statistics, and obtain the target impact request corresponding to the target change subsystem identifier; the target impact request is the request that will be affected during the change of the target change subsystem; if the change entity information is the number of change entities, the total number of entities in the target change subsystem is obtained, and the number of change entities and the total number of entities are divided to obtain the target impact factor; if the change entity information is the target change entity, the weight value corresponding to the target change entity is obtained, and the weight value is added to obtain the target impact factor; detect whether the target change subsystem corresponding to the target change subsystem identifier adopts a traffic switching mechanism to obtain a detection result; determine the target impact time period based on the detection result and the change time information; obtain the historical average request volume of the target impact request within the target impact time period; The risk assessment module is used to calculate the estimated impact request volume according to the historical average request volume and the target impact factor, and determine the corresponding risk level according to the estimated impact request volume.

7. A risk assessment device, characterized in that: The risk assessment device comprises: a memory, a processor, and a risk assessment program stored in the memory and executable on the processor, wherein the risk assessment program implements the steps of the risk assessment method according to any one of claims 1 to 5 when executed by the processor.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a risk assessment program, and when the risk assessment program is executed by a processor, the steps of the risk assessment method according to any one of claims 1 to 5 are implemented.