Multi-dimensional message dynamic scheduling method, computer readable storage medium and device

By configuring message body fields and classification configuration groups and users in the messaging system of Internet games, and formulating identification strategies to achieve dynamic scheduling isolation of messages, the problem of insufficient message processing capabilities and delays in high concurrency is solved, and system performance and user experience are improved.

CN119892775APending Publication Date: 2025-04-25WALANWALAN COM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510035883.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The messaging systems of existing Internet games are prone to bottlenecks under high concurrency conditions and cannot effectively isolate the processing of different types of messages, resulting in delays in messages from ordinary users and degradation of system performance.

Method used

By configuring the message body field to identify the priority and type of message, classifying and configuring groups and users in the system, formulating identification policies to monitor and schedule messages in real time, and realizing dynamic scheduling isolation of messages.

Benefits of technology

Improve the system's message processing capability in high concurrency situations, reduce message delay, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892775A_ABST
    Figure CN119892775A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a multi-dimensional message dynamic scheduling method, a computer readable storage medium and a device. The method comprises the following steps: configuring a message body field for identifying the priority and the type of a message; the message body field comprises a user ID field, a target group field or an operation strategy field; classifying and configuring groups and users in the system; wherein the types of the groups comprise a large group and a small group, and the types of the users comprise active users and common users; configuring an identification strategy based on the configured message body fields and groups and the classification of the users; monitoring messages and flow volumes thereof in the system in real time, identifying the messages according to a set identification strategy, and scheduling and isolating the messages conforming to the identification strategy; the scheduling isolation comprises physical scheduling isolation, resource scheduling isolation and logic scheduling isolation. The message is scheduled and isolated so that normal message circulation of a common user is not influenced, the message processing capability under the high concurrency condition is improved, the message delay is reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electronic data processing, and in particular relates to a dynamic scheduling method for multi-dimensional messages, a computer-readable storage medium and a device. Background Art

[0002] In existing Internet games, the flow of messages in the current messaging system usually relies on a single message processing architecture. When there are many active users, large groups of people, or when operational messages suddenly push a large number of real-time messages, it often affects the flow speed of ordinary user messages.

[0003] Because the existing technology fails to effectively distinguish the priorities of different types of messages, especially when faced with sudden high-frequency messages, the system is prone to bottlenecks. In addition, simple queue management is usually adopted in the existing technology, but in the case of high concurrency, it is impossible to effectively isolate the messages of active users from the messages of ordinary users, resulting in a decrease in the overall system performance. When there are a large number of groups, such as 1,000 groups, and each group has many members and chats frequently, up to 500 real-time messages may be generated per second, resulting in a total of 500,000 real-time messages. The sudden push of operational messages may also affect a large number of users, resulting in message delays and blockages.

[0004] Therefore, the existing technology has the following major shortcomings: insufficient message processing capabilities, unable to cope with high-concurrency real-time messages; unable to effectively isolate the processing of different types of messages, resulting in delays in ordinary user messages; lack of flexible resource scheduling mechanism, unable to dynamically adjust processing strategies according to the amount of real-time messages; sudden push of operational messages may cause system overload, affecting user experience. Summary of the invention

[0005] In view of this, on the one hand, some embodiments disclose a method for dynamic scheduling of multi-dimensional messages, including the steps of:

[0006] S1. Configure the message body field to identify the priority and type of the message; the message body field includes: user ID field, target group field or operation strategy field;

[0007] S2. Classify and configure the groups and users in the system; the types of groups include large groups and small groups, and the types of users include active users and ordinary users;

[0008] S3. Configure identification strategies based on the configured message body fields and group and user classifications;

[0009] S4. Monitor the messages and their flow in the system in real time, identify the messages according to the set identification strategy, and schedule and isolate the messages that meet the identification strategy.

[0010] Furthermore, in some embodiments of the dynamic scheduling method of multi-dimensional messages disclosed, if the number of messages sent by a user per second is greater than a preset value, the user is determined to be an active user, otherwise the user is a common user.

[0011] Some embodiments disclose a dynamic scheduling method for multi-dimensional messages. If the number of users in a group is greater than a preset value, the group is determined to be a large group, otherwise it is a small group.

[0012] In the method for dynamic scheduling of multi-dimensional messages disclosed in some embodiments, in step S3, the identification strategy includes a user quantity identification strategy, specifically including:

[0013] Identify the user based on the user ID field of the message;

[0014] Determine whether there is a large increase in the number of users based on the number of users within a certain period of time;

[0015] If the number of users increases significantly within a certain period of time, users are classified according to their identity fields, and messages sent by users that meet the set categories are scheduled and isolated;

[0016] If the number of users does not increase significantly within a certain period of time, user messages will be processed normally.

[0017] In some embodiments, the dynamic scheduling method of multi-dimensional messages disclosed in the present invention includes an identification strategy for user categories, specifically including:

[0018] Identify the user based on the user ID field of the message;

[0019] Further determine whether the user is an active user based on the user identity;

[0020] If the user is an active user, the message is scheduled and isolated as a message of the active user;

[0021] If the user is a common user, the message is processed normally.

[0022] In some embodiments, the dynamic scheduling method of multi-dimensional messages disclosed in the present invention includes an operation strategy message identification strategy, specifically including:

[0023] If the message contains an operation policy field, the message is treated as an operation policy message for scheduling isolation;

[0024] If the message does not contain the operational policy field, the message is processed normally.

[0025] In some embodiments, the dynamic scheduling method of multi-dimensional messages disclosed in the present invention includes a group type identification strategy, specifically including:

[0026] identifying a group based on a target group field of the message;

[0027] Determine whether the target group of the message is a large group based on the number of users in the group;

[0028] If the target group of the message is a large group, the message will be scheduled and isolated as a large group message;

[0029] If the target group of the message is a small group, the message is processed normally.

[0030] In some embodiments, the dynamic scheduling method of multi-dimensional messages disclosed in the present invention includes:

[0031] Physical scheduling isolation: dispatching messages to another message queue and using other physical resources for processing;

[0032] Resource scheduling isolation: dispatch messages to another thread pool and use it for processing;

[0033] Logical scheduling isolation, dispatching messages to other threads for multi-threaded processing.

[0034] On the other hand, some embodiments disclose a computer-readable storage medium having a computer program stored thereon. When the computer program is read, the dynamic scheduling method for multi-dimensional messages disclosed in the embodiments of the present invention is executed.

[0035] On the other hand, some embodiments disclose a device, including a processor and a memory; a computer program is stored in the memory, and when the computer program is processed by the processor, the dynamic scheduling method of multi-dimensional messages disclosed in the embodiments of the present invention is executed.

[0036] The dynamic scheduling method for multi-dimensional messages disclosed in the embodiment of the present invention performs real-time dynamic identification of messages according to the identification strategy, and schedules and isolates the messages that meet the conditions so as not to affect the normal flow of messages of ordinary users, thereby improving the message processing capability under high concurrency of the system, reducing message delays, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flow chart of a method for dynamically scheduling multi-dimensional messages disclosed in some embodiments;

[0038] Figure 2 This is a flow chart of the dynamic scheduling method for multi-dimensional messages disclosed in Example 1. DETAILED DESCRIPTION

[0039] The word "embodiment" used herein as an "exemplary" does not necessarily mean that any embodiment described is superior or better than other embodiments. Performance index tests in the embodiments of the present invention are performed using conventional test methods in the art unless otherwise specified. It should be understood that the terms described in the embodiments of the present invention are only used to describe specific implementation methods and are not intended to limit the contents disclosed in the embodiments of the present invention.

[0040] Unless otherwise specified, the technical and scientific terms used herein have the same meanings as commonly understood by ordinary technicians in the technical field to which the embodiments of the present invention belong; other experimental methods and technical means not specifically specified in the embodiments of the present invention refer to experimental methods and technical means commonly used by ordinary technicians in the field.

[0041] The terms "substantially" and "approximately" used herein are used to describe small fluctuations. For example, they can refer to less than or equal to ±5%, such as less than or equal to ±2%, such as less than or equal to ±1%, such as less than or equal to ±0.5%, such as less than or equal to ±0.2%, such as less than or equal to ±0.1%, such as less than or equal to ±0.05%. The numerical data represented or presented in the range format herein are used only for convenience and brevity, and should therefore be flexibly interpreted as including not only the values ​​clearly listed as the limits of the range, but also all independent values ​​or sub-ranges contained in the range. For example, the numerical range of "1-5%" should be interpreted as including not only the clearly listed values ​​of 1% to 5%, but also the independent values ​​and sub-ranges within the range shown. Therefore, independent values ​​such as 2%, 3.5% and 4% and sub-ranges such as 1%-3%, 2%-4% and 3%-5% are included in this numerical range. This principle also applies to the range of only one numerical value. In addition, such an interpretation applies regardless of the width of the range or the characteristics described.

[0042] In this document, including in the claims, transitional words such as "comprises," "includes," "with," "having," "containing," "involving," "accommodating," etc. are understood to be open-ended, i.e., meaning "including but not limited to." Only the transitional words "consisting of" and "composed of" are closed transitional words.

[0043] In order to better illustrate the present invention, numerous specific details are provided in the specific examples below. It should be understood by those skilled in the art that the present invention can be implemented without certain specific details. In the embodiments, some methods, means, instruments, equipment, etc. well known to those skilled in the art are not described in detail in order to highlight the gist of the present invention.

[0044] Under the premise of no conflict, the technical features disclosed in the embodiments of the present invention may be arbitrarily combined, and the resulting technical solutions belong to the contents disclosed in the embodiments of the present invention.

[0045] In some implementations, a method for dynamically scheduling multi-dimensional messages includes the steps of:

[0046] S1. Configure the message body field to identify the priority and type of the message; the message body field includes: a user ID field, a target group field or an operation policy field; generally, the message body field contains specific fields to identify different information, for example, the user ID field is used as the user's identifier, and the identity of the user who sent the message can be determined based on the identifier; the target group field is used as the identifier of the group to which the message is sent, and whether the message is sent to a certain group can be determined based on the identifier; the operation policy field is used as the identifier of the operation policy, and whether the message is operation information can be determined based on the identifier;

[0047] S2. Classify and configure the groups and users in the system; the types of groups include large groups and small groups, and the types of users include active users and ordinary users;

[0048] Generally, if the number of messages sent by a user per second is greater than the preset value, the user is determined to be an active user, otherwise it is a normal user; for example, if a user sends more than 100 messages in one second, the user can be determined to be an active user. If the number of active users is greater than 1,000, then there is a situation where 100,000 messages are sent at the same time, which will affect the messages sent by other normal users; for example, if there are 100,000 users chatting at the same time, the messages of 1,000 active users will affect the normal messages of the other 99,000 users, so the messages of active users should be scheduled and isolated;

[0049] Generally, if the number of users in a group is greater than the preset value, the group is determined to be a large group, otherwise it is a small group; for example, if there are 10,000 people chatting in a group, if 10 notification messages are sent to 10,000 people in the group at the same time, 100,000 notification messages need to be sent at the same time, which will affect the message sending flow of other users, so the messages sent to the group need to be scheduled and isolated;

[0050] S3. Configure identification strategies based on the configured message body fields and group and user classifications;

[0051] S4. Monitor the messages and their flow in the system in real time, identify the messages according to the set identification strategy, and schedule and isolate the messages that meet the identification strategy.

[0052] In the method for dynamic scheduling of multi-dimensional messages disclosed in some embodiments, in step S3, the identification strategy includes a user quantity identification strategy, specifically including:

[0053] Identify the user based on the user ID field of the message;

[0054] Judging whether there is a large increase in the number of users based on the number of users within a certain period of time; generally, a threshold of the user number growth rate can be set, and when the user number growth rate is greater than the threshold, it is determined that there is a large increase in the number of system platform users; for example, the threshold can be set to 30%, 40% or 50%, etc., and when the user growth rate is greater than the threshold, it is determined that there is a large increase in users;

[0055] If the number of users increases significantly within a certain period of time, users are classified according to their identity fields, and messages sent by users that meet the set categories are scheduled and isolated;

[0056] If the number of users does not increase significantly within a certain period of time, user messages will be processed normally.

[0057] Generally, when there is a large increase in the number of system platform users, the number of messages sent by most users may be similar. In order to improve the efficiency of message delivery, you can configure the ID fields of different users and classify users according to the last digit of their ID. In the subsequent dynamic monitoring of messages, when there is a large increase in users, the messages of users belonging to specific categories will be scheduled and isolated. For example, when there is a sudden and significant increase in messages, the messages of users with two-digit last digit IDs of 01 will be scheduled and isolated, while the messages of users with two-digit last digit IDs such as 02, 03, 04, etc. will be processed normally without affecting their delivery.

[0058] In the method for dynamic scheduling of multi-dimensional messages disclosed in some embodiments, in step S3, the identification strategy includes a user category identification strategy, specifically including:

[0059] Identify the user based on the user ID field of the message;

[0060] Further determine whether the user is an active user based on the user identity;

[0061] If the user is an active user, the message is scheduled and isolated as a message of the active user;

[0062] If the user is a common user, the message is processed normally.

[0063] In the method for dynamic scheduling of multi-dimensional messages disclosed in some embodiments, in step S3, the identification strategy includes an operation strategy message identification strategy, specifically including:

[0064] If the message contains an operation policy field, the message is treated as an operation policy message for scheduling isolation;

[0065] If the message does not contain the operational policy field, the message is processed normally.

[0066] For example, the system platform has 1 million current users. When the system platform requires all users to send an operational message to launch a promotion activity, 1 million operational messages will be sent to notify all users. At this time, other users may also be sending messages to chat with each other. At this time, sending 1 million operational messages will affect the chat information of other users. For this reason, an operational policy field can be configured for the operational message of the promotion activity. When the system recognizes the notification message, the message with the operational policy field will be scheduled and isolated so as not to affect other chat information.

[0067] In the method for dynamic scheduling of multi-dimensional messages disclosed in some embodiments, in step S3, the identification strategy includes a group type identification strategy, specifically including:

[0068] identifying a group based on a target group field of the message;

[0069] Determine whether the target group of the message is a large group based on the number of users in the group;

[0070] If the target group of the message is a large group, the message will be scheduled and isolated as a large group message;

[0071] If the target group of the message is a small group, the message is processed normally.

[0072] In the method for dynamically scheduling multi-dimensional messages disclosed in some embodiments, in step S4, scheduling isolation includes:

[0073] Physical scheduling isolation: dispatching messages to another message queue and using other physical resources for processing;

[0074] Resource scheduling isolation: dispatch messages to another thread pool and use it for processing;

[0075] Logical scheduling isolation, dispatching messages to other threads for multi-threaded processing.

[0076] Generally, different scheduling isolation methods can be used for different messages. When performing physical scheduling isolation, messages from different users are topic isolated to ensure that messages from different users do not affect each other. For example, messages of active users are topic isolated from messages of ordinary users to ensure that messages of active users and ordinary users do not affect each other during processing. When performing resource scheduling isolation, messages that need to be scheduled and isolated are scheduled to another thread pool for independent processing in the thread pool without affecting the processing of normal messages. When performing logical scheduling isolation, messages that need to be scheduled and isolated are scheduled to another thread. In this way, different threads are used to process different types of messages separately to prevent mutual impact.

[0077] Some embodiments disclose a computer-readable storage medium having a computer program stored thereon. When the computer program is read, the method for dynamic scheduling of multi-dimensional messages disclosed in the embodiments of the present invention is executed.

[0078] Some embodiments disclose an apparatus including a processor and a memory; a computer program is stored in the memory, and when the computer program is processed by the processor, the dynamic scheduling method of multi-dimensional messages disclosed in the embodiments of the present invention is executed.

[0079] The technical details are further illustrated below in conjunction with embodiments.

[0080] Example 1

[0081] Figure 1 This is a flow chart of the dynamic scheduling method for multi-dimensional messages disclosed in Example 1;

[0082] In Embodiment 1, the dynamic scheduling method of multi-dimensional messages includes:

[0083] Configure the message body field to identify the priority and type of the message; the message body field includes: user ID field, target group field or operation strategy field; the user ID field contains four digits;

[0084] Classify and configure groups and users in the system; groups include large groups and small groups, and users include active users and ordinary users; groups with more than 10,000 users are large groups, and groups with less than 10,000 users are small groups; users who send more than 10 messages per second are active users, and those who send less than 10 messages per second are ordinary users;

[0085] Configure identification policies based on the configured message body fields and group and user classifications;

[0086] The system monitors the messages sent and their flow in real time. After the system detects the message, it reads all the identification policy configurations and identifies the received message through the identification policy configurations.

[0087] Determine whether it is an operation policy message; if the message contains an operation policy field, determine that the message is an operation policy message, and perform physical scheduling isolation on the message;

[0088] If not, further identify the user identity of the message;

[0089] Identify the user identity based on the user ID field contained in the message; and determine the number of current users. If the number of users in the system increases and the growth rate is greater than the threshold of 30%, it is determined that there is a large increase in users; classify according to the last two digits of the user ID, and isolate the thread of the user with the last digit 01;

[0090] If not, further determine whether the user is an active user;

[0091] According to the user identity, if the number of messages sent by the user in one second is greater than 10, the user is determined to be an active user, and the message is isolated in the thread pool as the message of the active user;

[0092] If not, further determine the target group of the message; identify the group according to the target group field of the message; determine whether the target group of the message is a large group according to the number of users in the group; if the number of users in the target group of the message is greater than 10,000, the target group is a large group, and the message is scheduled and isolated as a large group message;

[0093] Otherwise, the message is processed normally.

[0094] The dynamic scheduling method for multi-dimensional messages disclosed in the embodiment of the present invention performs real-time dynamic identification of messages according to the identification strategy, and schedules and isolates the messages that meet the conditions so as not to affect the normal flow of messages of ordinary users, thereby improving the message processing capability under high concurrency of the system, reducing message delays, and improving user experience.

[0095] The technical solutions disclosed in the embodiments of the present invention and the technical details disclosed in the embodiments are merely illustrative of the inventive concept of the present invention and do not constitute a limitation on the technical solutions of the embodiments of the present invention. Any conventional changes, replacements or combinations of the technical details disclosed in the embodiments of the present invention have the same inventive concept as the present invention and are within the protection scope of the claims of the present invention.

Claims

1. A dynamic scheduling method for multi-dimensional messages, characterized in that: Includes steps: S1. Configure a message body field to identify the priority and type of the message; the message body field includes: a user ID field, a target group field or an operation strategy field; S2. Classify and configure the groups and users in the system; the types of groups include large groups and small groups, and the types of users include active users and ordinary users; S3. Configure identification strategies based on the configured message body fields and group and user classifications; S4. Monitor the messages and their flow in the system in real time, identify the messages according to the set identification strategy, and schedule and isolate the messages that meet the identification strategy.

2. The method for dynamic scheduling of multi-dimensional messages according to claim 1, characterized in that: If the number of messages sent by a user per second is greater than a preset value, the user is determined to be an active user, otherwise it is a common user.

3. The method for dynamic scheduling of multi-dimensional messages according to claim 1, characterized in that: If the number of users in the group is greater than a preset value, the group is determined to be a large group, otherwise it is a small group.

4. The method for dynamic scheduling of multi-dimensional messages according to claim 1, characterized in that: The identification strategy includes a user quantity identification strategy, specifically including: Identify the user based on the user ID field of the message; Determine whether there is a large increase in the number of users based on the number of users within a certain period of time; If the number of users increases significantly within a certain period of time, users are classified according to their identity fields, and messages sent by users that meet the set categories are scheduled and isolated; If the number of users does not increase significantly within a certain period of time, user messages will be processed normally.

5. The method for dynamic scheduling of multi-dimensional messages according to claim 1, characterized in that: The identification strategy includes a user category identification strategy, specifically including: Identify the user based on the user ID field of the message; Further determine whether the user is an active user based on the user identity; If the user is an active user, the message is scheduled and isolated as a message of the active user; If the user is a common user, the message is processed normally.

6. The method for dynamic scheduling of multi-dimensional messages according to claim 1, characterized in that: The identification strategy includes an operation strategy message identification strategy, specifically including: If the message contains an operation policy field, the message is treated as an operation policy message for scheduling isolation; If the message does not contain the operational policy field, the message is processed normally.

7. The method for dynamic scheduling of multi-dimensional messages according to claim 1, characterized in that: The identification strategy includes a group type identification strategy, specifically including: identifying a group based on a target group field of the message; Determine whether the target group of the message is a large group based on the number of users in the group; If the target group of the message is a large group, the message will be scheduled and isolated as a large group message; If the target group of the message is a small group, the message is processed normally.

8. The method for dynamic scheduling of multi-dimensional messages according to claim 1, characterized in that: The scheduling isolation includes: Physical scheduling isolation: dispatching messages to another message queue and using other physical resources for processing; Resource scheduling isolation: dispatch messages to another thread pool and use it for processing; Logical scheduling isolation, dispatching messages to other threads for multi-threaded processing.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is read, the dynamic scheduling method for multi-dimensional messages according to any one of claims 1 to 8 is executed.

10. An apparatus comprising a processor and a memory, characterized in that A computer program is stored in the memory, and when the computer program is processed by the processor, the dynamic scheduling method for multi-dimensional messages according to any one of claims 1 to 8 is executed.