A method, apparatus, and business system for diverting business data.

By introducing consumer domain clusters, processing domain clusters, and distributed message queue clusters into the business system, and determining the storage, consumption, and processing servers based on the priority of business data, the problem of processing pressure on the telecommunications operator system during peak periods was solved, ensuring that important business is processed first, and resource isolation and efficient processing were achieved.

CN116319579BActive Publication Date: 2025-11-14CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211077824.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-05
Publication Date
2025-11-14
Estimated Expiration
2042-09-05

AI Technical Summary

Technical Problem

Telecommunications operators' business systems may be overwhelmed by a large number of orders at the end or beginning of the month, making it difficult to meet timeliness requirements, especially for important and urgent services.

Method used

By introducing consumer domain clusters, processing domain clusters, and distributed message queue clusters into the business system, and determining the storage, consumption, and processing servers based on the priority of business data, priority-based traffic distribution and resource isolation are achieved, ensuring that important business processes are processed first.

Benefits of technology

It enables traffic routing based on business priority, ensuring that important and urgent services are activated first, achieving resource isolation and efficient processing, and improving the system's processing capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319579B_ABST
    Figure CN116319579B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, and system for traffic splitting of business data. The method includes: upon receiving first business data, determining a first storage server based on the priority of the first business data; then writing the first business data into a message queue of the first storage server; and when processing the first business data, determining a first consumer server and a first processing server corresponding to the first storage server, and sending the first business data from the message queue of the first storage server to the first processing server for processing via the first consumer server. This invention achieves traffic splitting of business data according to business priority, allowing more important and urgent businesses to be activated first; and enables business data of different priorities to flow through different channels to achieve resource isolation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of data offloading, and in particular to a method, apparatus, and business system for offloading business data. Background Technology

[0002] Telecommunications operators offer a wide variety of products and services, resulting in a large number of orders that need to be processed during the activation process. The activation of each order involves the construction of N (N is a positive integer greater than or equal to 1) network elements or external systems, which places high demands on the real-time performance of service activation.

[0003] However, at the end or beginning of the month, telecommunications operators' business systems may receive a large number of orders. On the one hand, a large number of orders may put excessive pressure on the business systems; on the other hand, the backlog of orders may make it difficult for the business systems to meet the timeliness requirements of some services. Summary of the Invention

[0004] In view of the above problems, a method, apparatus, and business system for diverting business data are proposed to overcome or at least partially solve the above problems, comprising:

[0005] A method for distributing business data, applied to a business system, the business system including a consumption domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data; the consumption domain cluster includes multiple consumption servers with different performance, the capability domain cluster includes multiple processing servers with different performance, and the distributed message queue cluster includes multiple storage servers for storing business data with different priorities; the method includes:

[0006] Receive the first service data and determine the first storage server based on the priority of the first service data;

[0007] Write the first business data into the message queue of the first storage server;

[0008] Determine the first consumer server and the first processing server corresponding to the first storage server;

[0009] The first consumer server sends the first business data from the message queue of the first storage server to the first processing server for processing.

[0010] Optionally, the method further includes:

[0011] Obtain the priority of the second business data obtained after the first processing server processes the first business data;

[0012] Determine the priority of the second business data, and determine the second storage server based on the priority of the second business data;

[0013] The second business data is written into the message queue of the second storage server.

[0014] Optionally, receiving the first service data includes:

[0015] Receive and store order data; the order data includes at least one piece of business data;

[0016] The order data is broken down to obtain the first business data.

[0017] Optionally, the first business data includes first sub-data and second sub-data, and the method further includes:

[0018] Based on the first sub-data, determine the first priority of the first business data;

[0019] Based on the second sub-data, determine the second priority of the first business data;

[0020] The first priority is adjusted according to the second priority to generate the priority of the first business data.

[0021] Optionally, determining the first consumer server and the first processing server corresponding to the first storage server includes:

[0022] From the preset relationships, determine the first consumer server and the first processing server corresponding to the first storage server;

[0023] The preset relationships include the correspondence between consumer servers and priorities, and the correspondence between processing servers and priorities.

[0024] Optionally, the method further includes:

[0025] Divide the priorities of each level into corresponding groups;

[0026] Based on the performance of the consumer server and the processing server, register the consumer server and the processing server to the corresponding group;

[0027] The preset relationship is generated based on the consumer server / processing server in the group and the priority level of the group.

[0028] This invention also provides a business data distribution device applied to a business system. The business system includes a consumption domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data. The consumption domain cluster includes multiple consumption servers with different performance levels, the capability domain cluster includes multiple processing servers with different performance levels, and the distributed message queue cluster includes multiple storage servers for storing business data with different priorities. The device includes:

[0029] The first determining module is used to receive the first service data and determine the first storage server according to the priority of the first service data.

[0030] The first writing module is used to write the first business data into the message queue of the first storage server;

[0031] The second determining module is used to determine the first consumer server and the first processing server corresponding to the first storage server;

[0032] The processing module is used to send the first business data in the message queue of the first storage server to the first processing server for processing through the first consumer server.

[0033] Optionally, the device further includes:

[0034] The second writing module is used to obtain the priority of the second business data obtained after the first processing server processes the first business data; determine the priority of the second business data, and determine the second storage server according to the priority of the second business data; and write the second business data into the message queue of the second storage server.

[0035] Optionally, the first determining module includes:

[0036] A business data acquisition module is used to receive and store order data; the order data includes at least one piece of business data; the order data is decomposed to obtain the first piece of business data.

[0037] Optionally, the first service data includes first sub-data and second sub-data, and the device further includes:

[0038] The priority determination module is used to determine a first priority of the first service data based on the first sub-data; determine a second priority of the first service data based on the second sub-data; and adjust the first priority based on the second priority to generate a priority for the first service data.

[0039] Optionally, the second determining module is used to determine, from a preset relationship, a first consumer server and a first processing server corresponding to the first storage server;

[0040] The preset relationships include the correspondence between consumer servers and priorities, and the correspondence between processing servers and priorities.

[0041] Optionally, the device further includes:

[0042] The preset relationship determination module is used to divide the priority levels into groups; register the consumer servers and processing servers to the corresponding groups according to their performance; and generate the preset relationship based on the consumer servers / processing servers in the group and the priority level of the group.

[0043] This invention also provides a business system, including: a consumption domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data;

[0044] The consumer domain cluster includes multiple consumer servers with different performance levels, the capability domain cluster includes multiple processing servers with different performance levels, and the distributed message queue cluster includes multiple storage servers for storing business data with different priorities.

[0045] The distributed message queue cluster is used to determine a first storage server from the plurality of storage servers according to the priority of the received first business data; and to write the first business data into the message queue of the first storage server.

[0046] The consumer domain cluster is used to determine the first consumer server and the first processing server corresponding to the first storage server; and to send the first business data in the message queue of the first storage server to the first processing server for processing through the first consumer server.

[0047] This invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the above-mentioned business data diversion method.

[0048] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-described method for diverting business data.

[0049] The embodiments of the present invention have the following advantages:

[0050] In this embodiment of the invention, after receiving the first service data, a first storage server can be determined based on the priority of the first service data; then, the first service data is written into the message queue of the first storage server; when processing the first service data, a first consumer server and a first processing server corresponding to the first storage server can be determined, and the first service data in the message queue of the first storage server is sent to the first processing server for processing through the first consumer server. Through this embodiment of the invention, service data is prioritized according to service priority, so that more important and urgent services can be activated first; and service data of different priorities are transferred through different channels to achieve resource isolation. Attached Figure Description

[0051] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0052] Figure 1 This is a flowchart of the steps of a business data diversion method according to an embodiment of the present invention;

[0053] Figure 2 This is a flowchart of another method for diverting business data according to an embodiment of the present invention;

[0054] Figure 3 This is a schematic diagram of a business system according to an embodiment of the present invention;

[0055] Figure 4 This is a schematic diagram of the structure of a business system according to an embodiment of the present invention;

[0056] Figure 5 This is a structural block diagram of a business data diversion device according to an embodiment of the present invention. Detailed Implementation

[0057] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0058] With numerous services offered by telecom operators, especially during peak periods at the beginning or end of the month, failure to fully utilize cluster resources may result in difficulties in promptly activating important and urgent service functions. To avoid this, this invention prioritizes service data based on service priority, allowing more important and urgent services to be activated first; and enables service data of different priorities to flow through different channels to achieve resource isolation.

[0059] Reference Figure 1 The diagram illustrates a flowchart of a business data splitting method according to an embodiment of the present invention. This method can be applied to a business system, which may include a consumer domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data. The consumer domain cluster may include multiple consumer servers with different performance levels, the capability domain cluster may include multiple processing servers with different performance levels, and the distributed message queue cluster may include multiple storage servers for storing business data with different priorities.

[0060] Specifically, it may include the following steps:

[0061] Step 101: Receive the first service data and determine the first storage server according to the priority of the first service data.

[0062] The first business data may refer to the request data corresponding to a business that is currently being processed and received by the business system; the priority may be determined based on the business type, customer type, etc. of the first business data, and this embodiment of the invention does not impose any restrictions on this.

[0063] After receiving the first business data, the business system can first determine the priority of the first business data based on its business type and the corresponding customer's customer type; then, based on the priority of the first business data, it can determine the first storage server that matches it.

[0064] Step 102: Write the first business data into the message queue of the first storage server.

[0065] After determining the first storage server for storing the first business data, the business system can write the first business data into the message queue of the first storage server; the message queue may include one or more business data to be processed.

[0066] Step 103: Determine the first consumer server and the first processing server corresponding to the first storage server.

[0067] In practical applications, different consumer servers / processing servers have different performance levels. For consumer servers / processing servers with better performance, their ability to read, transmit, and process data is stronger and faster. For consumer servers / processing servers with poorer performance, their ability to read, transmit, and process data is weaker and slower.

[0068] To address this, in order to ensure that important and urgent services can be prioritized and to achieve resource isolation for service data of different priorities, a first consumer server and a first processor corresponding to the first storage server can be identified. The first consumer server and the first processing server can be servers whose performance matches the priority of the first service data, so that when the first service data has a high priority, it can be processed by a high-performance consumer server and processing server; or, when the first service data has a low priority, it can be processed by a low-performance consumer server and processing server. This embodiment of the invention does not impose any limitations on this.

[0069] Step 104: The first service data in the message queue of the first storage server is sent to the first processing server for processing through the first consumer server.

[0070] After determining the first consumer server and the first processing server corresponding to the first storage server, the first consumer server can be used to obtain the first business data from the message queue of the first storage server.

[0071] After obtaining the first business data, the first consumer server can forward the first business data to the first processing server for processing.

[0072] In this embodiment of the invention, after receiving the first service data, a first storage server can be determined based on the priority of the first service data; then, the first service data is written into the message queue of the first storage server; when processing the first service data, a first consumer server and a first processing server corresponding to the first storage server can be determined, and the first service data in the message queue of the first storage server is sent to the first processing server for processing through the first consumer server. Through this embodiment of the invention, service data is prioritized according to service priority, so that more important and urgent services can be activated first; and service data of different priorities are transferred through different channels to achieve resource isolation.

[0073] Reference Figure 2 The diagram illustrates a flowchart of another method for diverting business data according to an embodiment of the present invention, which may include the following steps:

[0074] Step 201: Receive and store order data; the order data includes at least one piece of business data.

[0075] An order data item can include at least one business data item; a business data item can include a corresponding business item; for example, if user A has opened an account and made a deposit, the business data corresponding to the account opening and deposit transactions can be combined into an order data item and sent to the business system.

[0076] In practical applications, after the upstream system sends order data to the business system, the business application layer of the business system can first accept the order data and store it.

[0077] Step 202: Decompose the order data to obtain the first business data.

[0078] Then, the order data can be broken down according to preset rules to obtain the first business data; at the same time, other business data can also be obtained; each business data can correspond to one business.

[0079] Step 203: Determine the first storage server based on the priority of the first business data.

[0080] After receiving the first business data, the business system can determine the priority of the first business data based on its business type, the corresponding customer's customer type, etc.; then, based on the priority of the first business data, it can determine the first storage server that matches it.

[0081] In one embodiment of the present invention, the priority of the first service data can be determined through the following steps:

[0082] Based on the first sub-data, a first priority of the first service data is determined; based on the second sub-data, a second priority of the first service data is determined; based on the second priority, the first priority is adjusted to generate the priority of the first service data.

[0083] The first sub-data can refer to the basic information of the first business data, such as: city code, business code, order source system, order source type, customer SLA service level, etc.; the second sub-data can refer to the special information of the first business data, such as: processing number (which can indicate the source of the first business data), customer ID (which can be annotated, for example: "account stolen"), etc. Table 1 shows some of the first and second sub-data of an embodiment of the present invention.

[0084] Table 1:

[0085]

[0086]

[0087] The priority of the first business data can be defined by the business type dimension of the first business data; the priority of the second business data can be defined by special cases of the first business data.

[0088] In practical applications, business data that is originally of low priority may need to be processed as soon as possible due to special circumstances; for example, a business that is suspended may be initiated because the user's terminal is lost, in order to avoid losses to the user. In this case, the low priority of the business data can be changed to high priority, and this embodiment of the invention does not limit this.

[0089] Specifically, we can first determine the first priority of the first business data under the business type dimension based on the first sub-data; simultaneously, we can determine the second priority of the first business data under special circumstances based on the second sub-data. Business priorities can be defined in the configuration center to set the priorities for different businesses; when it is necessary to determine the priority corresponding to the first and second sub-data, it can be done by querying the configuration center.

[0090] After determining the first priority of the first sub-data and the second priority of the second sub-data, the first priority can be adjusted based on the second priority to determine a more accurate priority for the first business data.

[0091] Of course, if there are no special circumstances with the first business data, the second priority can be set to "none". In this case, the first priority can be used directly as the priority of the first business data without adjusting the first priority according to the second priority. This embodiment of the invention does not limit this.

[0092] Step 204: Write the first business data into the message queue of the first storage server.

[0093] After determining the first storage server for storing the first business data, the business system can write the first business data into the message queue of the first storage server; the message queue may include one or more business data to be processed.

[0094] Step 205: Determine the first consumer server and the first processing server corresponding to the first storage server from the preset relationships; the preset relationships include the correspondence between consumer servers and priorities, and the correspondence between processing servers and priorities.

[0095] The preset relationships can also be set in the configuration center, so that the consumer domain cluster can determine the first consumer server corresponding to the first storage server by querying the configuration center; and so that the capability domain cluster can determine the first processing server corresponding to the first storage server by querying the configuration center.

[0096] After storing the first business data in the first storage server, the consumer domain cluster can determine the first consumer server corresponding to the first storage server by querying the preset relationships in the configuration center.

[0097] At the same time, the capability domain cluster can also determine the first processing server corresponding to the first storage server by querying the preset relationships in the configuration center.

[0098] In one embodiment of the present invention, the preset relationship can be established through the following steps:

[0099] Divide the servers into groups corresponding to each priority level; register the consumer servers and processing servers to the corresponding groups based on their performance; generate the preset relationship based on the consumer servers / processing servers in the groups and the priority level of the groups.

[0100] In practical applications, priorities can be divided according to actual needs, for example, setting three levels of priority: high, medium, and low. This embodiment of the invention does not limit this.

[0101] Then, in ZooKeeper, you can divide the community into groups based on priority levels. For example, for high, medium, and low priorities, you can create low-priority groups (low), medium-priority groups (mid), and high-priority groups (high). The grouping rule is: ${cityId}_${sca4low / mid / high}, where 200_sca4low represents the low-priority cluster in city A.

[0102] After obtaining the groups corresponding to each priority level, the consumer server and the processing server can be registered to the corresponding groups according to their performance.

[0103] For example, high-performance consumer servers and high-performance processing servers are registered to high-priority groups; medium-performance consumer servers and high-performance processing servers are registered to medium-priority groups; and low-performance consumer servers and high-performance processing servers are registered to low-priority groups. This embodiment of the invention does not impose any restrictions on this.

[0104] As an example, the above registration process can be implemented using the dubbo:registry tag, with the group attribute of the tag set to ${cityId}_${sca4low / mid / high}, such as 200_sca4low. This embodiment of the invention does not impose any restrictions on this.

[0105] After registering each consumer server and processing server, a correspondence between consumer servers and priorities, and a correspondence between processing servers and priorities, can be established based on the consumer servers / processing servers in each group and the priority level corresponding to each group; thus obtaining the preset relationship mentioned above.

[0106] Step 206: The first service data in the message queue of the first storage server is sent to the first processing server for processing through the first consumer server.

[0107] After determining the first consumer server and the first processing server corresponding to the first storage server, the first consumer server can be used to obtain the first business data from the message queue of the first storage server.

[0108] After obtaining the first business data, the first consumer server can forward the first business data to the first processing server for processing.

[0109] As an example, the message queues that each consumer server can consume (i.e., the message queues of the storage server) can be defined in the configuration center; the consumer server can consume business data from the message queues of the corresponding storage server according to the definition, as shown in Table 2, which is an example of a definition in an embodiment of the present invention.

[0110] Table 2:

[0111]

[0112] After obtaining the first business data, the first consumer server can call the service of the first processing server from the capability domain cluster through Dubbo's RPC (Remote Procedure Call).

[0113] In practical applications, when the business corresponding to the first business data only needs to be processed once, the first processing server can return a response information after processing the first business data; the business system can return the response information to the upstream system for storage, or the upstream system can feed it back to the user. This embodiment of the invention does not limit this.

[0114] When the business corresponding to the first business data needs to be processed multiple times to complete, the first processing server can generate the second business data after processing the first business data; the business system can continue to call a consumer server and a processing server to process the second business data until the business is completed / ended.

[0115] Step 207: Obtain the priority of the second business data obtained after the first processing server processes the first business data.

[0116] Specifically, after processing the first business data, the first processing server can determine the priority of the second business data when it obtains the second business data. For example, the priority of the second business data can be determined by querying the configuration center.

[0117] Step 208: Determine the priority of the second business data, and determine the second storage server based on the priority of the second business data.

[0118] After determining the priority of the second business data, the first processing server can query the configuration center to determine the second storage server that matches the priority of the second business data.

[0119] As an example, the first storage server can also be used directly as the second storage server, and this embodiment of the invention does not limit this.

[0120] Step 209: Write the second business data into the message queue of the second storage server.

[0121] After determining the second storage server corresponding to the second business data, the second business data can be written into the message queue of the second storage server, and the corresponding consumer server and processing server can continue to be called to process the second business data until the business is completed / ended.

[0122] like Figure 3 The diagram illustrates a business system according to an embodiment of the present invention.

[0123] A Dubbo-based business system includes a consumer domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data. The consumer domain cluster includes multiple consumer servers with different performance levels, the capability domain cluster includes multiple processing servers with different performance levels, and the distributed message queue cluster includes multiple storage servers for storing business data with different priorities.

[0124] In the ZooKeeper registry, groups are formed based on priority levels: low priority group, medium priority group, and high priority group.

[0125] In the consumer domain cluster, C1 and C2 are registered in the low-priority group; C3 is registered in the medium-priority group; C4 and C5 are registered in the high-priority group; C1-C5 are consumer servers with different performance in the consumer domain cluster.

[0126] In a capability domain cluster, low-priority capability domains are registered in low-priority groups; medium-priority capability domains are registered in medium-priority groups; and high-priority capability domains are registered in high-priority groups. Low-priority, medium-priority, and high-priority capability domains are processing servers for different capabilities within the capability domain cluster.

[0127] The message queues of storage servers (1-5) can store one or more pieces of business data; for example, the message queue of storage server 1 stores business data 1, business data 2, business data 3, and so on. The business data stored in the storage servers can be obtained from the business application layer of the business system. After receiving order data from the upstream system, the business application layer can first store the order data, then break it down to obtain one or more pieces of business data. Then, each piece of business data can be sent to the corresponding storage server for storage.

[0128] Consumer servers in a consumer domain cluster can retrieve information from the message queues of their corresponding storage servers and send it to the corresponding processing servers for processing. The mapping relationship can be determined from the configuration center of the business system.

[0129] In this embodiment of the invention, the business system can first receive and store order data, which includes at least one business data item. Then, the order data is broken down to obtain the first business data. Next, a first storage server is determined based on the priority of the first business data. The first business data is written into the message queue of the first storage server. From a preset relationship, a first consumer server and a first processing server corresponding to the first storage server are determined. The preset relationship includes a correspondence between consumer servers and priorities, and a correspondence between processing servers and priorities. The first business data in the message queue of the first storage server is sent to the first processing server for processing via the first consumer server. The priority of the second business data obtained after processing by the first processing server is obtained. The priority of the second business data is determined, and a second storage server is determined based on the priority of the second business data. The second business data is written into the message queue of the second storage server. Through this embodiment of the invention, business data is distributed according to business priority so that more important and urgent businesses can be activated first. Furthermore, business data of different priorities are transferred through different channels to achieve resource isolation.

[0130] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0131] Reference Figure 4 The diagram illustrates the structure of a business system according to an embodiment of the present invention. The business system 400 may include the following modules:

[0132] The system includes a consumption domain cluster 410 for consuming business data, a capability domain cluster 420 for processing business data, and a distributed message queue cluster 430 for storing business data. The consumption domain cluster 410 includes multiple consumption servers 411 with different performance levels, the capability domain cluster 420 includes multiple processing servers 421 with different performance levels, and the distributed message queue cluster 430 includes multiple storage servers 431 for storing business data with different priorities.

[0133] The distributed message queue cluster 430 is used to determine a first storage server 432 from the plurality of storage servers 431 according to the priority of the received first service data; and write the first service data into the message queue of the first storage server 432.

[0134] The consumer domain cluster 410 is used to determine the first consumer server 412 and the first processing server 422 corresponding to the first storage server 432; and to send the first business data in the message queue of the first storage server 432 to the first processing server 422 for processing through the first consumer server 422.

[0135] After receiving the first business data, the business system 400 can first determine the priority of the first business data based on the business type of the first business data and the customer type of the corresponding customer; then, based on the priority of the first business data, determine the first storage server 432 that matches it.

[0136] After determining the first storage server 432 for storing the first business data, the business system 400 can write the first business data into the message queue of the first storage server 432; the message queue may include one or more business data to be processed.

[0137] In practical applications, the performance of different consumer servers 411 / processing servers 421 varies. For consumer servers 411 / processing servers 421 with better performance, their ability to read, transmit, and process data is stronger and faster. For consumer servers 411 / processing servers 421 with poorer performance, their ability to read, transmit, and process data is weaker and slower.

[0138] To address this, in order to ensure that important and urgent services can be prioritized and to achieve resource isolation for service data of different priorities, a first consumer server 412 and a first processor corresponding to the first storage server 432 can be identified. The first consumer server 412 and the first processing server 422 can be servers whose performance matches the priority of the first service data. This allows the high-performance consumer server 411 and processing server 421 to process the first service data when its priority is high; or, conversely, the low-performance consumer server 411 and processing server 421 to process the first service data when its priority is low. This embodiment of the invention does not impose any limitations on this approach.

[0139] After determining the first consumer server 412 and the first processing server 422 corresponding to the first storage server 432, the first consumer server 412 can be used to obtain the first business data from the message queue of the first storage server 432.

[0140] After obtaining the first business data, the first consumer server 412 can forward the first business data to the first processing server 422 for processing.

[0141] In this embodiment of the invention, after receiving the first service data, a first storage server can be determined based on the priority of the first service data; then, the first service data is written into the message queue of the first storage server; when processing the first service data, a first consumer server and a first processing server corresponding to the first storage server can be determined, and the first service data in the message queue of the first storage server is sent to the first processing server for processing through the first consumer server. Through this embodiment of the invention, service data is prioritized according to service priority, so that more important and urgent services can be activated first; and service data of different priorities are transferred through different channels to achieve resource isolation.

[0142] Reference Figure 5This diagram illustrates a structural schematic of a business data diversion device according to an embodiment of the present invention, applied to a business system. The business system includes a consumption domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data. The consumption domain cluster includes multiple consumption servers with different performance levels, the capability domain cluster includes multiple processing servers with different performance levels, and the distributed message queue cluster includes multiple storage servers for storing business data with different priorities. It may include the following modules:

[0143] The first determining module 501 is used to receive the first service data and determine the first storage server according to the priority of the first service data.

[0144] The first writing module 502 is used to write the first business data into the message queue of the first storage server;

[0145] The second determining module 503 is used to determine the first consumer server and the first processing server corresponding to the first storage server;

[0146] The processing module 504 is used to send the first business data in the message queue of the first storage server to the first processing server for processing through the first consumer server.

[0147] In an optional embodiment of the present invention, the apparatus further includes:

[0148] The second writing module is used to obtain the priority of the second business data obtained after the first processing server processes the first business data; determine the priority of the second business data, and determine the second storage server according to the priority of the second business data; and write the second business data into the message queue of the second storage server.

[0149] In an optional embodiment of the present invention, the first determining module 501 includes:

[0150] A business data acquisition module is used to receive and store order data; the order data includes at least one piece of business data; the order data is decomposed to obtain the first piece of business data.

[0151] In an optional embodiment of the present invention, the first service data includes first sub-data and second sub-data, and the apparatus further includes:

[0152] The priority determination module is used to determine a first priority of the first service data based on the first sub-data; determine a second priority of the first service data based on the second sub-data; and adjust the first priority based on the second priority to generate a priority for the first service data.

[0153] In an optional embodiment of the present invention, the second determining module 503 is used to determine, from a preset relationship, a first consumer server and a first processing server corresponding to the first storage server;

[0154] The preset relationships include the correspondence between consumer servers and priorities, and the correspondence between processing servers and priorities.

[0155] In an optional embodiment of the present invention, the apparatus further includes:

[0156] The preset relationship determination module is used to divide the priority levels into groups; register the consumer servers and processing servers to the corresponding groups according to their performance; and generate the preset relationship based on the consumer servers / processing servers in the group and the priority level of the group.

[0157] In this embodiment of the invention, after receiving the first service data, a first storage server can be determined based on the priority of the first service data; then, the first service data is written into the message queue of the first storage server; when processing the first service data, a first consumer server and a first processing server corresponding to the first storage server can be determined, and the first service data in the message queue of the first storage server is sent to the first processing server for processing through the first consumer server. Through this embodiment of the invention, service data is prioritized according to service priority, so that more important and urgent services can be activated first; and service data of different priorities are transferred through different channels to achieve resource isolation.

[0158] This invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the above-mentioned business data diversion method.

[0159] This invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, it implements the above-mentioned method for diverting business data.

[0160] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0161] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0162] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0163] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0164] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0166] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0167] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0168] The above provides a detailed description of a business data diversion method, apparatus, and business system. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for diverting business data, characterized in that, The method is applied to a business system, which includes a consumption domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data. The consumption domain cluster includes multiple consumer servers with different performance levels, the capability domain cluster includes multiple processing servers with different performance levels, and the distributed message queue cluster includes multiple storage servers for storing business data with different priorities. Receive the first service data and determine the first storage server based on the priority of the first service data; Write the first business data into the message queue of the first storage server; Determine the first consumer server and the first processing server corresponding to the first storage server; The first consumer server sends the first business data from the message queue of the first storage server to the first processing server for processing.

2. The method according to claim 1, characterized in that, The method further includes: Obtain the priority of the second business data obtained after the first processing server processes the first business data; Determine the priority of the second business data, and determine the second storage server based on the priority of the second business data; The second business data is written into the message queue of the second storage server.

3. The method according to claim 1, characterized in that, The receiving of the first service data includes: Receive and store order data; the order data includes at least one piece of business data; The order data is broken down to obtain the first business data.

4. The method according to claim 1, characterized in that, The first business data includes first sub-data and second sub-data, and the method further includes: Based on the first sub-data, determine the first priority of the first business data; Based on the second sub-data, determine the second priority of the first business data; The first priority is adjusted according to the second priority to generate the priority of the first business data.

5. The method according to claim 1, characterized in that, The determination of the first consumer server and the first processing server corresponding to the first storage server includes: From the preset relationships, determine the first consumer server and the first processing server corresponding to the first storage server; The preset relationships include the correspondence between consumer servers and priorities, and the correspondence between processing servers and priorities.

6. The method according to claim 5, characterized in that, The method further includes: Divide the priorities of each level into corresponding groups; Based on the performance of the consumer server and the processing server, register the consumer server and the processing server to the corresponding group; The preset relationship is generated based on the consumer server / processing server in the group and the priority level of the group.

7. A business system, characterized in that, include: The cluster consists of a consumer domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data. The consumer domain cluster includes multiple consumer servers with different performance levels, the capability domain cluster includes multiple processing servers with different performance levels, and the distributed message queue cluster includes multiple storage servers for storing business data with different priorities. The distributed message queue cluster is used to determine the first storage server from the plurality of storage servers according to the priority of the received first business data. Write the first business data into the message queue of the first storage server; The consumer domain cluster is used to determine the first consumer server and the first processing server corresponding to the first storage server; and to send the first business data in the message queue of the first storage server to the first processing server for processing through the first consumer server.

8. A business data diversion device, characterized in that, The device is applied to a business system, which includes a consumption domain cluster for consuming business data, a capability domain cluster for processing business data, and a distributed message queue cluster for storing business data. The consumption domain cluster includes multiple consumer servers with different performance levels, the capability domain cluster includes multiple processing servers with different performance levels, and the distributed message queue cluster includes multiple storage servers for storing business data with different priorities. The device includes: The first determining module is used to receive the first service data and determine the first storage server according to the priority of the first service data. The first writing module is used to write the first business data into the message queue of the first storage server; The second determining module is used to determine the first consumer server and the first processing server corresponding to the first storage server; The processing module is used to send the first business data in the message queue of the first storage server to the first processing server for processing through the first consumer server.

9. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the service data offloading method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the data diversion method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Business distribution method and business distribution device based on channel separation

    CN105094956A

  • Processing method, device and system of order information

    CN106209953A