CN114979979A - Message processing method and message processing system thereof - Google Patents

Message processing method and message processing system thereof Download PDF

Info

Publication number
CN114979979A
CN114979979A CN202111092833.1A CN202111092833A CN114979979A CN 114979979 A CN114979979 A CN 114979979A CN 202111092833 A CN202111092833 A CN 202111092833A CN 114979979 A CN114979979 A CN 114979979A
Authority
CN
China
Prior art keywords
chatbot
paths
message
messages
delivered
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111092833.1A
Other languages
Chinese (zh)
Other versions
CN114979979B (en
Inventor
林伟嘉
郑敏
毕金龙
吴华挚
胡文辉
李盛阁
何志澎
陈家燊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Internet Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Internet Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Internet Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111092833.1A priority Critical patent/CN114979979B/en
Publication of CN114979979A publication Critical patent/CN114979979A/en
Application granted granted Critical
Publication of CN114979979B publication Critical patent/CN114979979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a message processing method, which comprises the following steps: receiving messages delivered by a plurality of chat robots chatbot; dividing the messages delivered by the chatbot into N service types; and respectively routing the messages delivered by the chatbot to N paths according to the N service types, wherein the messages delivered by the chatbot are transmitted to a gateway through the N paths, and each path in the N paths has a corresponding flow quota. The message processing method provided by the embodiment of the application can improve the message processing efficiency.

Description

Message processing method and message processing system thereof
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a message processing method and a message processing system.
Background
Currently, the sending concurrency capability of the 5G message depends on the concurrency bearing capability of the 5G gateway, and a measure for limiting current concurrency is adopted. For the traditional method of the operator short message gateway, a certain threshold value is allocated to a Service Provider (english: Service Provider, abbreviated as SP), and if the threshold value is exceeded, corresponding flow control is performed, and the message is discarded.
Deriving from the implementation of 5G messages, the current implementation scheme of a 5G gateway (e.g., a map gateway) is to give each chat robot (chatbot) a fixed concurrency threshold, and refuse the chat robot if the concurrency threshold exceeds the fixed concurrency threshold, and require each chatbot or a service provider accessing the chatbot to perform self-throttling according to the credit of the chatbot, which is unfriendly to the chatbot. The common practice of chatbot or service providers is to queue requests into message queues (e.g., kafka, rabbitMQ components, etc.), and consume according to a first-in first-out strategy, so as to ensure that consumption concurrency is not greater than a threshold value, thereby increasing the success rate of sending related messages.
However, the currently and practically applied 5G message gateway technology (assigning a specified quota according to chatbot) has the following disadvantages, and cannot well solve the problems occurring in the development of 5G message services:
(1) the concurrent transmission amount of the whole 5G message cannot be utilized effectively, and the transmission efficiency is not saturated because there is limit in the amount of different chatbot and the message transmission density of the chatbot is uneven. For example, the utilization rate of the chatbot amount is only 10%, but the utilization rate of the chatbot amount is always 100%, the higher utilization rate of the 5G message gateway cannot be achieved as a whole, and the total utilization rate can be only 10% -30% in an extreme case. Since chatbot grows rapidly due to the development of the 5g message, the following formula must be satisfied in accordance with the allocation of credit to chatbot: the total concurrency of a 5g gateway (map gateway) is more than or equal to the number of chatbot, namely chatbot concurrency limit, so that the 5g gateway has to frequently expand the concurrency processing capacity;
(2) the business attribute of the message is not considered, which is not beneficial to the operation of the 5G message, such as a chatbot of a banking service, a reminding notification message of outward transfer of an ' account ' or a customer service request message responding to the user's upload should be more ' preferred ' and ' real-time ' than the common marketing message, but the important real-time message is likely to lag behind the common non-important message based on a first-in first-out mechanism.
Therefore, a method for processing messages is needed to improve the efficiency of processing messages.
Disclosure of Invention
The embodiment of the invention aims to provide a message processing method and a message processing system thereof, which can effectively improve the message processing efficiency.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a method of message processing, the method comprising: receiving messages delivered by a plurality of chat robots chatbot; dividing the messages delivered by the chatbot into N service types; and respectively routing the messages delivered by the chatbot to N paths according to the N service types, wherein the messages delivered by the chatbot are transmitted to a gateway through the N paths, and each path in the N paths has a corresponding flow quota.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the method further includes: setting a respective traffic allowance for each of the N paths.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the method further includes: and adjusting the traffic quota corresponding to each of the N paths according to the message queuing backlog condition of each of the N paths, wherein the traffic quota corresponding to the path with the larger message backlog in the N paths is larger.
With reference to the first aspect and the foregoing implementation manner, in a third possible implementation manner of the first aspect, each of the N paths includes M queues, each of the M queues corresponds to a corresponding sub-traffic quota, the messages delivered by the chatbot include M classes, the M queues are respectively used for delivering the messages of the M classes, and the routing of the messages delivered by the chatbot to the N paths according to the N service types respectively for transmission includes: and delivering the ith grade message in the plurality of chatbot delivered messages to an ith queue for transmission, wherein the value range of i is 1-M, and M is a positive integer.
With reference to the first aspect and the foregoing implementation manner, in a fourth possible implementation manner of the first aspect, each of the M queues corresponds to a corresponding sub-traffic quota, and a ratio of the traffic quota of the M queues is fixed.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the method further includes: and acquiring receipt information of the messages delivered by the chat robots chatbot from the gateway, and adjusting the flow quota corresponding to each of the N paths according to the receipt information.
In a second aspect, a message processing system is provided, which includes: the receiving unit is used for receiving messages delivered by a plurality of chat robots chatbot; the processing and transmitting unit is used for dividing the messages delivered by the chatbot into N service types; and the processing and transmitting unit is further configured to route the messages delivered by the chatbot to N paths according to the N service types, respectively, where the messages delivered by the chatbot are transmitted to the gateway via the N paths, and each of the N paths has a corresponding traffic quota.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the processing and transmitting unit is further configured to: setting a respective traffic allowance for each of the N paths.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the processing and transmitting unit is further configured to: and adjusting the traffic quota corresponding to each of the N paths according to the message queuing backlog condition of each of the N paths, wherein the traffic quota corresponding to the path with the larger message backlog in the N paths is larger.
With reference to the second aspect and the foregoing implementation manner, in a third possible implementation manner of the second aspect, each of the N paths includes M queues, each of the M queues corresponds to a corresponding sub-flow quota, the multiple chatbot delivered messages include M levels, the M queues are respectively used for delivering the M levels of messages, and the processing and transmitting unit is configured to deliver an ith level of messages in the multiple chatbot delivered messages to an ith queue for transmission, where i ranges from 1 to M, and M is a positive integer.
With reference to the second aspect and the foregoing implementation manner, in a fourth possible implementation manner of the second aspect, each of the M queues corresponds to a corresponding sub-traffic quota, and a ratio of the traffic quota of the M queues is fixed.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the processing and transmitting unit is further configured to: and acquiring receipt information of the messages delivered by the chat robots chatbot from the gateway, and adjusting the flow quota corresponding to each of the N paths according to the receipt information.
In a third aspect, an embodiment of the present invention provides a network device, including a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; the memory is used for storing a computer program; the processor is configured to execute the program stored in the memory, and implement the steps of the method for configuring network resources according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for configuring a network resource according to the first aspect are implemented.
As can be seen from the above technical solutions provided in the embodiments of the present invention, a plurality of network performance indicators corresponding to a cell identifier of a whole network and state information of a network resource corresponding to each network performance indicator are obtained, a plurality of network performance indicator initialization weights associated with the network resource are calculated according to the state information of the network resource, regular values of a plurality of network performance indicators corresponding to the cell identifier are calculated, then, a network resource matching degree matching the cell identifier is calculated according to the plurality of network performance indicator initialization weights associated with the network resource and the regular values of the plurality of network performance indicators corresponding to the cell identifier, and the state information of the network resource corresponding to the cell identifier is configured according to the network resource matching degree. The embodiment of the invention realizes the problem of effective and reasonable configuration of limited network resources.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a message processing method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a message processing method according to another embodiment of the present invention.
Fig. 3 is a schematic block diagram of a message processing system according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a network device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for configuring network resources and network equipment.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an execution subject of the method may be a message processing system deployed on a server, where the server may be an independent server or a server cluster composed of multiple servers, and the server may be a server capable of performing network operation processing, such as a server configured by a network resource. The method 100 may specifically include the following steps:
step S110, receiving messages delivered by a plurality of chat robots chatbot;
step S120, dividing the messages delivered by the chatbot into N service types;
step S130, the messages delivered by the chatbot are respectively routed to N paths according to the N service types, wherein the messages delivered by the chatbot are transmitted to a gateway through the N paths, and each path in the N paths has a corresponding flow quota.
Specifically, the chat robot chatbot may be a 5G message chat robot (chatbot), a short message and multimedia message sender, a message sender software program, and the like, which is not limited in this application.
The unified access layer exposes a corresponding interface to call the chatbot, the message processing system comprises an intelligent message route, the intelligent message route receives a plurality of messages delivered by the chatbot through the access layer, and it should be understood that the messages delivered by the chatbot can be divided into N service types, for example, the messages can be divided into an interactive message type, a mass-sending message type, a real-time notification message type, and the like.
Further, the messages delivered by the chatbot are routed to the N paths for transmission according to the N service types, that is, the messages belonging to a specific service type are transmitted on the corresponding paths.
For example, chatbot delivers point-to-point messages, and point-to-point singletons that have session attribute records for a fixed time are distinguished as "interactive messages" and further routed to an interactive message queue (e.g., kfaka).
If the chatbot delivers the point-to-point message and has no session state within a fixed time, the message is further routed to the real-time message queue, and it should be understood that the fixed time can be configured, for example, 30 minutes, and the present application is not limited thereto.
For example, chatbot delivers bulk mass messages, which are further routed to a mass queue.
Optionally, as an embodiment of the present application, the N service types include: an interactive message type, a mass-sending message type, and a real-time notification message type.
Optionally, as an embodiment of the present application, the method further includes: setting a respective traffic allowance for each of the N paths.
That is, since N paths are used for delivering messages of N service types, respectively, and since the requirement of each message of a service type on the traffic quota is different, the traffic quota can be set for the N paths, respectively, according to the service type.
Query Per Second request (QPS) is a measure of how much traffic a specific query server processes within a specified time, for example, the overall concurrency of 5G message gateway is 10000QPS, where the traffic limit of the path where the interactive message is located is preset: the path flow quota to which the real-time message belongs: the limitation of the path flow of the group sending message is 2: 3: 5, then the corresponding restrictors are 2000, 3000 and 5000 QPS.
Specifically, a path corresponding to each service type is provided with a current limiter, and the current limiter on each path is used for performing flow limitation on the path.
Optionally, as an embodiment of the present application, the method further includes: and adjusting the traffic quota corresponding to each of the N paths according to the message queuing backlog condition of each of the N paths, wherein the sum of the traffic quota of the N paths is unchanged as the traffic quota corresponding to the path with larger message backlog in the N paths is larger.
Specifically, the message processing system further comprises an intelligent regulator, the intelligent regulator is connected with the current limiter of each path, can sense the message queuing backlog condition in each path, actually counts the queuing backlog condition statistics in a period of time, and dynamically adjusts the threshold of the current limiter of each message type queue, if the interactive and real-time type messages in the period of time are less, and the backlog issued by the mass-sent messages is more serious, the threshold of the current limiter of the real-time message and the interactive message is adjusted and reduced, and the threshold of the current limiter of the mass-sent messages is increased.
Optionally, as an embodiment of the present application, the method further includes: and acquiring receipt information of the messages delivered by the chat robots chatbot from the gateway, and adjusting the flow limits corresponding to the N paths according to the receipt information.
Specifically, the intelligent regulator is further connected with the 5G gateway, the receipt of the 5G gateway message is connected through a bypass, when the abnormal fluctuation of the failed receipt of the 5G message gateway is found, the threshold of each message type current limiter is lowered integrally, the 5G message is prevented from being pressurized, and if necessary, the intelligent regulator can perform relevant fusing measures.
It should be understood that the total amount of the traffic quota of the 5G message gateway is not changed, but the traffic quota may be adjusted on a path transmitted by each service type according to the service type, and the specific adjustment may be made according to an actual service requirement, which is not limited in this application.
Optionally, as an embodiment of the present application, each path of the N paths includes M queues, each queue of the M queues corresponds to a corresponding sub-flow quota, the messages delivered by the multiple chatbot includes M levels, the M queues are respectively used for delivering the messages of the M levels, and the routing the messages delivered by the multiple chatbot to the N paths according to the N service types respectively includes: and delivering the ith grade message in the plurality of chatbot delivered messages to an ith queue for transmission, wherein the value range of i is 1-M, and M is a positive integer.
Specifically, if a point-to-point message is delivered by chatbot and there is already a point-to-point single-shot message with session attribute record within a fixed time, it is judged as "interactive message" type and further routed to a corresponding level sub-queue (topic) in an interactive message queue (e.g., kfaka).
If the chatbot delivers point-to-point messages and no session state exists within a fixed time, the messages are further routed to the real-time message queue and enter the corresponding sub-queue according to the chatbot level.
If the batch group sending message is delivered by the chatbot, the batch group sending message is further delivered to the group sending queue by the route, and the batch group sending message enters the corresponding sub-queue according to the chatbot grade.
Optionally, as an embodiment of the present application, a ratio of a corresponding sub-flow quota corresponding to each of the M queues to a flow quota of the M queues is fixed.
Specifically, when the intelligent regulator adjusts the flow rate limit of N paths, M queues in each path are also adjusted according to a preset flow rate limit ratio, and each queue is provided with a sub-queue restrictor.
For example, the traffic limit of a certain path is adjusted to 6000QPS, the chatbot level is divided into 2 levels, and the concurrency ratio is limited to 2: 1, then sub-flow limiters are proportionally divided and set in the sub-queues corresponding to each message class, such as real-time message sub-queues set to 4000QPS and 2000QPS traffic limits; when the traffic quota of the path is adjusted to 3000QPS, the corresponding traffic quota of the two sub-queues of the above two levels will be set to 2000QPS and 1000 QPS.
That is, the threshold of each sub-current limiter is set according to the threshold of the classification type current limiter and the chatbot class, and the cascade adjustment is performed.
The technical scheme provided by the embodiment of the invention can realize the following beneficial effects: the concurrent message capability of the 5G gateway is fully utilized, and the performance utilization rate is improved; by distinguishing the message service types, different flow limits are provided for messages of different service types, so that messages with high service timeliness requirements can be guaranteed to be delivered preferentially, and important message delay caused by the common queuing problem is solved.
Further, according to the gateway receipt and queue backlog condition, queue processing capacity adjustment is carried out, and stability and performance of message sending are guaranteed; meanwhile, priorities can be given to different message types according to the grade attribute of the chatbot, so that classified operation among the chatbots is realized.
FIG. 2 shows a schematic block diagram of a method of one embodiment of the present application. As shown in fig. 2, the unified access layer exposes corresponding interfaces to give multiple chatbot calls, and when the intelligent message routing receives the unified delivery of the access layer, the corresponding chatbot and session attribute are determined, and the next message routing is performed: if the chatbot delivers the point-to-point message, and the point-to-point single-shot message which has the session attribute record in fixed time is judged to be of the type of the interactive message, and is further routed and delivered to a corresponding level sub-queue (topic) in an interactive message queue (such as kfaka); if the chatbot delivers the point-to-point message and no session state exists in fixed time, the message is further routed and delivered to the real-time message queue and enters a corresponding sub-queue according to the chatbot grade; if the batch mass-sending message is delivered by the chatbot, the batch mass-sending message is further delivered to the mass-sending queue by the route, and the batch mass-sending message enters the corresponding sub-queue according to the chatbot grade.
Message queue and current limiter: the system is responsible for enqueuing corresponding messages, wherein the chatbot level determines that the messages enter different sub-queues in the same message type, the concurrent flow rate limits of flow limiters (which can be realized by middleware such as Hystrix and the like) of each sub-queue are different, after the sub-queues in the same message type are dequeued, a unified message type flow limiter exists, and the different message type flow limiters share the integral concurrency of the integral 5G message gateway.
For example, the overall concurrency of the 5G message gateway is 10000QPS, where the interaction message is preset: real-time messaging: group sending message 2: 3: 5, then the corresponding restrictors are 2000, 3000 and 5000 QPS. Wherein the chatbot level is divided into 2 levels, and the concurrency ratio is limited to 2: 1, then the sub-limiters are scaled and set in the sub-queues corresponding to each message type, e.g., the real-time message sub-queues are set to be the sub-limiters of 2000QPS and 1000 QPS.
The intelligent regulator: and actually counting the queuing backlog condition in a period of time, and dynamically adjusting the thresholds of the current limiters of the message type queues and the sub-queue current limiters, if the interactive and real-time type messages in the period of time are less and the backlog issued by the mass-sending messages is more serious, adjusting the thresholds of the current limiters for reducing the real-time messages and the interactive messages, and increasing the thresholds of the current limiters for the mass-sending messages. The threshold value of each sub-current limiter is set according to the threshold value of the classification type current limiter and the chatbot grade, and cascade adjustment is carried out.
The intelligent regulator is also used for externally connecting a bypass message receipt, and when the abnormal fluctuation of the failure receipt of the 5G message gateway is found, for example, the performance is reduced due to the faults of the 5G message gateway and the 5GMC issued by each large area gateway, a method of integrally reducing the threshold value of each message type current limiter is adopted, so that the pressure is prevented from being added to the 5G message, and the intelligent regulator can perform relevant fusing measures when necessary.
Fig. 3 is a schematic block diagram of a message processing system according to an embodiment of the present application, and as shown in fig. 3, the message processing system 300 includes:
a receiving unit 310, wherein the receiving unit 310 is configured to receive messages delivered by a plurality of chat robots chatbot;
a processing and transmitting unit 320, said processing and transmitting unit 320 configured to divide the plurality of chatbot delivered messages into N service types;
the processing and transmitting unit 320 is further configured to route the messages delivered by the chatbot to N paths according to the N service types, respectively, where the messages delivered by the chatbot are transmitted to the gateway via the N paths, and each of the N paths has a corresponding traffic quota.
Optionally, as an embodiment of the present application, the processing and transmitting unit 320 is further configured to: setting a respective traffic allowance for each of the N paths.
Optionally, as an embodiment of the present application, the processing and transmitting unit 320 is further configured to: and adjusting the flow quota corresponding to each of the N paths according to the message queuing backlog condition of each of the N paths, wherein the flow quota corresponding to the path with the larger message backlog in the N paths is larger.
Optionally, as an embodiment of the present application, each of the N paths includes M queues, each of the M queues corresponds to a corresponding sub-flow quota, the messages delivered by the multiple chatbot includes M levels, the M queues are respectively used for delivering the messages of the M levels, the processing and transmitting unit 320 is configured to deliver the message of the ith level in the messages delivered by the chatbot to the ith queue for transmission, where i has a value range from 1 to M, and M is a positive integer.
Optionally, as an embodiment of the present application, a ratio of a corresponding sub-flow quota corresponding to each of the M queues to a flow quota of the M queues is fixed.
Optionally, as an embodiment of the present application, the processing and transmitting unit 320 is further configured to: and acquiring receipt information of the messages delivered by the chat robots chatbot from the gateway, and adjusting the flow quota corresponding to each of the N paths according to the receipt information.
The message processing system provided by the embodiment of the invention can realize each process in the embodiment corresponding to the message processing method, and is not described again to avoid repetition.
It should be noted that, the message processing system provided in the embodiment of the present invention and the message processing method provided in the embodiment of the present invention are based on the same inventive concept, and achieve the same beneficial effects, so that the specific implementation of the embodiment may refer to the implementation and beneficial effects of the foregoing configuration method of network resources, and repeated details are not described again.
Based on the same technical concept, the embodiment of the present invention further provides a network device, where the network device is configured to execute the method for configuring network resources, and fig. 4 is a schematic structural diagram of a network device for implementing various embodiments of the present invention, as shown in fig. 4. Network devices may vary widely in configuration or performance and may include one or more processors 401 and memory 402, where the memory 402 may store one or more stored applications or data. Wherein memory 402 may be transient or persistent. The application program stored in memory 402 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a network device. Still further, the processor 401 may be configured to communicate with the memory 402 to execute a series of computer-executable instructions in the memory 402 on a network device. The network apparatus may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input-output interfaces 405, one or more keyboards 406.
Specifically, in this embodiment, the network device includes a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; the memory is used for storing a computer program; the processor is used for executing the program stored in the memory and realizing the following method steps: receiving messages delivered by a plurality of chat robots chatbot; dividing the messages delivered by the chatbot into N service types; and respectively routing the messages delivered by the chatbot to N paths according to the N service types, wherein the messages delivered by the chatbot are transmitted to a gateway through the N paths, and each path in the N paths has a corresponding flow quota.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when executed by a processor, the computer program implements the following method steps: receiving messages delivered by a plurality of chat robots chatbot; dividing the messages delivered by the chatbot into N service types; and respectively routing the messages delivered by the chatbot to N paths according to the N service types, wherein the messages delivered by the chatbot are transmitted to a gateway through the N paths, and each path in the N paths has a corresponding flow quota.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a network device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of message processing, the method comprising:
receiving messages delivered by a plurality of chat robots chatbot;
dividing the messages delivered by the chatbot into N service types;
and respectively routing the messages delivered by the chatbot to N paths according to the N service types, wherein the messages delivered by the chatbot are transmitted to a gateway through the N paths, and each path in the N paths has a corresponding flow quota.
2. The method of claim 1, further comprising:
setting a respective traffic allowance for each of the N paths.
3. The method of claim 2, further comprising:
and adjusting the traffic quota corresponding to each of the N paths according to the message queuing backlog condition of each of the N paths, wherein the traffic quota corresponding to the path with the larger message backlog in the N paths is larger.
4. The method of claim 3, wherein each of the N paths includes M queues, each of the M queues corresponds to a respective sub-traffic quota, the plurality of chatbot delivered messages includes M levels, M queues are respectively used for delivering the M levels of messages, and the routing the plurality of chatbot delivered messages to the N paths according to the N traffic types respectively comprises:
and delivering the ith level message in the messages delivered by the chatbot to an ith queue for transmission, wherein the value range of i is 1 to M, and M is a positive integer.
5. The method of claim 4, wherein each of the M queues has a fixed ratio of the corresponding sub-traffic quota to the traffic quota of the M queues.
6. The method according to any one of claims 3 to 5, further comprising:
and acquiring receipt information of the messages delivered by the chat robots chatbot from the gateway, and adjusting the flow quota corresponding to each of the N paths according to the receipt information.
7. A message processing system, comprising:
the receiving unit is used for receiving messages delivered by a plurality of chat robots chatbot;
the processing and transmitting unit is used for dividing the messages delivered by the chatbot into N service types;
and the processing and transmitting unit is further configured to route the messages delivered by the chatbot to N paths according to the N service types, respectively, where the messages delivered by the chatbot are transmitted to the gateway via the N paths, and each of the N paths has a corresponding traffic quota.
8. The message processing system of claim 7, wherein the processing transmission unit is further configured to: and adjusting the traffic quota corresponding to each of the N paths according to the message queuing backlog condition of each of the N paths, wherein the traffic quota corresponding to the path with the larger message backlog in the N paths is larger.
9. The message processing system of claim 8, wherein each of the N paths includes M queues, each of the M queues corresponds to a respective sub-traffic quota, the plurality of chatbot delivered messages includes M levels, the M queues are respectively used for delivering the M levels of messages, the processing and transmitting unit is configured to deliver an ith level of messages in the plurality of chatbot delivered messages to an ith queue for transmission, wherein i ranges from 1 to M, and M is a positive integer.
10. Message processing system according to claim 8 or 9, characterized in that the processing transmission unit is further configured to: and acquiring receipt information of the messages delivered by the chat robots chatbot from the gateway, and adjusting the flow quota corresponding to each of the N paths according to the receipt information.
CN202111092833.1A 2021-09-17 2021-09-17 Message processing method and message processing system thereof Active CN114979979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111092833.1A CN114979979B (en) 2021-09-17 2021-09-17 Message processing method and message processing system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111092833.1A CN114979979B (en) 2021-09-17 2021-09-17 Message processing method and message processing system thereof

Publications (2)

Publication Number Publication Date
CN114979979A true CN114979979A (en) 2022-08-30
CN114979979B CN114979979B (en) 2023-07-21

Family

ID=82975025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111092833.1A Active CN114979979B (en) 2021-09-17 2021-09-17 Message processing method and message processing system thereof

Country Status (1)

Country Link
CN (1) CN114979979B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227749A (en) * 2013-04-26 2013-07-31 北京小米科技有限责任公司 Message transmitting method and equipment
WO2014146394A1 (en) * 2013-03-22 2014-09-25 中兴通讯股份有限公司 Method and apparatus for controlling traffic of short message service message call
CN104092619A (en) * 2014-07-25 2014-10-08 华为技术有限公司 Traffic control method and device
CN104105052A (en) * 2014-06-30 2014-10-15 联想(北京)有限公司 Information processing method and electronic equipment
CN107566287A (en) * 2017-07-26 2018-01-09 阿里巴巴集团控股有限公司 The control method and device of message traffic
CN111866148A (en) * 2020-07-23 2020-10-30 浪潮云信息技术股份公司 Message queue flow control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014146394A1 (en) * 2013-03-22 2014-09-25 中兴通讯股份有限公司 Method and apparatus for controlling traffic of short message service message call
CN103227749A (en) * 2013-04-26 2013-07-31 北京小米科技有限责任公司 Message transmitting method and equipment
CN104105052A (en) * 2014-06-30 2014-10-15 联想(北京)有限公司 Information processing method and electronic equipment
CN104092619A (en) * 2014-07-25 2014-10-08 华为技术有限公司 Traffic control method and device
CN107566287A (en) * 2017-07-26 2018-01-09 阿里巴巴集团控股有限公司 The control method and device of message traffic
CN111866148A (en) * 2020-07-23 2020-10-30 浪潮云信息技术股份公司 Message queue flow control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘耀;金跃辉;崔毅东;: "发布订阅系统中高效消息投递机制的研究", 网络新媒体技术 *

Also Published As

Publication number Publication date
CN114979979B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN107197015B (en) Message processing method and device based on message queue system
CN107241281B (en) Data processing method and device
CN109451072A (en) A kind of message caching system and method based on Kafka
CN113596150B (en) Message pushing method, device, computer equipment and storage medium
CN113422842B (en) Distributed power utilization information data acquisition system considering network load
CN112650575B (en) Resource scheduling method, device and cloud service system
CN112445857A (en) Resource quota management method and device based on database
US20070058651A1 (en) Method, system and program product for setting a transmission rate in a network
US10783005B2 (en) Component logical threads quantity adjustment method and device
CN106936867A (en) The response method and device of a kind of service request
CN114827049B (en) Pile-up data consumption method based on kafka, terminal equipment and storage medium
CN113395671B (en) Message pushing rate adjusting method and device and server
CN109905331B (en) Queue scheduling method and device, communication equipment and storage medium
CN117793583A (en) Message forwarding method and device, electronic equipment and computer readable storage medium
CN114979979B (en) Message processing method and message processing system thereof
CN114978998B (en) Flow control method, device, terminal and storage medium
CN116055401A (en) Message processing method, device, equipment and storage medium
CN112202914B (en) Message pushing method and device
CN115766582A (en) Flow control method, device and system, medium and computer equipment
CN115550284A (en) Message processing method, device and equipment
CN102056097A (en) Message sending method based on gateway and Parlay X gateway
US10986036B1 (en) Method and apparatus for orchestrating resources in multi-access edge computing (MEC) network
CA3115412C (en) Methods for managing bandwidth allocation in a cloud-based system and related bandwidth managers and computer program products
CN108718285B (en) Flow control method and device of cloud computing cluster and server
WO2024131421A1 (en) Adaptive dynamic traffic-limiting method and device for message middleware, and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant