CN112104888B - Method and system for grouping live broadcast users - Google Patents
Method and system for grouping live broadcast users Download PDFInfo
- Publication number
- CN112104888B CN112104888B CN202010989154.3A CN202010989154A CN112104888B CN 112104888 B CN112104888 B CN 112104888B CN 202010989154 A CN202010989154 A CN 202010989154A CN 112104888 B CN112104888 B CN 112104888B
- Authority
- CN
- China
- Prior art keywords
- central
- user
- equipment
- message
- entrance
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Graphics (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention provides a method and a system for grouping live broadcast users, wherein the method comprises the following steps: the method comprises the steps that the entrance equipment receives a login request initiated by a current user and determines a current user group to which the current user belongs; adding the current user to the current user group to update local entry grouped data, and sending a login success message to the central equipment; and after receiving the login success message, the central equipment adds the current user to the current user group so as to update the local central grouped data. The method and the system for grouping the live users can realize hierarchical management on the users; the central equipment can store user groups to which all users belong, and can route any type of messages based on the central equipment without databases such as redis and the like; when a user needs to be inquired, the user can directly inquire based on the central grouped data of the central equipment without accessing a server through a network, and the inquiring efficiency is high.
Description
Technical Field
The invention relates to the technical field of user management, in particular to a live broadcast user grouping method and system.
Background
In the field of live broadcast, particularly in the field of education live broadcast, users can come from all over the country, and in order to provide good live broadcast service quality for the users, entry points can be deployed in multiple regions throughout the country, so that the users can conveniently access the live broadcast. Meanwhile, for convenience of user management, users need to be grouped, but multi-entry login causes the problem of user grouping dispersion.
In the traditional solution, the service of the entry point is generally a service commonly used in industries such as HAProxy, and a central database is adopted to handle the problem of packet dispersion caused by multi-entry registration, that is, the whole live broadcast full-amount packet information is stored in a memory database such as redis.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the existing scheme:
when a unicast message needs to be sent to a certain user or some broadcast messages need to be sent to a certain group, the user needs to go to a database such as redis to inquire the total number of users in the current group, and the inquiry operation needs to pass through a network, so the efficiency is very low; even with cache acceleration, a message is lost because data synchronization is not timely.
Disclosure of Invention
In order to solve the technical problem of low user query efficiency in the existing scheme, the embodiment of the invention provides a live broadcast user grouping method and a live broadcast user grouping system.
In a first aspect, an embodiment of the present invention provides a method for grouping live users, including:
the method comprises the steps that the entrance equipment receives a login request initiated by a current user, and determines a current user group to which the current user belongs according to the login request;
the entrance device adds the current user to the current user group to update local entrance grouped data, and the entrance grouped data is used for recording the user group to which the user logged in by the entrance device belongs;
the entry equipment sends a login success message to the central equipment, wherein the login success message comprises the grouping information of the current user;
and after receiving the login success message, the central equipment adds the current user to the current user group to update local central grouped data, wherein the central grouped data is used for recording user groups to which all users in a login state belong.
In a second aspect, an embodiment of the present invention further provides a system for grouping live users, where the system includes: an inlet device and a central device;
the portal equipment is used for receiving a login request initiated by a current user and determining a current user group to which the current user belongs according to the login request; adding the current user to the current user group to update local entry grouping data, wherein the entry grouping data are used for recording the user group to which the user logged in by the entry equipment belongs; the entrance device is also used for sending a login success message to the center device, wherein the login success message comprises the grouping information of the current user;
and the central equipment is used for adding the current user to the current user group after receiving the login success message so as to update local central grouped data, and the central grouped data is used for recording the user groups to which all the users belong.
According to the method and the system for grouping the live broadcast users, the live broadcast users are managed based on the entrance equipment at the entrance and the central equipment at the central side, and hierarchical management of the users is realized; even if multiple users log in through the access devices in different regions, the central device can store all user groups to which the users belong, and any type of messages can be routed based on the central device. The full packet data is directly stored in the central equipment, for example, the memory of the central equipment, so that a database such as redis and the like is not needed; when a user needs to be inquired, the user can directly inquire based on the central grouped data of the central equipment without accessing a server through a network, and the inquiring efficiency is high. The inlet equipment and the central equipment store corresponding grouped data, and reliability can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present invention, the drawings required to be used in the embodiments or the background art of the present invention will be described below.
Fig. 1 is a flowchart illustrating a method for grouping live users according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating an ingress device recording ingress packet data in a live user grouping method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a central device recording central packet data in a live broadcast user grouping method according to an embodiment of the present invention;
fig. 4 is a detailed flowchart of a method for grouping live users according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram illustrating a system for grouping live users according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention provide methods and systems described by way of flow diagrams and/or block diagrams. 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-readable program instructions. These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, 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/acts specified in the flowchart and/or block diagram block or blocks.
These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner. Thus, the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The embodiments of the present invention will be described below with reference to the drawings.
Fig. 1 shows a flowchart of a method for grouping live users according to an embodiment of the present invention. The method is implemented by an access device and a central device, and implements hierarchical management on users, as shown in fig. 1, the method includes:
step 101: the entrance device receives a login request initiated by a current user, and determines a current user group to which the current user belongs according to the login request.
In the embodiment of the invention, the entrance equipment is used for a user to log in the live broadcast service; generally, the number of the access devices is multiple, so that users in different regions can conveniently log in nearby. For example, when a user in Beijing needs to watch a live video, he may initiate a login request based on the portal device in Beijing to log in to the live service to watch the live. In addition, each user is pre-assigned with a corresponding user group, and one user may be assigned with one user group or multiple user groups. When the portal device receives a login request of a current user, the portal device can determine which user group the current user belongs to, that is, the portal device can determine that the current user belongs to the current user group. The portal device can pre-store the corresponding relationship between each user and the user group, and when the login request of the current user is obtained, the user group to which the current user belongs can be determined based on the corresponding relationship between the users and the user group; or, the login request initiated by the current user may include that the current user belongs to the current user group, and at this time, the current user may also be directly determined to belong to the current user group based on the login request.
Step 102: the portal device adds the current user to the current user group to update the local portal packet data for recording the user group to which the user logged in by the portal device belongs.
In this embodiment, the portal device may record all users logged in to the portal device and user groups to which the users belong, in addition to providing a login portal for the users. In this embodiment, the portal device stores data for recording a user group to which a user registered by the portal device belongs, that is, portal packet data. After the current user is successfully logged in, the current user can be added to the corresponding current user group in the ingress packet data. Wherein, the entrance grouped data record has one or more user groups, and each user group contains users belonging to the user group. Referring to fig. 2, it is assumed that there are currently six entrance devices, and the three regions are divided according to beijing, shenzhen, and hangzhou, and each region includes two entrance devices, for example, the two entrance devices of beijing are "beijing entrance 1" and "beijing entrance 2" in fig. 2, respectively. Taking the example of watching live broadcast 1 as an example, if a user 1 in beijing initiates a login request to beijing portal 1, if the user 1 belongs to group 1 (i.e. a first user group), the portal group data record of the beijing portal 1 indicates that the user 1 belongs to group 1. Similarly, when a user 5 logs in the Shenzhen entry 1, the entry packet data record of the Shenzhen entry 1 indicates that the user 5 belongs to the packet 2. Fig. 2 shows ingress packet data for six ingress devices, which may represent the packet status for each ingress device. Like beijing ingress 1, the ingress packet data may indicate that user 1 belongs to packet 1, that user 2 and user 3 belong to packet 2, and that user 4 belongs to packet 3.
Step 103: the entrance device sends a login success message to the central device, wherein the login success message comprises the grouping information of the current user.
In the embodiment of the invention, after the current user successfully logs in, the entry device can send a login success message to the central device, wherein the login success message can be a message regenerated by the entry device; if the login request initiated by the current user can indicate which user group the current user belongs to, the login request can also be directly used as a login success message. The grouping information of the current user is used to indicate which user group the current user belongs to, for example, the grouping information may include an identifier of the current user and an identifier of the user group to which the current user belongs.
Step 104: after receiving the login success message, the central device adds the current user to the current user group to update local central grouped data, wherein the central grouped data is used for recording the user groups to which all users in the login state belong.
In the embodiment of the present invention, the central device is a device of a unified management user, and the central device may be in communication connection with one or more entry devices to receive a login success message sent by the central device. After receiving the login success message, the central device may determine which user (i.e., the current user) is currently logged in the portal device based on the group information therein, and may determine the user group to which the central device belongs, i.e., the current user group. Similar to the ingress packet data of the ingress device, the central device also stores data for recording the user group to which the user belongs, i.e., the central packet data. The difference between the two is that the portal grouping data only records the users logged in by the corresponding portal equipment and the user groups to which the users belong; the central device can receive the login success messages sent by all the portal devices, so that all the users in the login state and the user groups to which the users belong are recorded in the central grouped data. If the current status of the inlet device is as shown in fig. 2, the corresponding status of the central device can be seen in fig. 3; fig. 3 shows the center packet data stored by the center device, for example, user 1, user 9, user d, etc. belong to packet 1.
In the embodiment of the invention, the method is based on the fact that the entrance equipment at the entrance and the center equipment at the center side jointly manage the users watching the live broadcast, and the hierarchical management of the users is realized; even if multiple users log in through the access devices in different regions, the central device can store all user groups to which the users belong, and any type of messages can be routed based on the central device. In particular, the method also comprises a process of sending messages, which comprises in particular step a1 and/or step a2 described below.
Step A1: when a first message needs to be sent to a target user group, the central equipment determines inlet equipment related to the target user group according to the central grouped data and broadcasts the first message to the inlet equipment related to the target user group; and after receiving the first message, the inlet equipment related to the target user group determines first target users related to the target user group according to the inlet grouping data, and sends the first message to all the first target users.
Step A2: the central grouped data also comprises inlet equipment corresponding to each user, and when a second message needs to be sent to a second target user, the central equipment determines the inlet equipment corresponding to the target user according to the central grouped data and sends the second message to the inlet equipment corresponding to the target user; the portal device corresponding to the target user sends the second message to a second target user.
In the embodiment of the present invention, the central device may broadcast the message in units of groups. Specifically, when the first message needs to be sent to all users in a certain user group, the user group may be regarded as a target user group, and each user in the group is a first target user. At this time, the center device may broadcast the first message to the ingress devices associated with the target user group, so that the ingress devices may further transmit the first message to the corresponding first target users. As shown in fig. 3, if the central device needs to send a first message to group 1, that is, group 1 is a target user group; as can be seen from fig. 2, the beijing portal 1, the beijing portal 2, the hangzhou portal 1, and the hangzhou portal 2 all have the packet 1, so that the four portal devices are portal devices associated with the target user group, and can determine a user associated with the packet 1, i.e., a first target user, based on local portal packet data, and send the first message to the associated user. For example, the hang state portal 2 sends a first message to user i and user n, both of which are first target users.
As will be understood by those skilled in the art, since the central device sends the first message in a broadcast manner, it is not necessary to determine which portal devices need to be broadcasted at this time, that is, all the portal devices may be regarded as the portal devices related to the target user group, and the first message is broadcasted to all the portal devices at this time; after receiving the broadcast message, the ingress device continues to issue the first message if the local ingress packet data includes the target user group, otherwise, the message broadcast by the central device is ignored.
Alternatively, the central device may send a message to a user at a fixed point. In this embodiment, the central packet data recorded by the central device further includes an ingress device corresponding to each user; as shown in fig. 2, the user 1 is logged in based on the beijing portal 1, that is, the user 1 corresponds to the beijing portal 1, and the central grouping data records the correspondence between the user 1 and the beijing portal 1. When a specific user is required to send a second message, the specific user is used as a second target user, the central device can determine the access device corresponding to the second target user based on the central packet data, and then the second message is sent to the corresponding access device, so that the access device can send the second message to the second target user. For example, in fig. 2, the user 1 requests to send a second message to the user 9, since the user 1 is logged in to the beijing portal 1 and the user 9 is logged in to the hangzhou portal 1, which cannot implement message interaction based on the portal device, and this can be implemented based on the central device. Specifically, when the central device determines that the second message needs to be sent to the user 9, it may be determined based on the central packet data that the user 9 is logged in the hangzhou entry 1, at this time, the second message may be sent to the hangzhou entry 1, and then the hangzhou entry 1 sends the second message to the user 9, thereby implementing message communication across the entries.
In addition, optionally, the ingress device and the central device both store corresponding packet data, which can also improve reliability. In this embodiment, the method further includes:
step B1: when the central equipment is restarted, the entrance equipment sends entrance grouping data to the restarted central equipment.
Step B2: and the restarted central equipment generates local central grouped data according to the inlet grouped data.
In the embodiment of the present invention, in order to ensure the efficiency of querying the user, the packet data may be stored in the memory, that is, the ingress packet data is stored in the memory of the ingress device, and the central packet data is stored in the memory of the central device. If the central device is abnormally stopped, the central grouped data in the memory can be cleared, if the central device is restarted later, because the inlet grouped data is stored in the inlet device, the inlet device can send the inlet grouped data stored in the inlet device to the central device at one time, so that the central device can regenerate the central grouped data containing a full amount of users based on the inlet grouped data of all the inlet devices, and the central device can also quickly recover the working state when the central device is stopped and restarted for a short time.
In this embodiment, the number of the center devices may be multiple, for example, two, and at this time, even if one center device is shut down, the other center device can still normally operate, so that the reliability can be further improved. The access device can send login success messages to all the central devices in a broadcasting mode, so that different central devices can receive the login success messages, and the same central grouped data is generated and stored for subsequent use.
The method for grouping the live broadcast users, provided by the embodiment of the invention, manages the users watching the live broadcast based on the entrance equipment at the entrance and the center equipment at the center side together, thereby realizing the hierarchical management of the users; even if multiple users log in through the access devices in different regions, the central device can store all user groups to which the users belong, and any type of messages can be routed based on the central device. The full packet data is directly stored in the central equipment, for example, the memory of the central equipment, so that a database such as redis and the like is not needed; when a user needs to be queried, the user can be directly queried based on the central grouped data of the central equipment without accessing a server through a network, and the query efficiency is high. The inlet equipment and the central equipment store corresponding grouped data, and reliability can be improved.
On the basis of the above embodiment, when a user logs out or an ingress device fails, the corresponding user in the packet data (including the ingress packet data and the central packet data) needs to be deleted, so as to ensure that all users recorded in the packet data are users in the login state. In this embodiment, the method further includes: a multi-user deletion procedure and/or a single-user deletion procedure. Wherein, the multi-user deleting process comprises:
step C1: when the entrance device is off-line, the center device deletes the user related to the off-line entrance device from the corresponding user group to update the local center grouping data.
The single-user deletion process comprises:
step D1: the entrance device receives a log-in request initiated by a current user, and deletes the current user from the current user group to update local entrance packet data.
Step D2: the portal device sends a logout message to the central device.
Step D3: after receiving the log-out message, the center device deletes the current user from the current user group to update the local center grouping data.
In the embodiment of the invention, when the inlet equipment is in fault and offline, a multi-user deleting process can be executed. Specifically, if a certain ingress device goes offline and is unable to communicate with the central device, the central device may delete the user associated with the ingress device from the central packet data. As shown in fig. 2 and fig. 3, if the beijing portal 1 fails, the user 1, the user 2, the user 3, and the user 4 may be offline, and the central device may not communicate with the beijing portal 1, at this time, the central device may delete the user 1, the user 2, the user 3, and the user 4 in its central packet data. Optionally, when the beijing portal 1 fails, the user 1 and the like may be automatically accessed to the beijing portal 2, and at this time, the beijing portal 2 sends the login success message of the user 1 to the central device, so that the central device adds the user 1 to the portal packet data again.
If a user logs out actively, the single-user deleting process can be executed. Specifically, if the current user initiates a logout request, the portal device may delete the current user from the portal packet data, and send a logout request indicating that the current user logs out to the central device, so that the central device also deletes the current user in the central packet data. By deleting the users, the users recorded in the grouped data can be guaranteed to be all users in the login state.
The flow of the method is described in detail below by means of an example. Referring to fig. 4, the method includes steps 404-411:
step 401: user a sends a login request to the portal device, the login request including the identity of user a.
The user A can initiate a login request based on a client such as a smart phone and a tablet computer, the identifier of the user A can be uniquely located to which user the identifier identifies, and the identifier can be a user name, a mobile phone number, an identity card number and the like of the user A.
Step 402: and the entrance equipment determines a corresponding user group to which the user A belongs according to the login request, and adds the user A to the corresponding user group so as to update local entrance packet data.
Step 403: the portal device transmits a login success message including the grouping information of the user a to the center device.
In the embodiment of the present invention, when the user a successfully logs in, the above steps 402 and 403 are executed, and the execution sequence of the two steps is not limited.
Step 404: and after receiving the login success message, the central equipment adds the user A to a corresponding user group so as to update the local central grouped data.
Step 405: when a message needs to be sent to the user A, the central equipment determines the entrance equipment corresponding to the user A according to the central grouping data.
Step 406: the central device sends the message to the portal device corresponding to user a.
Step 407: the portal device sends the message to user a.
Step 408: user a initiates a logout request to the portal device.
Step 409: the ingress device removes user a from the corresponding user group to update the local ingress packet data.
Step 410: the portal device sends a logout message to the central device.
Step 411: after receiving the log-out message, the center device deletes the user A from the corresponding user group to update the local center packet data.
The method for grouping the live broadcast users, provided by the embodiment of the invention, manages the users watching the live broadcast based on the entrance equipment at the entrance and the central equipment at the central side together, and realizes the hierarchical management of the users; even if multiple users log in through the access devices in different regions, the central device can store all user groups to which the users belong, and any type of messages can be routed based on the central device. The full packet data is directly stored in the central equipment, for example, the memory of the central equipment, so that a database such as redis and the like is not needed; when a user needs to be inquired, the user can directly inquire based on the central grouped data of the central equipment without accessing a server through a network, and the inquiring efficiency is high. The inlet equipment and the central equipment store corresponding grouped data, and reliability can be improved. By deleting the users, the users recorded in the grouped data can be guaranteed to be all users in the login state.
Based on the same inventive concept, an embodiment of the present invention further provides a system for grouping live users, as shown in fig. 5, including: an inlet device 10 and a central device 20.
The portal device 10 is configured to receive a login request initiated by a current user, and determine a current user group to which the current user belongs according to the login request; adding the current user to the current user group to update local portal packet data for recording the user group to which the user logged in by the portal device 10 belongs; the portal device 10 is further configured to send a login success message to the center device 20, where the login success message includes the grouping information of the current user.
The central device 20 is configured to, after receiving the login success message, add the current user to the current user group to update the local central packet data, where the central packet data is used to record the user groups to which all the users belong.
On the basis of the above embodiment, when the first message needs to be sent to the target user group, the central device 20 is further configured to determine the ingress device 10 related to the target user group according to the central packet data, and broadcast the first message to the ingress device 10 related to the target user group; after receiving the first message, the ingress device 10 associated with the target user group determines a first target user associated with the target user group according to the ingress packet data, and sends the first message to all the first target users;
and/or, the central packet data further includes the ingress device 10 corresponding to each user, and when a second message needs to be sent to a second target user, the central device 20 is further configured to determine the ingress device 10 corresponding to the target user according to the central packet data, and send the second message to the ingress device 10 corresponding to the target user; the portal device 10 corresponding to the target user sends a second message to the second target user.
On the basis of the above embodiment, when the access device 10 is offline, the central device 20 is further configured to delete the user associated with the offline access device 10 from the corresponding user group to update the local central packet data;
and/or, the portal device 10 is further configured to receive a logout request initiated by the current user, and the portal device 10 deletes the current user from the current user group to update the local portal packet data; the portal device 10 sends a logout message to the center device 20;
the central device 20 is further configured to delete the current subscriber from the current subscriber group after receiving the logout message, so as to update the local central packet data.
On the basis of the above embodiment, when the central device 20 is restarted, the ingress device 10 is further configured to send ingress packet data to the restarted central device 20;
the restarted center device 20 is also configured to generate local center packet data from the ingress packet data.
On the basis of the above embodiment, as shown in fig. 5, the number of the center apparatuses 20 is plural; fig. 5 illustrates two central apparatuses 20 as an example.
The portal device 10 transmits the login success message to all the center devices 20 in a broadcast manner, and different center devices 20 store the same center packet data.
On the basis of the above embodiment, the number of the inlet devices 10 is plural; fig. 5 is illustrated as including four inlet devices.
The plurality of inlet apparatuses 10 are divided into a plurality of groups according to regions, and each group includes at least two inlet apparatuses 10.
The system for grouping the live broadcast users, provided by the embodiment of the invention, manages the users watching the live broadcast based on the entrance equipment at the entrance and the central equipment at the central side together, thereby realizing the hierarchical management of the users; even if multiple users log in through the access devices in different regions, the central device can store all user groups to which the users belong, and any type of messages can be routed based on the central device. The full packet data is directly stored in the central equipment, for example, the memory of the central equipment, so that a database such as redis and the like is not needed; when a user needs to be inquired, the user can directly inquire based on the central grouped data of the central equipment without accessing a server through a network, and the inquiring efficiency is high. The inlet equipment and the central equipment store corresponding grouped data, and reliability can be improved. By deleting the users, the users recorded in the grouped data can be guaranteed to be all users in the login state.
The above description is only a specific implementation of the embodiments of the present invention, but the scope of the embodiments of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present invention, and all such changes or substitutions should be covered by the scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method of live user grouping, comprising:
the method comprises the steps that the entrance equipment receives a login request initiated by a current user, and determines a current user group to which the current user belongs according to the login request;
the entrance device adds the current user to the current user group to update local entrance grouped data, and the entrance grouped data is used for recording the user group to which the user logged in by the entrance device belongs;
the entry equipment sends a login success message to the central equipment, wherein the login success message comprises the grouping information of the current user;
after receiving the login success message, the central device adds the current user to the current user group to update local central grouped data, wherein the central grouped data is used for recording user groups to which all users in a login state belong, and the central grouped data is stored in a memory of the central device;
when a first message needs to be sent to a target user group, the central equipment determines inlet equipment related to the target user group according to the central grouping data and broadcasts the first message to the inlet equipment related to the target user group; and after receiving the first message, the entrance equipment related to the target user group determines a first target user related to the target user group according to the entrance grouping data, and sends the first message to all the first target users.
2. The method of claim 1, further comprising:
the central grouped data also comprises inlet equipment corresponding to each user, and when a second message needs to be sent to a second target user, the central equipment determines the inlet equipment corresponding to the target user according to the central grouped data and sends the second message to the inlet equipment corresponding to the target user; and the entrance equipment corresponding to the target user sends the second message to the second target user.
3. The method of claim 1, further comprising: a multi-user deletion process and/or a single-user deletion process;
wherein the multi-user deletion process comprises:
when the entrance device is off-line, the central device deletes the user related to the off-line entrance device from the corresponding user group to update the local central grouped data;
the single-user deletion process comprises:
the entrance equipment receives a login request initiated by the current user, and deletes the current user from the current user group to update the local entrance grouped data;
the entrance device sends a logout message to the central device;
and after receiving the logout message, the central equipment deletes the current user from the current user group so as to update the local central grouped data.
4. The method of claim 1, further comprising:
when the central equipment is restarted, the inlet equipment sends the inlet grouped data to the restarted central equipment;
and the restarted central equipment generates local central grouped data according to the inlet grouped data.
5. A system for live user grouping, comprising: an inlet device and a central device;
the portal equipment is used for receiving a login request initiated by a current user and determining a current user group to which the current user belongs according to the login request; adding the current user to the current user group to update local entry grouping data, wherein the entry grouping data are used for recording the user group to which the user logged in by the entry equipment belongs; the entrance device is also used for sending a login success message to the center device, wherein the login success message comprises the grouping information of the current user;
the central equipment is used for adding the current user to the current user group after receiving the login success message so as to update local central grouped data, wherein the central grouped data are used for recording the user groups to which all the users belong, and the central grouped data are stored in a memory of the central equipment;
when a first message needs to be sent to a target user group, the central equipment is further used for determining inlet equipment related to the target user group according to the central grouped data and broadcasting the first message to the inlet equipment related to the target user group; and after receiving the first message, the entrance equipment related to the target user group determines a first target user related to the target user group according to the entrance grouping data, and sends the first message to all the first target users.
6. The system of claim 5,
the central grouped data also comprises inlet equipment corresponding to each user, and when a second message needs to be sent to a second target user, the central equipment is also used for determining the inlet equipment corresponding to the target user according to the central grouped data and sending the second message to the inlet equipment corresponding to the target user; and the entrance equipment corresponding to the target user sends the second message to the second target user.
7. The system of claim 5,
when the entrance device is off-line, the central device is further used for deleting the user related to the off-line entrance device from the corresponding user group so as to update the local central grouped data;
and/or the portal device is further configured to receive a logout request initiated by the current user, and the portal device deletes the current user from the current user group to update the local portal packet data; the entrance device sends a logout message to the central device;
and after receiving the logout message, the central equipment is also used for deleting the current user from the current user group so as to update the local central grouped data.
8. The system of claim 5,
when the central equipment is restarted, the entrance equipment is also used for sending the entrance grouped data to the restarted central equipment;
the restarted center equipment is also used for generating local center grouped data according to the entrance grouped data.
9. The system according to claim 5, wherein the number of the center apparatuses is plural;
and the entrance equipment sends login success messages to all the central equipment in a broadcasting mode, and different central equipment stores the same central grouped data.
10. The system of claim 5, wherein the number of inlet devices is plural;
the plurality of inlet devices are divided into a plurality of groups according to regions, and each group at least comprises two inlet devices.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010989154.3A CN112104888B (en) | 2020-09-18 | 2020-09-18 | Method and system for grouping live broadcast users |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010989154.3A CN112104888B (en) | 2020-09-18 | 2020-09-18 | Method and system for grouping live broadcast users |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112104888A CN112104888A (en) | 2020-12-18 |
CN112104888B true CN112104888B (en) | 2022-07-05 |
Family
ID=73760401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010989154.3A Active CN112104888B (en) | 2020-09-18 | 2020-09-18 | Method and system for grouping live broadcast users |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112104888B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113055699A (en) * | 2021-03-09 | 2021-06-29 | 北京一起教育科技有限责任公司 | Method and device for synchronizing user grouping and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581620A (en) * | 2013-10-16 | 2015-04-29 | 北京三星通信技术研究有限公司 | Location information based service providing method, device and system as well as terminal device |
CN105306332A (en) * | 2014-08-01 | 2016-02-03 | 张永俊 | Wireless local area sub-network of the Internet of things and data interaction method among networking devices thereof |
CN106686012A (en) * | 2017-03-10 | 2017-05-17 | 东软集团股份有限公司 | Single-point logging-out method and device |
CN107613309A (en) * | 2017-08-29 | 2018-01-19 | 武汉斗鱼网络科技有限公司 | Live resource self-defined distribution method, storage medium, electronic equipment and system |
CN108654092A (en) * | 2018-04-17 | 2018-10-16 | 网宿科技股份有限公司 | A kind of method and apparatus of synchronous cloud game archives |
CN111246231A (en) * | 2020-01-16 | 2020-06-05 | 广州酷狗计算机科技有限公司 | Live broadcast management method and device, server and computer readable storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8423507B2 (en) * | 2009-03-19 | 2013-04-16 | Murakumo Corporation | Method and system for managing replication of data |
CN102075456B (en) * | 2011-02-25 | 2013-06-19 | 中国科学院计算技术研究所 | Group creating and member adding method in distributed domain management system |
CN102523298A (en) * | 2011-12-22 | 2012-06-27 | 上海因特奈信息有限公司 | Video acquiring and sharing system based on mobile terminal and process method thereof |
US9032488B2 (en) * | 2012-04-17 | 2015-05-12 | Salesforce.Com, Inc. | Cross instance user authentication architecture |
CN104092681B (en) * | 2014-07-04 | 2017-07-11 | 中国传媒大学 | Personalized multi-media Intelligent campus content distribution interactive system based on location-based service |
CN105956127A (en) * | 2016-05-05 | 2016-09-21 | 郑州悉知信息科技股份有限公司 | Category data processing method and apparatus |
US20180139269A1 (en) * | 2016-11-14 | 2018-05-17 | Linkedin Corporation | Dynamic load balancing among data centers |
AU2019378253B2 (en) * | 2018-11-16 | 2021-11-04 | Christopher Lyndon Higgins | Distributed ledger systems, methods and devices |
-
2020
- 2020-09-18 CN CN202010989154.3A patent/CN112104888B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581620A (en) * | 2013-10-16 | 2015-04-29 | 北京三星通信技术研究有限公司 | Location information based service providing method, device and system as well as terminal device |
CN105306332A (en) * | 2014-08-01 | 2016-02-03 | 张永俊 | Wireless local area sub-network of the Internet of things and data interaction method among networking devices thereof |
CN106686012A (en) * | 2017-03-10 | 2017-05-17 | 东软集团股份有限公司 | Single-point logging-out method and device |
CN107613309A (en) * | 2017-08-29 | 2018-01-19 | 武汉斗鱼网络科技有限公司 | Live resource self-defined distribution method, storage medium, electronic equipment and system |
CN108654092A (en) * | 2018-04-17 | 2018-10-16 | 网宿科技股份有限公司 | A kind of method and apparatus of synchronous cloud game archives |
CN111246231A (en) * | 2020-01-16 | 2020-06-05 | 广州酷狗计算机科技有限公司 | Live broadcast management method and device, server and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112104888A (en) | 2020-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881354B (en) | Push information storage method and device, server and computer storage medium | |
JP5398836B2 (en) | Method and system for message processing | |
US8204052B2 (en) | Methods, systems, and computer program products for dynamically coordinating collection and distribution of presence information | |
US20130311424A1 (en) | Distributed database | |
EP4084415A1 (en) | Data management method and system, associated subsystem and computer readable medium | |
CN111901705B (en) | OMCI function virtualization system of OLT equipment | |
US8880665B2 (en) | Nonstop service system using voting, and information updating and providing method in the same | |
CN111355986B (en) | Message processing method and device in live broadcast room and storage medium | |
CN112995266B (en) | Information pushing method and related equipment | |
CN110875857B (en) | Method, device and system for reporting disconnected network state | |
CN112104888B (en) | Method and system for grouping live broadcast users | |
RU2566939C2 (en) | Device for accessing data on-board aircraft | |
CN112260928B (en) | Node switching method and device, electronic equipment and readable storage medium | |
US20190036793A1 (en) | Network service implementation method, service controller, and communications system | |
CN107395406B (en) | Online state data processing method, device and system of online system | |
CN112733051A (en) | Websocket-based information push management system and method | |
CN113791733B (en) | Information storage method, device, equipment and storage medium | |
CN113612735B (en) | Secure storage system | |
CN112702361B (en) | Safety blocking method, device and equipment based on lightweight distributed cooperative equipment | |
CN109962834A (en) | Information processing method, system, terminal and computer storage medium | |
JP5379800B2 (en) | Method and system for managing user information within an instant messaging system | |
KR101382177B1 (en) | System and method for dynamic message routing | |
CN109525870A (en) | A kind of advertisement push system and servomechanism | |
CN115190168B (en) | Edge server management system and server cluster | |
CN113015155B (en) | eSIM server discovery method and device |
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 |