An asynchronous message capacity evaluation method and system

By developing a capacity assessment method and apparatus for asynchronous messaging systems, the problem of insufficient capacity in asynchronous messaging systems within commercial bank IT systems was solved, ensuring system stability and customer satisfaction.

CN115883425BActive Publication Date: 2025-11-21CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211655239.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-22
Publication Date
2025-11-21
Estimated Expiration
2042-12-22

AI Technical Summary

Technical Problem

Insufficient capacity of the asynchronous messaging system in commercial bank IT systems prevents business systems from providing stable and satisfactory services to customers.

Method used

By analyzing the asynchronous message processing mechanism and subscription relationship under the publish-subscribe message model, performance capacity evaluation indicators and evaluation methods are designed, and a simulated message sending and receiving device is provided to assist in the capacity evaluation of the asynchronous message system.

Benefits of technology

This effectively avoids the problem of insufficient capacity in asynchronous messaging systems, ensuring the stability of commercial banking systems and customer satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883425B_ABST
    Figure CN115883425B_ABST
Patent Text Reader

Abstract

The application discloses an asynchronous message capacity evaluation method and system. When a simulation message sent by a sending end is received, a subscription relationship is determined. The subscription relationship is a subscription relationship of sending of the sending end and receiving of a receiving end of the sending end in an asynchronous message system under a publish-subscribe message model. According to the subscription relationship, a subscription scene corresponding to the subscription relationship is simulated. The simulation message is sent to the receiving end under the subscription scene. Capacity evaluation of the simulation message is performed by the receiving end to obtain an evaluation result. Through the above scheme, the asynchronous message processing mechanism and the subscription relationship under the publish-subscribe message model are analyzed. Performance capacity evaluation indexes and evaluation methods for the asynchronous message system are designed. An apparatus for simulating message sending and receiving is provided to assist in completing capacity evaluation of the asynchronous message system, so that the asynchronous message system capacity is avoided to be insufficient, and the commercial bank business system can stably provide satisfactory services for customers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and more specifically, to an asynchronous message capacity assessment method and system. Background Technology

[0002] With the demands of business development and technological advancements, commercial banks' Internet Technology (IT) systems utilize asynchronous messaging systems to address information synchronization issues between multiple business systems. This enables the integration of technology, business, and data, providing conditions for cross-departmental and cross-business coordinated management and application service scenarios. Specifically, asynchronous messaging systems support asynchronous message transmission and management between different business systems, achieving a distributed collaborative system.

[0003] The timeliness of response and the stability of operation of commercial bank IT systems are extremely important. With the continuous increase in the number of users and data volume, problems such as insufficient capacity of asynchronous messaging systems may arise, causing the overall commercial bank business system to be unable to stably provide satisfactory services to customers.

[0004] Therefore, how to avoid insufficient capacity of asynchronous messaging systems and enable commercial banking systems to stably provide satisfactory services to customers is a problem that this application urgently needs to solve. Summary of the Invention

[0005] In view of this, this application discloses an asynchronous message capacity assessment method and system, which aims to complete the capacity assessment of the asynchronous message system, thereby avoiding insufficient capacity of the asynchronous message system and enabling commercial banking business systems to stably provide services that satisfy customers.

[0006] To achieve the above objectives, the disclosed technical solution is as follows:

[0007] The first aspect of this application discloses an asynchronous message capacity assessment method, which is applied to an asynchronous message system, and the method includes:

[0008] When a simulated message is received from the sender, a subscription relationship is determined; the simulated message represents the concurrent processing capability, response time, resource utilization, and message queue performance data of the asynchronous messaging system; the subscription relationship is the subscription relationship between the sender and receiver of the asynchronous messaging system under the publish-subscribe message model.

[0009] Based on the subscription relationship, simulate the subscription scenario corresponding to the subscription relationship;

[0010] In the subscription scenario, the simulated message is sent to the receiving end, which then performs a capacity assessment on the model message and obtains the assessment result.

[0011] Preferably, the process of obtaining the response time of the asynchronous message system comprises:

[0012] determining the time when the sending end sends the first message as the time start point, and determining the time when the receiving end receives all the messages as the time end point;

[0013] taking the time start point and the time end point as the time period of message sending;

[0014] determining all the messages sent by the sending end as the base number within the time period;

[0015] calculating the response time of the asynchronous message system through the base number.

[0016] Preferably, in the subscription scenario, the simulated message is sent to the receiving end to enable the receiving end to perform capacity evaluation on the model message to obtain an evaluation result, which comprises:

[0017] in the subscription scenario, the simulated message is sent to the receiving end to enable the receiving end to perform capacity evaluation on the model message to obtain performance data of the asynchronous message system under different concurrency; the performance data at least includes the resource usage rate of the system server CPU, the memory usage rate, and the message queue condition;

[0018] when it is monitored that the message queue is in a non-piling state, or the resource usage rate of the system server CPU is within a preset threshold range, and the memory usage rate is less than a preset usage rate, an evaluation result representing that the capacity bottleneck of the asynchronous message system is not reached is obtained;

[0019] when it is monitored that the message queue is in a piling state, the resource usage rate of the system server CPU is not within the preset threshold range, or the memory usage rate is greater than or equal to the preset usage rate, an evaluation result representing that the capacity bottleneck of the asynchronous message system is reached is obtained.

[0020] The second aspect of the application discloses an asynchronous message capacity evaluation method, which is applied to a sending end and comprises:

[0021] sending a simulated message to an asynchronous message system to enable the asynchronous message system to determine a subscription relationship and simulate a subscription scenario corresponding to the subscription relationship through the subscription relationship; the simulated message represents indicators of the concurrent processing capacity of the asynchronous message system and the response time of the asynchronous message system; the subscription relationship is a subscription relationship between the sending end and a receiving end accessing the asynchronous message system under a publish-subscribe message model;

[0022] In the subscription scenario, the simulation message is sent to the receiving end according to the subscription relationship through the asynchronous message system, so that the receiving end obtains an evaluation result by performing capacity evaluation on the simulation message in the subscription scenario.

[0023] Preferably, the process of sending the simulation message to the asynchronous message system comprises:

[0024] determining a connection type; the connection type at least comprises a HTTP long connection type or a HTTP short connection type; the HTTP long connection type is an uninterrupted connection for sending and receiving multiple HTTP requests / answers through a same TCP connection; the HTTP short connection type is a connection that is established once for each communication and is interrupted after the task is completed;

[0025] establishing a connection according to the connection type and the asynchronous message system;

[0026] reading new parameter information from a predetermined message parameter table in the case of establishing the connection with the asynchronous message system;

[0027] obtaining a parameter value corresponding to the parameter information, and replacing a field in a preset template with the parameter value to obtain a message body;

[0028] determining the message body as a simulation message, sending the simulation message to the asynchronous message system, and judging the connection type;

[0029] if the connection type is the HTTP long connection type, returning to perform the step of establishing the connection according to the connection type and the asynchronous message system;

[0030] if the connection type is the HTTP short connection type, closing the connection between the asynchronous message system.

[0031] The third aspect of the present application discloses an asynchronous message capacity evaluation method, which is applied to a receiving end, and comprises:

[0032] receiving a simulation message forwarded by an asynchronous message system and recording; the simulation message is obtained by instantiating a preset template by replacing a field in the template with a parameter value in a subscription scenario; the subscription scenario is obtained by simulating a subscription relationship between sending and receiving of a sending end and the receiving end through the asynchronous message system in a publish-subscribe message model; the simulation message represents an index of concurrent processing capability of the asynchronous message system, an index of response time of the asynchronous message system, a resource utilization rate index, and performance data of a message queue.

[0033] Preferably, the process of forwarding the analog message and recording by the receiving asynchronous message system comprises:

[0034] determining a connection type; the connection type at least comprises a HTTP long connection type or a HTTP short connection type; the HTTP long connection type is a non-interrupted connection for sending and receiving multiple HTTP requests / answers through the same TCP connection; the HTTP short connection type is a connection for establishing once for each communication and interrupting after the task is finished;

[0035] establishing a connection according to the connection type and the asynchronous message system;

[0036] receiving the analog message and recording by the asynchronous message system in the case of establishing a connection with the asynchronous message system;

[0037] monitoring whether there is a new analog message;

[0038] if there is a new analog message, recording the new analog message into a received message record table and judging the connection type with the asynchronous message system;

[0039] if the connection type is the HTTP long connection type, returning to the step of monitoring whether there is a new analog message;

[0040] if the connection type is the HTTP short connection type, closing the connection between the asynchronous message system.

[0041] The fourth aspect of the present application discloses an asynchronous message capacity evaluation system, which is applied to asynchronous message system capacity evaluation, and comprises:

[0042] a determination unit, configured to determine a subscription relationship when receiving an analog message sent by a sending end; the analog message represents an index of concurrent processing capability of an asynchronous message system, an index of response time of the asynchronous message system, a resource usage rate index and performance data of a message queue; the subscription relationship is a subscription relationship of sending and receiving of the sending end and a receiving end accessing the asynchronous message system under a publish / subscribe message model;

[0043] a simulation unit, configured to simulate a subscription scenario corresponding to the subscription relationship according to the subscription relationship;

[0044] a first evaluation unit, configured to send the analog message to a receiving end under the subscription scenario, so that the receiving end performs capacity evaluation on the model message and obtains an evaluation result.

[0045] The fifth aspect of the present application discloses an asynchronous message capacity evaluation system, which is applied to sending end capacity evaluation, and comprises:

[0046] a sending unit configured to send an analog message to an asynchronous message system, determine a subscription relationship by the asynchronous message system, and simulate a subscription scenario corresponding to the subscription relationship through the subscription relationship; the analog message represents an index of concurrent processing capability of the asynchronous message system and response time of the asynchronous message system; the subscription relationship is a subscription relationship between the sending end and the receiving end accessing the asynchronous message system under a publish-subscribe message model;

[0047] a second evaluation unit configured to send the analog message to the receiving end through the asynchronous message system according to the subscription relationship under the subscription scenario, and make the receiving end obtain an evaluation result by performing capacity evaluation on the analog message under the subscription scenario.

[0048] The sixth aspect of the application discloses an asynchronous message capacity evaluation system, which is applied to receiving end capacity evaluation, and includes:

[0049] a receiving unit configured to receive and record an analog message forwarded by an asynchronous message system; the analog message is obtained by instantiating a preset template by replacing a field in the template with a parameter value under a subscription scenario; the subscription scenario is obtained by simulating a subscription relationship between sending of the sending end and receiving of the receiving end through the asynchronous message system under a publish-subscribe message model; and the analog message represents an index of concurrent processing capability of the asynchronous message system, response time of the asynchronous message system, resource utilization rate index, and performance data of a message queue.

[0050] According to the above technical solution, the application discloses an asynchronous message capacity evaluation method and system. When the asynchronous message system receives an analog message sent by the sending end, a subscription relationship is determined. The analog message represents an index of concurrent processing capability of the asynchronous message system, response time of the asynchronous message system, resource utilization rate index, and performance data of a message queue. The subscription relationship is a subscription relationship between sending of the sending end and receiving of the receiving end accessing the asynchronous message system under a publish-subscribe message model. The asynchronous message system simulates a subscription scenario corresponding to the subscription relationship according to the subscription relationship. Under the subscription scenario, the asynchronous message system sends the analog message to the receiving end, so that the receiving end performs capacity evaluation on the analog message and obtains an evaluation result. Through the above scheme, the asynchronous message processing mechanism and the subscription relationship under the publish-subscribe message model are analyzed, performance capacity evaluation indexes and evaluation methods for the asynchronous message system are designed, and an analog message sending and receiving device is provided to assist in completing capacity evaluation of the asynchronous message system, so as to avoid insufficient capacity of the asynchronous message system and enable the commercial bank business system to stably provide satisfactory services for customers. BRIEF DESCRIPTION OF DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced. Obviously, the accompanying drawings in the following description only represent some embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative effort based on the provided drawings.

[0052] Figure 1 A flowchart of an asynchronous message capacity evaluation method disclosed by an embodiment of the present application;

[0053] Figure 2 A schematic diagram of an asynchronous message simulation test framework disclosed by an embodiment of the present application;

[0054] Figure 3 A flowchart of another asynchronous message capacity evaluation method disclosed by an embodiment of the present application;

[0055] Figure 4 A flowchart of still another asynchronous message capacity evaluation method disclosed by an embodiment of the present application;

[0056] Figure 5 A structural schematic diagram of an asynchronous message capacity evaluation system disclosed by an embodiment of the present application;

[0057] Figure 6 A structural schematic diagram of another asynchronous message capacity evaluation system disclosed by an embodiment of the present application;

[0058] Figure 7 A structural schematic diagram of still another asynchronous message capacity evaluation system disclosed by an embodiment of the present application. DETAILED DESCRIPTION

[0059] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments only represent some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort fall within the scope of the present application.

[0060] In the present application, the term “comprises”, “comprising” or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or device. Without more limitations, the element defined by the statement “comprises a” does not exclude the presence of additional identical elements in the process, method, article or device including the element.

[0061] As can be known from the background art, the timeliness of response and the stability of operation of the IT system of a commercial bank are extremely important. With the continuous increase of the number of users and the amount of data, problems such as insufficient capacity of the asynchronous message system are likely to occur, which leads to the fact that the overall commercial bank business system cannot stably provide satisfactory services for customers. Therefore, how to avoid insufficient capacity of the asynchronous message system and make the commercial bank business system stably provide satisfactory services for customers is a problem to be solved by the present application.

[0062] In order to solve the above problem, the present application discloses an asynchronous message capacity evaluation method and system, which analyzes the asynchronous message processing mechanism and the subscription relationship under the publish / subscribe message model, designs the performance capacity evaluation index and evaluation method for the asynchronous message system, and provides a device for simulating message sending and receiving to assist in completing the capacity evaluation of the asynchronous message system, thereby avoiding insufficient capacity of the asynchronous message system and making the commercial bank business system stably provide satisfactory services for customers. The specific implementation manner is described by the following embodiments.

[0063] Reference Figure 1 As shown in the figure, it is a flowchart of an asynchronous message capacity evaluation method disclosed by the embodiments of the present application. The asynchronous message capacity evaluation method is applied to an asynchronous message system. The asynchronous message capacity evaluation method mainly includes the following steps:

[0064] S101: When the asynchronous message system receives the simulated message sent by the sending end, the subscription relationship is determined. The simulated message represents the concurrent processing capacity (Transaction Per Second, TPS) of the asynchronous message system, the index of the response time of the asynchronous message system, the resource usage rate index and the performance data of the message queue. The subscription relationship is the subscription relationship between the sending of the sending end and the receiving of the receiving end of the asynchronous message system under the publish / subscribe message model (Publisher / Subscribe, Pub / Sub).

[0065] Specifically, the simulated message represents the concurrent processing capacity of the asynchronous message system and the index of the response time of the asynchronous message system, as well as the resource usage rate index of the CPU, memory and the like of the asynchronous message system server under the subscription scene and the performance data of the message queue.

[0066] In the performance capacity test, TPS refers to the number of transactions that can be processed at the same time per unit time.

[0067] Generally, the calculation is in seconds, and TPS = number of transactions / time length (test period).

[0068] The relationship between TPS and response time is: the smaller the response time of a single transaction, the higher the TPS.

[0069] Generally, in the system performance capacity test, multiple different transactions are concurrently processed, and the test result is observed in terms of concurrent processing capacity and response time.

[0070] The response time is a time period starting from the time when the sending end sends the first message and ending at the time when the receiving end receives all the messages.

[0071] The concurrent processing capacity is the overall result under the test result. The response time of each transaction is observed to determine which transaction is processed slowly and which transaction is processed quickly. The transaction with long response time and slow processing is the target for performance tuning.

[0072] According to the trend of the data in the simulated message, linearly increasing data or data with a curve trend are obtained,

[0073] The concurrent processing capacity refers to the concurrent processing capacity of the asynchronous message system with the messages sent by the sending end as the asynchronous message system.

[0074] The sending end represents the upstream message system, and the receiving end represents the downstream message system.

[0075] The process of obtaining the response time of the asynchronous message system is shown in A1-A4.

[0076] A1: The asynchronous message system determines the time when the sending end sends the first message as the starting point of time and the time when the receiving end receives all the messages as the ending point of time.

[0077] A2: The asynchronous message system takes the starting point of time and the ending point of time as the time period of message sending.

[0078] A3: In the time period, the asynchronous message system determines all the messages sent by the sending end as the base.

[0079] A4: The asynchronous message system calculates the response time of the asynchronous message system through the base.

[0080] Wherein, the response time of the asynchronous message system is calculated by TPS=number of transactions / time length (test time period).

[0081] The number of transactions is the base. The relationship between TPS and response time is: the smaller the response time of a single transaction, the higher the TPS.

[0082] S102: The asynchronous message system simulates the subscription scenario corresponding to the subscription relationship according to the subscription relationship.

[0083] Wherein, the subscription relationship is one-to-one or one-to-many. The subscription relationship can be understood as "configuration information".

[0084] If the subscription relationship is a one-to-one sending / receiving subscription scenario, a one-to-one subscription scenario is simulated; if the subscription relationship is one-to-many, a one-to-many sending / receiving subscription scenario is simulated.

[0085] In order to facilitate the understanding of the subscription relationship, the following will be described in combination with Figure 2 Figure 2 The schematic diagram of the asynchronous message simulation test framework is shown.

[0086] Figure 2 For example, the simulation message of producer1 is needed by consumer1, consumer2 and consumer3, and when a new message of producer1 enters the topic, the asynchronous message system identifies and places it in the corresponding Topic1 simulation (for example, producer1 corresponds to Topic1 simulation, producer2 corresponds to Topic2 simulation, and producer3 corresponds to Topic3 simulation), and consumer1, consumer2 and consumer3 inquire the Topic1 simulation and take back the message if they find the message they need.

[0087] If the simulation message of producer2 is only needed by consumer2, only consumer2 will take the message of producer2.

[0088] S103: In the subscription scenario, the asynchronous message system sends the simulation message to the receiving end, so that the receiving end performs capacity evaluation on the model message to obtain an evaluation result.

[0089] In the subscription scenario, the asynchronous message system sends the asynchronous message to the receiving end with the subscription relationship, and at the same time, obtains the response time of the asynchronous message from sending to receiving, the message concurrent processing capability, the system resource usage, and other simulation messages, so that the receiving end performs capacity evaluation on the simulation message to obtain an evaluation result.

[0090] Specifically, in the subscription scenario, the asynchronous message system sends the simulation message to the receiving end, so that the receiving end performs capacity evaluation on the model message to obtain an evaluation result, as shown in B1-B3.

[0091] B1: In the subscription scenario, the asynchronous message system sends the simulation message to the receiving end, so that the receiving end performs capacity evaluation on the model message to obtain the performance data of the asynchronous message system under different concurrency; the performance data at least includes the resource usage of the CPU of the system server, the memory usage and the message queue.

[0092] In which, by continuously increasing the sending concurrency, the performance data of the asynchronous message system under different concurrency is obtained.

[0093] ​The performance data include concurrent processing capability, response time, system server CPU, memory usage, and message queue condition.

[0094] B2: When the asynchronous message system monitors that the message queue is in the non-accumulation state, or the resource usage of the system server CPU is within the preset threshold range, and the memory usage is less than the preset usage, an evaluation result that the capacity bottleneck of the asynchronous message system is not reached is obtained.

[0095] When the message queue is monitored to be non-accumulation, it is determined that the message queue is in the non-accumulation state.

[0096] The determination of the preset threshold range is set by the technician according to the actual situation, which is not limited in the present application.

[0097] The determination of the preset usage is set by the technician according to the actual situation, which is not limited in the present application.

[0098] B3: When the asynchronous message system monitors that the message queue is in the accumulation state, or the resource usage of the system server CPU is not within the preset threshold range, or the memory usage is greater than or equal to the preset usage, an evaluation result that the capacity bottleneck of the asynchronous message system is reached is obtained.

[0099] When the asynchronous message system monitors that the message queue is non-accumulation, it is determined that the message queue is in the accumulation state.

[0100] For example, when the asynchronous message system monitors that the message queue is in the accumulation state, an evaluation result that the capacity bottleneck of the asynchronous message system is reached is obtained.

[0101] Or,

[0102] When the asynchronous message system monitors that the resource usage of the system server CPU is not within the preset threshold range, an evaluation result that the capacity bottleneck of the asynchronous message system is reached is obtained.

[0103] Or,

[0104] When the asynchronous message system monitors that the memory usage is greater than or equal to the preset usage, an evaluation result that the capacity bottleneck of the asynchronous message system is reached is obtained.

[0105] In the embodiments of the present application, the asynchronous message processing mechanism and the subscription relationship under the publish-subscribe message model are analyzed, the performance capacity evaluation index and evaluation method for the asynchronous message system are designed, and a device for simulating message sending and receiving is provided to assist in completing the capacity evaluation of the asynchronous message system, so as to avoid the capacity shortage of the asynchronous message system and make the commercial bank business system stably provide satisfactory services for customers.

[0106] Reference Figure 3As shown, a flowchart of another asynchronous message capacity evaluation method disclosed in the embodiments of the application is shown, the asynchronous message capacity evaluation method is applied to a sending end, and the asynchronous message capacity evaluation method mainly includes the following steps.

[0107] S301: The sending end sends a simulation message to an asynchronous message system, so that the asynchronous message system determines a subscription relationship and simulates a subscription scene corresponding to the subscription relationship through the subscription relationship; the simulation message represents an index of concurrent processing capability of the asynchronous message system and response time of the asynchronous message system; the subscription relationship is a subscription relationship between the sending end and a receiving end accessing the asynchronous message system under a publish-subscribe message model.

[0108] The process in which the sending end sends the simulation message to the asynchronous message system is shown in C1-C7.

[0109] C1: The sending end determines a connection type; the connection type at least includes a connection type of a HyperText Transfer Protocol (HTTP) long connection or a connection type of an HTTP short connection; the connection type of the HTTP long connection is an uninterrupted connection for sending and receiving multiple HTTP requests / answers through a same Transmission Control Protocol (TCP) connection; the connection type of the HTTP short connection is a connection that is established once for each communication and is interrupted after a task is completed.

[0110] The connection type is generally a long connection or a short connection. According to different protocols, there are a tuxedo long connection, a tuxedo short connection, an HTTP long connection, an HTTP short connection, and the like. The protocol used in the present scheme is an HTTP protocol.

[0111] The short connection refers to a connection that is established once for each communication, but is interrupted after a task is completed, and does not maintain the connection like the long connection.

[0112] The long connection refers to a connection that uses a same TCP connection to send and receive multiple HTTP requests / answers, instead of opening a new TCP connection for each new request / response. In this way, the communication connection always exists.

[0113] In actual applications, according to different system types, there are long connections and short connections. Therefore, both need to be simulated during testing.

[0114] C2: The sending end establishes a connection with the asynchronous message system according to the connection type.

[0115] The connection between the sending end and the asynchronous message system is established through a script of an application system that simulates sending / receiving messages and the connection type.

[0116] C3: In the case of establishing a connection with the asynchronous message system, the sending end reads new parameter information from the pre-defined message parameter table.

[0117] In which, a new parameter information is read from the pre-defined message parameter table (such as taking a new account number, balance data, etc.).

[0118] C4: The sending end obtains the parameter value corresponding to the parameter information, and replaces the field in the pre-set template with the parameter value to instantiate and obtain the message body.

[0119] In actual cases, the sending end (upstream message system) will send many different messages. For example, there may be multiple account numbers that have been transferred, deducted, and the balance has changed. Therefore, the account number and balance information in the same type of multiple messages will change. If only one account number and balance are used in testing, the simulation will not be realistic. Therefore, a parameterized file (i.e. different account numbers and amounts are placed in a file, and the parameters here refer to data that will change, i.e. account numbers and amounts here) is made to replace the corresponding fields in the simulation message to form the message body, i.e. the message body is instantiated.

[0120] C5: The sending end determines the message body as a simulation message, and sends the simulation message to the asynchronous message system, and judges the connection type through the asynchronous message system.

[0121] C6: If the connection type is the connection type of HTTP long connection, return to execute the step of establishing a connection with the asynchronous message system according to the connection type.

[0122] If it is a long connection, a communication connection is established, and after the last parameter is sent, the connection is disconnected. During the process, new parameters are continuously taken to send new messages.

[0123] C7: If the connection type is the connection type of HTTP short connection, the sending end closes the connection between the sending end and the asynchronous message system.

[0124] If it is a short connection, the script simulates the short connection mode to send a message and establish a communication connection.

[0125] S302: The sending end sends the simulation message to the receiving end through the asynchronous message system according to the subscription relationship in the subscription scenario, so that the receiving end obtains the evaluation result by performing capacity evaluation on the simulation message in the subscription scenario.

[0126] The process of capacity evaluation on the simulation message can refer to C1-C3 described above, and will not be described again.

[0127] In the embodiment of the present application, the asynchronous message processing mechanism and the subscription relationship under the publish / subscribe message model are analyzed, the performance capacity evaluation index and evaluation method for the asynchronous message system are designed, and a device for simulating message sending and receiving is provided to assist in completing the capacity evaluation of the asynchronous message system, so as to avoid the capacity shortage of the asynchronous message system and enable the commercial bank business system to stably provide satisfactory services for customers.

[0128] Reference Figure 4 As shown in FIG. 7, the asynchronous message capacity evaluation method disclosed in the embodiment of the present application is applied to a receiving end, and mainly includes the following steps:

[0129] S401: The receiving end receives the simulation message forwarded by the asynchronous message system; the simulation message is instantiated by replacing the field in the preset template with the parameter value under the subscription scenario; the subscription scenario is simulated by the subscription relationship between the sending of the sending end and the receiving of the receiving end through the asynchronous message system under the publish / subscribe message model; and the simulation message represents the performance data of the concurrent processing capability of the asynchronous message system, the response time index of the asynchronous message system, the resource usage rate index and the message queue.

[0130] S402: The receiving end records the simulation message.

[0131] The process of receiving and recording the simulation message forwarded by the asynchronous message system by the receiving end is as follows:

[0132] D1: The receiving end determines the connection type; the connection type at least includes the connection type of HTTP long connection or the connection type of HTTP short connection; the connection type of HTTP long connection is the uninterrupted connection for sending and receiving multiple HTTP requests / responses through the same TCP connection; and the connection type of HTTP short connection is the connection that is established once for each communication and is interrupted after the task is completed.

[0133] D2: The receiving end establishes the connection with the asynchronous message system according to the connection type.

[0134] D3: In the case of establishing the connection with the asynchronous message system, the receiving end receives and records the simulation message forwarded by the asynchronous message system for evaluation.

[0135] D4: The receiving end monitors whether there is a new simulation message.

[0136] D5: If there is a new simulation message, the receiving end records the new simulation message in the receiving message record table and judges the connection type with the asynchronous message system.

[0137] D6: If the connection type is the connection type of HTTP long connection, return to execute the step of monitoring whether there is a new simulation message.

[0138] D7: If the connection type is HTTP short connection type, the receiving end closes the connection between the asynchronous message system.

[0139] In the embodiments of the present application, the asynchronous message processing mechanism and the subscription relationship under the publish-subscribe message model are analyzed, the performance capacity evaluation index and evaluation method for the asynchronous message system are designed, and a device for simulating message sending and receiving is provided to assist in completing the capacity evaluation of the asynchronous message system, so as to avoid the capacity shortage of the asynchronous message system and enable the commercial bank business system to stably provide satisfactory services for customers.

[0140] Based on the above embodiments Figure 1 The disclosed asynchronous message capacity evaluation method, the embodiments of the present application also disclose an asynchronous message capacity evaluation system. Figure 5 As shown in the figure, the system is applied to the capacity evaluation of the asynchronous message system, and the asynchronous message capacity evaluation system includes a determination unit 501, a simulation unit 502 and a first evaluation unit 503.

[0141] The determination unit 501 is configured to determine the subscription relationship when receiving the simulation message sent by the sending end; the simulation message represents the performance data of the concurrent processing capability of the asynchronous message system, the response time of the asynchronous message system, the resource usage rate and the message queue; and the subscription relationship is the subscription relationship between the sending of the sending end and the receiving of the receiving end in the publish-subscribe message model.

[0142] The simulation unit 502 is configured to simulate the subscription scene corresponding to the subscription relationship according to the subscription relationship.

[0143] The first evaluation unit 503 is configured to send the simulation message to the receiving end in the subscription scene, so that the receiving end performs capacity evaluation on the simulation message to obtain an evaluation result.

[0144] Further, the determination unit 501 of the response time of the asynchronous message system includes a first determination module, a second determination module, a third determination module and a calculation module.

[0145] The first determination module is configured to determine the time when the sending end sends the first message as a time starting point and determine the time when the receiving end receives all the messages as a time ending point.

[0146] The second determination module is configured to take the time starting point and the time ending point as a message sending time period.

[0147] The third determination module is configured to determine all the messages sent by the sending end as a base number within the time period.

[0148] The calculation module is used to calculate the response time of the asynchronous message system using radix.

[0149] Furthermore, the first evaluation unit 503 includes an evaluation module, a first acquisition and transmission module, and a second acquisition and transmission module.

[0150] The evaluation module is used to send simulated messages to the receiving end in a subscription scenario, so that the receiving end can evaluate the capacity of the model messages and obtain performance data of the asynchronous messaging system under different concurrency levels. The performance data includes at least the resource utilization of the system server CPU, memory utilization, and message queue status.

[0151] The first acquisition and sending module is used to obtain an evaluation result indicating that the capacity bottleneck of the asynchronous message system has not been reached when the message queue is detected to be in a non-backlogged state, or the resource utilization rate of the system server CPU is within a preset threshold range and the memory utilization rate is less than the preset utilization rate.

[0152] The second acquisition and sending module is used to obtain the evaluation result of the capacity bottleneck of the asynchronous message system when it detects that the message queue is in a backlog state, the resource utilization rate of the system server CPU is not within the preset threshold range, or the memory utilization rate is greater than or equal to the preset utilization rate.

[0153] In this embodiment, the asynchronous message processing mechanism and subscription relationship under the publish-subscribe message model are analyzed. Performance capacity evaluation indicators and evaluation methods for asynchronous message systems are designed. A device for simulating message sending and receiving is provided to assist in the capacity evaluation of asynchronous message systems, thereby avoiding insufficient capacity of asynchronous message systems and enabling commercial banking business systems to stably provide services that satisfy customers.

[0154] Based on the above embodiments Figure 3 In addition to the disclosed asynchronous message capacity assessment method, this application also discloses another asynchronous message capacity assessment system, such as... Figure 6 As shown, the system is applied to the sending end, and the asynchronous message capacity assessment system includes a sending unit 601 and a second assessment unit 602.

[0155] The sending unit 601 is used to send a simulated message to the asynchronous messaging system, so that the asynchronous messaging system can determine the subscription relationship and simulate the subscription scenario corresponding to the subscription relationship through the subscription relationship; the simulated message represents the concurrent processing capability and response time of the asynchronous messaging system; the subscription relationship is the subscription relationship between the sending end and the receiving end that access the asynchronous messaging system under the publish-subscribe message model.

[0156] The second evaluation unit 602 is configured to send the simulation message to the receiving end according to the subscription relationship through the asynchronous message system in the subscription scenario, so that the receiving end obtains the evaluation result by evaluating the simulation message in the subscription scenario.

[0157] Further, the sending unit 601 for sending the simulation message to the asynchronous message system includes a fourth determination module, a first establishment module, a reading module, an acquisition module, a fifth determination module, a first execution module and a first closing module.

[0158] The fourth determination module is configured to determine the connection type, wherein the connection type at least includes a connection type of HTTP long connection or a connection type of HTTP short connection.

[0159] The first establishment module is configured to establish the connection with the asynchronous message system according to the connection type.

[0160] The reading module is configured to read the new parameter information from the predetermined message parameter table in the case of establishing the connection with the asynchronous message system.

[0161] The acquisition module is configured to acquire the parameter value corresponding to the parameter information, and replace the field in the preset template with the parameter value to obtain the message body.

[0162] The fifth determination module is configured to determine the message body as the simulation message, send the simulation message to the asynchronous message system, and determine the connection type.

[0163] The first execution module is configured to return to the step of establishing the connection with the asynchronous message system according to the connection type if the connection type is the connection type of HTTP long connection.

[0164] The first closing module is configured to close the connection between the asynchronous message system if the connection type is the connection type of HTTP short connection.

[0165] In the embodiment, the performance capacity evaluation index and the evaluation method for the asynchronous message system are designed by analyzing the asynchronous message processing mechanism and the subscription relationship in the publish-subscribe message model, and an apparatus for sending and receiving the simulation message is provided to assist in completing the capacity evaluation of the asynchronous message system, so that the capacity of the asynchronous message system is avoided to be insufficient, and the commercial bank business system can stably provide the satisfactory service for the customers.

[0166] Based on the above embodiment Figure 4Disclosed is still another asynchronous message capacity evaluation method, and the application also discloses still another asynchronous message capacity evaluation system, as shown in Figure 7 The asynchronous message capacity evaluation system is applied to receiving end capacity evaluation, and comprises a receiving unit 701.

[0167] The receiving unit 701 is configured to receive and record simulation messages forwarded by an asynchronous message system. The simulation messages are obtained by instantiating fields in a preset template through parameter value replacement in a subscription scenario. The subscription scenario is obtained by simulating the subscription relationship between sending of a sending end and receiving of a receiving end through the asynchronous message system in a publish-subscribe message model. The simulation messages represent the concurrent processing capability of the asynchronous message system, the response time index of the asynchronous message system, the resource usage rate index, and the performance data of a message queue.

[0168] Further, the receiving unit 701 comprises a sixth determination module, a second establishment module, a recording module, a monitoring module, a judgment module, a second execution module, and a second closing module.

[0169] The sixth determination module is configured to determine a connection type. The connection type at least comprises a connection type of an HTTP long connection or a connection type of an HTTP short connection. The connection type of the HTTP long connection is a non-interrupted connection for sending and receiving multiple HTTP requests / responses through a same TCP connection. The connection type of the HTTP short connection is a connection that is established once for each communication and is interrupted after a task ends.

[0170] The second establishment module is configured to establish a connection with the asynchronous message system according to the connection type.

[0171] The recording module is configured to receive and record simulation messages forwarded by the asynchronous message system for evaluation in a case where the connection with the asynchronous message system is established.

[0172] The monitoring module is configured to monitor whether there is a new simulation message.

[0173] The judgment module is configured to record the new simulation message in a receiving message record table and judge the connection type with the asynchronous message system if there is the new simulation message.

[0174] The second execution module is configured to return to the step of monitoring whether there is the new simulation message if the connection type is the connection type of the HTTP long connection.

[0175] The second closing module is configured to close the connection between the receiving end and the asynchronous message system if the connection type is the connection type of the HTTP short connection.

[0176] The application embodiment analyzes the asynchronous message processing mechanism and the subscription relationship under the publish / subscription message model, designs the performance capacity evaluation index and evaluation method for the asynchronous message system, and provides a device for simulating message sending and receiving to assist in completing the capacity evaluation of the asynchronous message system, thereby avoiding the capacity shortage of the asynchronous message system and enabling the commercial bank business system to stably provide satisfactory service for customers.

[0177] The specific implementation process of each embodiment and its derivative mode are within the protection scope of the application.

[0178] Each embodiment in the specification is described in a progressive manner, and the same and similar parts between each embodiment can be referred to each other, and each embodiment mainly describes the difference from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, it is described more simply, and the related parts can be referred to the part of the method embodiment. The system and system embodiment described above are only illustrative, and the units described as separate components can be or can not be physically separated, and the components displayed as units can be or can not be physical units, that is, they can be located in one place or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0179] The skilled person can further realize that the units and algorithm steps of each example described in combination with the disclosed embodiments herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in the above description in general terms. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.

[0180] The above description of the disclosed embodiments enables those skilled in the art to implement or use the application. Various modifications to the embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the scope of the application. Therefore, the application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

[0181] The above merely describes the preferred embodiments of the present application, and it should be pointed out that, for those skilled in the art, some improvements and refinements can be made without departing from the principles of the present application, and these improvements and refinements should also be considered as the protection scope of the present application.

Claims

1. An asynchronous message capacity evaluation method, characterized by, The method is applied to an asynchronous message system, and the method comprises: When receiving an analog message sent by a sending end, determining a subscription relationship; the analog message represents an index of concurrent processing capability of the asynchronous message system, an index of response time of the asynchronous message system, a resource usage rate index, and performance data of a message queue; the subscription relationship is a subscription relationship of sending and receiving of the sending end and a receiving end accessing the asynchronous message system under a publish-subscribe message model; According to the subscription relationship, simulating a subscription scenario corresponding to the subscription relationship; Under the subscription scenario, sending the analog message to the receiving end, so that the receiving end performs capacity evaluation on the model message, and obtains performance data of the asynchronous message system under different concurrency by continuously increasing sending concurrency; the performance data at least comprises resource usage rate of a system server CPU, memory usage rate, and a message queue condition; When it is monitored that the message queue is in a non-piling state, or the resource usage rate of the system server CPU is within a preset threshold range, and the memory usage rate is less than a preset usage rate, an evaluation result representing that a capacity bottleneck of the asynchronous message system is not reached is obtained; When it is monitored that the message queue is in a piling state, the resource usage rate of the system server CPU is not within the preset threshold range, or the memory usage rate is greater than or equal to the preset usage rate, an evaluation result representing that a capacity bottleneck of the asynchronous message system is reached is obtained.

2. The method of claim 1, wherein, An obtaining process of response time of the asynchronous message system comprises: Taking a time when the sending end sends a first message as a time starting point, and taking a time when the receiving end receives all messages as a time ending point; Taking the time starting point and the time ending point as a message sending time period; In the time period, determining all messages sent by the sending end as a base number; Obtaining the response time of the asynchronous message system by the base number.

3. A method for asynchronous message capacity evaluation, characterized by, The method is applied to a sending end, and the method comprises: Sending an analog message to an asynchronous message system, so that the asynchronous message system determines a subscription relationship, and simulates a subscription scenario corresponding to the subscription relationship through the subscription relationship; the analog message represents an index of concurrent processing capability of the asynchronous message system and an index of response time of the asynchronous message system; the subscription relationship is a subscription relationship of the sending end and a receiving end accessing the asynchronous message system under a publish-subscribe message model; In the subscription scenario, the simulation message is sent to the receiving end through the asynchronous message system according to the subscription relationship, so that the receiving end obtains performance data of the asynchronous message system under different concurrency by performing capacity evaluation on the simulation message in the subscription scenario; the performance data at least includes resource usage of system server CPU, memory usage and message queue condition; in the case that the asynchronous message system monitors that the message queue is in a non-accumulation state, or the resource usage of the system server CPU is within a preset threshold range, and the memory usage is less than a preset usage, an evaluation result indicating that the capacity bottleneck of the asynchronous message system is not reached is obtained; in the case that the asynchronous message system monitors any one condition that the message queue is in an accumulation state, the resource usage of the system server CPU is not within the preset threshold range, or the memory usage is greater than or equal to the preset usage, an evaluation result indicating that the capacity bottleneck of the asynchronous message system is reached is obtained; The process of sending the simulation message to the asynchronous message system includes: determining a connection type; the connection type at least includes a HTTP long connection type or a HTTP short connection type; the HTTP long connection type is a non-interrupted connection for sending and receiving multiple HTTP requests / answers through a same TCP connection; the HTTP short connection type is a connection that is established once for each communication and is interrupted after the task is completed; establishing a connection according to the connection type and the asynchronous message system; reading new parameter information from a predetermined simulation message parameter table in the case of establishing the connection with the asynchronous message system; obtaining a parameter value corresponding to the parameter information, and replacing a field in a preset template with the parameter value to instantiate, so as to replace a corresponding field in the simulation message to form a message body; determining the message body as the simulation message, sending the simulation message to the asynchronous message system, and judging the connection type; if the connection type is the HTTP long connection type, returning to execute the step of establishing the connection according to the connection type and the asynchronous message system; if the connection type is the HTTP short connection type, closing the connection between the asynchronous message system.

4. A method for asynchronous message capacity evaluation, characterized by, The method is applied to the receiving end, and the method includes: receiving and recording a simulation message forwarded by an asynchronous message system; the simulation message is obtained by instantiating a preset template through a parameter value in a subscription scenario; the subscription scenario is obtained by simulating a subscription relationship between sending of a sending end and receiving of the receiving end through the asynchronous message system in a publish / subscribe message model; the simulation message represents performance data of the asynchronous message system, an index of response time of the asynchronous message system, a resource usage index, and a message queue performance data; performing capacity evaluation on the model message to obtain performance data of the asynchronous message system under different concurrency; the performance data at least includes resource usage of system server CPU, memory usage and message queue condition; The performance data is sent to the asynchronous message system, so that the asynchronous message system obtains an evaluation result indicating that a capacity bottleneck of the asynchronous message system is not reached when it is monitored that a message queue is in a non-accumulation state, or resource usage of a system server CPU is within a preset threshold range, and memory usage is less than a preset usage; and the evaluation result indicating that the capacity bottleneck of the asynchronous message system is reached when it is monitored that the message queue is in an accumulation state, or the resource usage of the system server CPU is not within the preset threshold range, or the memory usage is greater than or equal to the preset usage.

5. The method of claim 4, wherein, The process of receiving the simulation message forwarded by the asynchronous message system and recording includes: determining a connection type; the connection type at least includes a connection type of an HTTP long connection or a connection type of an HTTP short connection; the connection type of the HTTP long connection is an uninterrupted connection for sending and receiving multiple HTTP requests / answers through a same TCP connection; the connection type of the HTTP short connection is a connection that is established once for each communication and is interrupted after a task ends; establishing a connection with the asynchronous message system according to the connection type; in a case of establishing the connection with the asynchronous message system, receiving the simulation message forwarded by the asynchronous message system and recording; monitoring whether there is a new simulation message; if there is the new simulation message, recording the new simulation message into a received message record table, and judging the connection type with the asynchronous message system; if the connection type is the connection type of the HTTP long connection, returning to the step of monitoring whether there is the new simulation message; if the connection type is the connection type of the HTTP short connection, closing the connection with the asynchronous message system.

6. An asynchronous message capacity assessment system, characterized by, The system is applied to capacity evaluation of an asynchronous message system, and the system includes: a determination unit configured to determine a subscription relationship when receiving a simulation message sent by a sending end; the simulation message represents performance data of an asynchronous message system, an index of response time of the asynchronous message system, a resource usage index, and a performance data of a message queue; the subscription relationship is a subscription relationship of sending and receiving of the sending end and a receiving end of the sending end accessing the asynchronous message system under a publish / subscribe message model; a simulation unit configured to simulate a subscription scenario corresponding to the subscription relationship according to the subscription relationship. The first evaluation unit is configured to send the simulation message to a receiving end under the subscription scenario, to enable the receiving end to evaluate the capacity of the model message, and to obtain performance data of the asynchronous message system under different concurrency by continuously increasing the sending concurrency; the performance data at least includes resource usage of a system server CPU, memory usage, and a message queue condition; when it is monitored that the message queue is in a non-accumulation state, or the resource usage of the system server CPU is within a preset threshold range, and the memory usage is less than a preset usage, an evaluation result is obtained, which represents that the capacity bottleneck of the asynchronous message system is not reached; when it is monitored that the message queue is in an accumulation state, or any one of the following conditions is met: the resource usage of the system server CPU is not within the preset threshold range, or the memory usage is greater than or equal to the preset usage, an evaluation result is obtained, which represents that the capacity bottleneck of the asynchronous message system is reached.

7. An asynchronous message capacity assessment system, characterized by, The system is applied to sending end capacity evaluation, and the system comprises: a sending unit configured to send a simulation message to an asynchronous message system, to enable the asynchronous message system to determine a subscription relationship, and to simulate a subscription scenario corresponding to the subscription relationship through the subscription relationship; the simulation message represents an index of concurrent processing capability of the asynchronous message system and response time of the asynchronous message system; the subscription relationship is a subscription relationship between the sending end and a receiving end accessing the asynchronous message system under a publish-subscribe message model; The second evaluation unit is configured to send the simulation message to the receiving end according to the subscription relationship through the asynchronous message system under the subscription scenario, so that the receiving end obtains performance data of the asynchronous message system under different concurrency by performing capacity evaluation on the simulation message under the subscription scenario; the performance data at least includes resource usage of a system server CPU, memory usage, and a message queue condition; an evaluation result indicating that a capacity bottleneck of the asynchronous message system is not reached is obtained when the asynchronous message system monitors that the message queue is in a non-accumulation state, or the resource usage of the system server CPU is within a preset threshold range, and the memory usage is less than a preset usage; an evaluation result indicating that the capacity bottleneck of the asynchronous message system is reached is obtained when the asynchronous message system monitors that the message queue is in an accumulation state, or the resource usage of the system server CPU is not within the preset threshold range, or the memory usage is greater than or equal to the preset usage; the process of sending the simulation message to the asynchronous message system includes: determining a connection type; the connection type at least includes a HTTP long connection type or a HTTP short connection type; the HTTP long connection type is a non-interrupted connection for sending and receiving multiple HTTP requests / responses through a same TCP connection; the HTTP short connection type is a connection that is established once for each communication and is interrupted after a task is completed; establishing a connection according to the connection type and the asynchronous message system; reading new parameter information from a predetermined message parameter table under the condition of establishing the connection with the asynchronous message system; obtaining a parameter value corresponding to the parameter information, and replacing a field in a preset template with the parameter value to perform instantiation, so that a message body is formed in the simulation message; determining the message body as the simulation message, sending the simulation message to the asynchronous message system, and judging the connection type; if the connection type is the HTTP long connection type, returning to perform the step of establishing the connection according to the connection type and the asynchronous message system; if the connection type is the HTTP short connection type, closing the connection between the asynchronous message system.

8. An asynchronous message capacity assessment system, characterized by, The system is applied to capacity evaluation of a receiving end, and the system includes: a receiving unit configured to receive and record a simulation message forwarded by an asynchronous message system; the simulation message is obtained by instantiating a preset template by replacing a field in the template with a parameter value under a subscription scenario; the subscription scenario is obtained by simulating a subscription relationship between sending of a sending end and receiving of the receiving end through the asynchronous message system under a publish-subscribe message model; the simulation message represents performance data of concurrent processing capability of the asynchronous message system, an index of response time of the asynchronous message system, a resource usage index, and a message queue performance data; Capacity evaluation is performed on the model message to obtain performance data of the asynchronous message system under different concurrency, wherein the performance data at least includes resource usage of a system server CPU, memory usage and message queue condition; The performance data is sent to the asynchronous message system to obtain an evaluation result representing that the capacity bottleneck of the asynchronous message system is not reached when it is monitored that the message queue is in a non-accumulation state, the resource usage of the system server CPU is within a preset threshold range and the memory usage is less than a preset usage; or the evaluation result representing that the capacity bottleneck of the asynchronous message system is reached when it is monitored that the message queue is in an accumulation state, the resource usage of the system server CPU is not within the preset threshold range or the memory usage is greater than or equal to the preset usage.

Citation Information

Patent Citations

  • Message middleware performance test method

    CN113259195A

  • Message queue rebalancing method and device, equipment and storage medium

    CN115079926A