CN110781149A - Method, device, equipment and storage medium for managing live broadcast room information - Google Patents

Method, device, equipment and storage medium for managing live broadcast room information Download PDF

Info

Publication number
CN110781149A
CN110781149A CN201911012202.7A CN201911012202A CN110781149A CN 110781149 A CN110781149 A CN 110781149A CN 201911012202 A CN201911012202 A CN 201911012202A CN 110781149 A CN110781149 A CN 110781149A
Authority
CN
China
Prior art keywords
live broadcast
live
information
room information
broadcast room
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.)
Pending
Application number
CN201911012202.7A
Other languages
Chinese (zh)
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201911012202.7A priority Critical patent/CN110781149A/en
Publication of CN110781149A publication Critical patent/CN110781149A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure relates to a method, an apparatus, a device and a storage medium for managing information of a live broadcast room, the method comprising: acquiring a live broadcast room information set, wherein the live broadcast room information set comprises live broadcast information of a live broadcast room which is live broadcast on a live broadcast platform; if a live broadcast state change message sent by a pre-started log monitoring task is received, updating a currently acquired live broadcast room information set based on the live broadcast state change message to obtain an updated live broadcast room information set, wherein the log monitoring task is used for responding to the monitored content change of a database log and sending the live broadcast state change message, and the database log is used for recording the live broadcast room information of the live broadcast room with the changed live broadcast state in the database; and realizing the live broadcast room information query function based on the updated live broadcast room information set. The method and the device can return the currently acquired full-volume live room information at one time, can improve the integrity of acquiring the live room information, and can reduce the reading pressure of the database.

Description

Method, device, equipment and storage medium for managing live broadcast room information
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for managing information of a live broadcast room.
Background
With the development of computer technology, the number of live broadcast applications is increasing. Many business scenarios in the related art require querying all live room information currently being live. In general, when the live broadcast is started, live broadcast room information may be stored in the database, where the live broadcast room information includes a status identifier for identifying a status of the live broadcast room in real time (e.g., in a live broadcast or in an end status), and then the live broadcast room information of the live broadcast room may be acquired from the database based on the status identifier.
However, when there are many live broadcast rooms, it is not possible to obtain all the required live broadcast room information from the database at one time, and it is necessary to obtain the information in segments, which not only takes a long time, but also causes that newly generated live broadcast room information cannot be obtained, thereby affecting the integrity of obtaining the live broadcast room information. On the other hand, accessing the database multiple times at the same time may put a great deal of reading pressure on the database and may even result in the database being unusable.
Disclosure of Invention
The present disclosure provides a method, an apparatus, and a system for managing live broadcast room information, so as to at least solve the technical problems in the related art that newly generated live broadcast room information cannot be acquired due to a lot of live broadcast rooms, the integrity of acquiring the live broadcast room information is affected, and great reading pressure is brought to a database when the database is accessed for many times at the same time. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for managing information of a live broadcast room is provided, including:
acquiring a live broadcast room information set, wherein the live broadcast room information set comprises live broadcast information of a live broadcast room which is live broadcast on a live broadcast platform;
if a live broadcast state change message sent by a pre-started log monitoring task is received, updating a currently acquired live broadcast room information set based on the live broadcast state change message to obtain an updated live broadcast room information set, wherein the log monitoring task is used for responding to the monitored content change of a database log and sending the live broadcast state change message, and the database log is used for recording the live broadcast room information of the live broadcast room with the changed live broadcast state in the database;
and realizing the live broadcast room information query function based on the updated live broadcast room information set.
In an embodiment, the method for managing information of a live broadcast room further includes:
and acquiring a live broadcast room information set from the database at regular time based on a pre-started timing task.
In an embodiment, the step of updating the currently acquired live broadcast room information set based on the live broadcast status change message includes:
and if the live broadcast state change information indicates that a newly-played live broadcast room is on the live broadcast platform, adding the live broadcast room information of the newly-played live broadcast room to the currently-acquired live broadcast room information set.
In an embodiment, the step of updating the currently acquired live broadcast room information set based on the live broadcast status change message includes:
and if the live broadcast state change information indicates that a newly closed live broadcast room is arranged on the live broadcast platform, deleting the live broadcast room information of the newly closed live broadcast room from the currently acquired live broadcast room information set.
In an embodiment, the step of implementing the live room information query function based on the updated live room information set includes:
receiving request information for acquiring live broadcast room information of a live broadcast room;
and sending the updated live broadcast room information set to a sender of the request information based on the request information.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for managing live room information, including:
the information set acquisition module is configured to execute acquisition of a live broadcast room information set, wherein the live broadcast room information set comprises live broadcast information of a live broadcast room on a live broadcast platform;
the system comprises an information set updating module, a log monitoring task and a database processing module, wherein the information set updating module is configured to execute that when a live broadcast state change message sent by a pre-started log monitoring task is received, a currently acquired live broadcast room information set is updated based on the live broadcast state change message to obtain an updated live broadcast room information set, the log monitoring task is used for responding to the monitored content change of a database log and sending the live broadcast state change message, and the database log is used for recording the live broadcast room information of a live broadcast room with a changed live broadcast state in the database;
and the query function implementation module is configured to execute a live room information query function implemented based on the updated live room information set.
In an embodiment, the information set obtaining module is further configured to perform a timing task based on a pre-start, and periodically obtain the live broadcast information set from the database.
In an embodiment, the information set updating module is further configured to add live room information of a newly-played live room to the currently-acquired live room information set when the live state change information indicates that the live room on the live platform has the newly-played live room.
In an embodiment, the information set updating module is further configured to delete live room information of a newly closed live room from the currently acquired live room information set when the live state change information indicates that the newly closed live room exists on the live platform.
In an embodiment, the query function implementing module further includes:
a request information receiving unit configured to perform receiving request information for acquiring live broadcast room information of a live broadcast room being live broadcast;
an information set sending unit configured to perform sending the updated live-air information set to a sender of the request information based on the request information.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device for managing live room information, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement a method of managing live space information as described in any of the above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of an electronic device that manages live-air information, enable the electronic device that manages live-air information to perform the method of managing live-air information as set forth in any one of the above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, which, when executed by a processor of an electronic device managing live room information, enables the electronic device managing live room information to perform the method of managing live room information as set forth in any of the above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method obtains a live broadcast room information set, updates the currently obtained live broadcast room information set based on the live broadcast state change message when receiving a live broadcast state change message sent by a pre-started log monitoring task to obtain an updated live broadcast room information set, the log monitoring task is used for sending the live broadcast state change message in response to the content change of a monitored database log, the database log is used for recording the live broadcast room information of the live broadcast room with changed live broadcast state in a database, and further can realize a live broadcast room information query function based on the updated live broadcast room information set, and can realize the total amount of currently obtained updated live broadcast room information by updating the currently obtained live broadcast room information set based on the live broadcast state change message and realizing the live broadcast room information query function at one time, and the information of the newly generated live broadcast room can not be acquired without sectional acquisition, so that the problem that the information of the newly generated live broadcast room can not be acquired can be solved, and the integrity of acquiring the information of the live broadcast room can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flow diagram illustrating a method of managing live room information in accordance with an example embodiment.
Fig. 2 is a flowchart illustrating a method of managing live room information according to yet another exemplary embodiment.
Fig. 3 is a flow diagram illustrating how a currently acquired set of live room information is updated according to an example embodiment.
Fig. 4 is a flow diagram illustrating how live room information query functionality is implemented based on the updated set of live room information, according to an example embodiment.
Fig. 5 is a block diagram illustrating an apparatus for managing live room information in accordance with an example embodiment.
Fig. 6 is a block diagram illustrating an apparatus for managing live room information according to yet another exemplary embodiment.
Fig. 7 is a block diagram illustrating an electronic device that manages live room information in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flow diagram illustrating a method of managing live room information in accordance with an example embodiment. The method for managing live broadcast information of this embodiment may be used in a server (e.g., a server cluster formed by one server or multiple servers). As shown in fig. 1, the following steps S101-S102 are included.
In step S101, a live-air information set is acquired.
In this embodiment, the server may obtain a live broadcast room information set, where the live broadcast room information set may include live broadcast information of a live broadcast room on a live broadcast platform.
For example, the server may obtain a set of live room information from a database, where the database is used to store live room information of a live room on a live platform.
In step S102, if a live broadcast state change message sent by a pre-started log monitoring task is received, a currently acquired live broadcast room information set is updated based on the live broadcast state change message, so as to obtain an updated live broadcast room information set.
In an embodiment, when receiving a live broadcast state change message sent by a pre-started log monitoring task, a server side may call a procedure call protocol (RPC) service to update a currently acquired live broadcast room information set based on the live broadcast state change message, so as to obtain an updated live broadcast room information set.
In this embodiment, the log monitoring task is configured to send the live broadcast state change message in response to a change in content of a database log monitored, where the database log is configured to record live broadcast room information of a live broadcast room in which a live broadcast state changes in a database, and the database is configured to store live broadcast information of a live broadcast room in the live broadcast platform.
The database log may include a binlog of the database, that is, a binary log of the database, which may be used to record all changes on the database and may be stored in a disk in a binary form for consumption by other programs.
For example, the server may start a log monitoring task in advance, where the log monitoring task is used to send the live broadcast state change information to the server when monitoring that the content of the database log changes, and then the server may call an RPC service after receiving the live broadcast state change information, so that the RPC service updates the currently acquired live broadcast room information set based on the live broadcast state change information to obtain an updated live broadcast room information set.
In an embodiment, the server may subscribe live broadcast state change information to the log monitoring task, and then when the log monitoring task monitors that the content of the database log changes, the server may publish corresponding live broadcast state change information, so that the server may obtain the live broadcast state change information in time.
It should be noted that, the publishing and subscribing manner of the live broadcast state change information may be selected by a developer according to actual service needs from the prior art, for example, the publishing and subscribing manner may be implemented by using a pub-sub function of redis, which is not limited in this embodiment.
In an embodiment, after the RPC service acquires the live broadcast status change message, the currently acquired live broadcast information set may be updated based on the live broadcast status change message, for example, live broadcast information may be added or deleted from the currently acquired live broadcast information set based on the content of the live broadcast status change message. In an embodiment, a manner of updating the currently acquired live broadcast room information set by the above-mentioned call procedure call protocol RPC service based on the live broadcast state change message may also be referred to the embodiment shown in fig. 3, which is not described in detail herein.
In step S103, a live room information query function is implemented based on the updated live room information set.
In this embodiment, the service end may call the RPC service to implement a live broadcast room information query function based on the update live broadcast room information set.
In an embodiment, when a service end calls an RPC service to update a currently acquired live broadcast room information set based on the live broadcast state change message, and an updated live broadcast room information set is obtained, the RPC service can be called to realize a live broadcast room information query function based on the updated live broadcast room information set.
In an embodiment, the manner of invoking the RPC service to implement the live broadcast information query function based on the updated live broadcast information set may also be referred to the following embodiment shown in fig. 4, which is not described in detail herein.
It should be noted that, the specific manner of the service end calling the RPC service may refer to explanation and description in the prior art, which is not limited in this embodiment.
As can be seen from the above description, the present embodiment provides a log listening task that is started in advance, when receiving a live broadcast status change message sent by the log listening task, a call procedure call protocol (RPC) service updates the currently acquired live broadcasting room information set based on the live broadcasting state change message to obtain an updated live broadcasting room information set, the RPC service may then be invoked to implement a live-room information query function based on the updated set of live-room information, since the RPC service is invoked to update the currently acquired live room information set based on the live state change message and to implement a live room information query function based on the RPC service, therefore, the RPC service can return the updated full live broadcast room information acquired currently at one time without sectional acquisition, therefore, the problem that newly generated live broadcast room information cannot be acquired can be avoided, and the integrity of acquiring the live broadcast room information can be improved; moreover, the information query function of the live broadcast room is realized through RPC service, so that query requests in the same time can be combined, the problem that the database reading pressure is increased due to the fact that the database is accessed for many times at the same time can be solved, and the service quality of the database can be ensured.
Fig. 2 is a flowchart illustrating a method of managing live room information according to yet another exemplary embodiment. The method for managing live broadcast information of this embodiment may be used in a server (e.g., a server cluster formed by one server or multiple servers). As shown in fig. 2, the following steps S201-S203 are included.
In step S201, a live broadcast information set is periodically acquired from a database based on a timing task started in advance.
In this embodiment, the server may periodically acquire the live broadcast room information set from the database based on a timing task that is started in the RPC service in advance.
The database is used for storing live broadcast room information of a live broadcast room on the live broadcast platform.
For example, to obtain the live broadcast room information set from the database, a timing task for periodically obtaining the live broadcast room information set from the database may be started in advance inside a procedure call protocol (RPC) service.
It should be noted that, the time interval for the timing task to acquire the live broadcast information set may be set by a developer according to actual service needs, which is not limited in this embodiment.
In an embodiment, after the RPC service starts the timing task, a live broadcast room information set can be obtained from a database at a fixed time, and an accurate live broadcast room information set (i.e., an updated live broadcast room information set hereinafter) can be determined based on a live broadcast state change message received in a subsequent step.
In step S202, if a live broadcast state change message sent by a pre-started log monitoring task is received, a currently acquired live broadcast room information set is updated based on the live broadcast state change message, so as to obtain an updated live broadcast room information set.
The live broadcast room information set comprises live broadcast information of a live broadcast room on a live broadcast platform, the log monitoring task is used for responding to the monitored content change of a database log and sending the live broadcast state change message, and the database log is used for recording the live broadcast room information of the live broadcast room with the live broadcast state changed in the database;
in step S203, a live room information query function is implemented based on the updated live room information set.
For the explanation and explanation of steps S202 to S203, reference may be made to the above embodiments, which are not described in detail in this embodiment.
As can be seen from the above description, the present embodiment can achieve the timely acquisition of the live broadcast room information set in the database by starting the timing task for regularly acquiring the live broadcast room information set from the database, so that when receiving the live broadcast state change message sent by the log monitoring task, the currently acquired live broadcast room information set can be updated based on the live broadcast state change message to obtain the updated live broadcast room information set, and further the live broadcast room information query function can be achieved based on the updated live broadcast room information set, and since the live broadcast room information set in the database is regularly acquired based on the started timing task, the timeliness of the currently acquired live broadcast room information set can be ensured, and further the foundation can be laid for subsequently updating the currently acquired live broadcast room information set based on the live broadcast state change message and achieving the live broadcast room information query function based on the obtained updated live broadcast room information set, the method and the device can return the updated full live broadcast room information acquired currently at one time, can improve the integrity of the acquired live broadcast room information, can avoid the problem of database reading pressure increase caused by accessing the database for multiple times at the same time, and can ensure the service quality of the database.
Fig. 3 is a flow diagram illustrating how a currently acquired set of live room information is updated according to an example embodiment. The present embodiment is exemplified by how to update the currently acquired live broadcast information set based on the above-described embodiment. As shown in fig. 3, the step of updating the currently acquired live broadcast room information set based on the live broadcast status change message in S102 may include the following steps S301 to S303:
in step S301, it is determined whether the live broadcast state change information indicates that there is a newly-played live broadcast room on the live broadcast platform: if yes, go to step S302; if not, go to step S303.
In step S302, adding the live room information of the newly-played live room to the currently-acquired live room information set.
In step S303, the live-air information of the newly closed live-air room is deleted from the currently acquired live-air room information set.
In an embodiment, after receiving a live broadcast state change message sent by a pre-started log monitoring task, a server may determine whether the live broadcast state change message indicates that a newly-launched live broadcast room is on the live broadcast platform:
if the live broadcast state change message indicates that a newly-started live broadcast room is on the live broadcast platform, the RPC service can be called to add the live broadcast room information of the newly-started live broadcast room to a currently-acquired live broadcast room information set so as to take the acquired live broadcast room information set as an updated live broadcast room information set.
On the contrary, if the live broadcast state change message does not indicate that the live broadcast room is newly started on the live broadcast platform but indicates that the live broadcast room is newly closed to broadcast on the live broadcast platform, the RPC service can be called to delete the live broadcast room information of the newly closed to broadcast live broadcast room from the currently acquired live broadcast room information set, so that the obtained live broadcast room information set is used as an updated live broadcast room information set.
As can be seen from the above description, in this embodiment, when the received live broadcast state change information indicates that there is a newly-played live broadcast room on the live broadcast platform, the live broadcast room information of the newly-played live broadcast room is added to the currently-acquired live broadcast room information set, so as to obtain an updated live broadcast room information set; and when the received live broadcasting state change information shows that a newly closed live broadcasting room is arranged on the live broadcasting platform, deleting the live broadcasting room information of the newly closed live broadcasting room from the currently acquired live broadcasting room information set to obtain an updated live broadcasting room information set, so that the currently acquired live broadcasting room information set can be updated in time based on the received live broadcasting state change information, the accuracy of the obtained updated live broadcasting room information set can be ensured, and the accuracy of the subsequent live broadcasting room information query function based on the updated live broadcasting room information set can be improved.
Fig. 4 is a flow diagram illustrating how live room information query functionality is implemented based on the updated set of live room information, according to an example embodiment. The present embodiment is exemplarily described on the basis of the above embodiments, by taking an example of how to implement a live broadcast information query function based on the updated live broadcast information set. As shown in fig. 4, the step of implementing the live-air information query function based on the updated live-air information set in the above S103 may include the following steps S401 to S402:
in step S401, request information for acquiring live-air information of a live air-air room being live is received.
In an embodiment, when a user needs to query live broadcast room information of a live broadcast room on a live broadcast platform, request information for acquiring the live broadcast room information of the live broadcast room on the live broadcast platform can be sent to a server, and the server can receive the request information.
In an embodiment, the manner in which the user sends the request information for acquiring the live broadcast information of the live broadcast room to the server may refer to explanation and description in the prior art, which is not limited in this embodiment.
In an embodiment, the server may call an RPC service in advance to update a currently acquired live broadcast room information set based on the received live broadcast state change message, so as to obtain an updated live broadcast room information set, and may call the RPC service to receive the request information for acquiring the live broadcast room information of the live broadcast room.
In step S402, the updated live-air information set is sent to the sender of the request information based on the request information.
In an embodiment, after receiving request information for acquiring live broadcast room information of a live broadcast room in a live broadcast, the server may call the RPC service based on the request information to send a currently obtained updated live broadcast room information set to the user (i.e., a sender of the request information).
It should be noted that, if a plurality of users send request information for acquiring live broadcast room information of a live broadcast room at the same time to the server, the server may call an RPC service to combine the request information of the plurality of users, so as to acquire a live broadcast room information set requested by the plurality of request information based on one-time database access, thereby reducing the number of times of accessing the database at the same time, avoiding the problem of excessive reading pressure of the database, and ensuring the service quality of the database. In addition, the live broadcast room information set is updated by the service end through calling the RPC service based on the live broadcast state change message and the currently acquired live broadcast room information set, so that the RPC service can return the currently acquired updated full-volume live broadcast room information at one time, and the integrity and the accuracy of acquiring the live broadcast room information can be improved.
Fig. 5 is a block diagram illustrating an apparatus for managing live room information in accordance with an example embodiment. The device for managing live broadcast information of the embodiment can be used in a server (e.g., a server or a server cluster composed of multiple servers). As shown in fig. 5, the apparatus includes: an information collection obtaining module 110, an information collection updating module 120 and a query function implementing module 130, wherein:
the information set obtaining module 110 is configured to perform obtaining of a live broadcast room information set, where the live broadcast room information set includes live broadcast information of a live broadcast room on a live broadcast platform.
And the information set updating module 120 is configured to update the currently acquired live broadcast room information set based on the live broadcast state change message when receiving a live broadcast state change message sent by a pre-started log monitoring task, so as to obtain an updated live broadcast room information set.
The live broadcast room information set comprises live broadcast information of a live broadcast room on a live broadcast platform, the log monitoring task is used for responding to the monitored content change of a database log and sending the live broadcast state change message, and the database log is used for recording the live broadcast room information of the live broadcast room with the live broadcast state changed in the database;
a query function implementation module 130 configured to perform a live-air information query function based on the updated live-air information set.
As can be seen from the above description, in this embodiment, when a live broadcast state change message sent by a pre-started log monitoring task is received, the currently acquired live broadcast room information set is updated based on the live broadcast state change message to obtain an updated live broadcast room information set, and then a live broadcast room information query function can be realized based on the updated live broadcast room information set.
Fig. 6 is a block diagram illustrating an apparatus for managing live room information according to yet another exemplary embodiment. The information set obtaining module 210, the information set updating module 220, and the query function implementing module 230 have the same functions as the information set obtaining module 110, the information set updating module 120, and the query function implementing module 130 in the foregoing embodiment shown in fig. 5, and are not described herein again.
In an embodiment, the information set obtaining module 210 is configured to perform a timing task based on a pre-start, and periodically obtain the live broadcast information set from the database.
In an embodiment, the information set updating module 220 is further configured to add live room information of a newly-played live room to the currently-acquired live room information set when the live state change information indicates that the live room is newly-played on the live platform.
In another embodiment, the information set updating module 220 is further configured to delete live room information of a newly closed live room from the currently acquired live room information set when the live status change information indicates that the newly closed live room is on the live platform.
In one embodiment, the query function implementation module 230 may include:
a request information receiving unit 231 configured to perform receiving request information for acquiring live-air information of a live air-air room being live;
an information set sending unit 232 configured to perform sending the updated live-air information set to a sender of the request information based on the request information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It should be noted that, all the above-mentioned optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described in detail herein.
The embodiment of the device for managing the live broadcast room information can be applied to network equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a device in a logical sense, the device is formed by reading, by a processor of a device in which the device is located, a corresponding computer program instruction in a nonvolatile memory into an internal memory for running, where the computer program is used to execute the method for managing information in a live broadcast room provided by the embodiment shown in fig. 1 to 4. From a hardware level, as shown in fig. 7, a hardware structure diagram of the device for managing information of a live broadcast room of the present invention is shown, except for the processor, the network interface, the memory, and the nonvolatile memory shown in fig. 7, the device may generally include other hardware, such as a forwarding chip responsible for processing a packet, and the like; the device may also be a distributed device in terms of hardware structure, and may include multiple interface cards to facilitate expansion of message processing at the hardware level.
On the other hand, the present application also provides a computer-readable storage medium, which, when a computer program stored in the storage medium is executed by a processor of an electronic device for managing live broadcast room information, enables the electronic device for managing live broadcast room information to execute the method for managing live broadcast room information provided in the embodiments shown in fig. 1 to 4.
In another aspect, the present application further provides a computer program product, which, when executed by a processor of an electronic device for managing live broadcast information, enables the electronic device for managing live broadcast information to execute the method for managing live broadcast information provided in the embodiments shown in fig. 1 to 4.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of managing live room information, comprising:
acquiring a live broadcast room information set, wherein the live broadcast room information set comprises live broadcast information of a live broadcast room which is live broadcast on a live broadcast platform;
if a live broadcast state change message sent by a pre-started log monitoring task is received, updating a currently acquired live broadcast room information set based on the live broadcast state change message to obtain an updated live broadcast room information set, wherein the log monitoring task is used for responding to the monitored content change of a database log and sending the live broadcast state change message, and the database log is used for recording the live broadcast room information of the live broadcast room with the changed live broadcast state in the database;
and realizing the live broadcast room information query function based on the updated live broadcast room information set.
2. The method of managing live room information as claimed in claim 1, wherein said method of managing live room information further comprises:
and acquiring a live broadcast room information set from the database at regular time based on a pre-started timing task.
3. The method of claim 1, wherein the step of updating the currently obtained set of live room information based on the live status change message comprises:
and if the live broadcast state change information indicates that a newly-played live broadcast room is on the live broadcast platform, adding the live broadcast room information of the newly-played live broadcast room to the currently-acquired live broadcast room information set.
4. The method of claim 1, wherein the step of updating the currently obtained set of live room information based on the live status change message comprises:
and if the live broadcast state change information indicates that a newly closed live broadcast room is arranged on the live broadcast platform, deleting the live broadcast room information of the newly closed live broadcast room from the currently acquired live broadcast room information set.
5. The method of managing live-air information as claimed in claim 1, wherein said step of implementing live-air information query function based on said updated live-air information set comprises:
receiving request information for acquiring live broadcast room information of a live broadcast room;
and sending the updated live broadcast room information set to a sender of the request information based on the request information.
6. An apparatus for managing live room information, comprising:
the information set acquisition module is configured to execute acquisition of a live broadcast room information set, wherein the live broadcast room information set comprises live broadcast information of a live broadcast room on a live broadcast platform;
the system comprises an information set updating module, a log monitoring task and a database processing module, wherein the information set updating module is configured to execute that when a live broadcast state change message sent by a pre-started log monitoring task is received, a currently acquired live broadcast room information set is updated based on the live broadcast state change message to obtain an updated live broadcast room information set, the log monitoring task is used for responding to the monitored content change of a database log and sending the live broadcast state change message, and the database log is used for recording the live broadcast room information of a live broadcast room with a changed live broadcast state in the database;
and the query function implementation module is configured to execute a live room information query function implemented based on the updated live room information set.
7. The apparatus for managing live-air information as claimed in claim 6, wherein the information collection obtaining module is further configured to perform a timing task based on a pre-start, and obtain the live-air information collection from the database at regular time.
8. The apparatus of claim 6, wherein the information set update module is further configured to perform adding live room information of a newly-launched live room to the currently-obtained live room information set when the live state change information indicates that the live room is newly-launched on the live platform.
9. An electronic device for managing live room information, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of managing live-air information of any of claims 1 to 5.
10. A storage medium having instructions that, when executed by a processor of an electronic device that manages live-air information, enable the electronic device that manages live-air information to perform a method of managing live-air information as recited in any one of claims 1-5.
CN201911012202.7A 2019-10-23 2019-10-23 Method, device, equipment and storage medium for managing live broadcast room information Pending CN110781149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911012202.7A CN110781149A (en) 2019-10-23 2019-10-23 Method, device, equipment and storage medium for managing live broadcast room information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911012202.7A CN110781149A (en) 2019-10-23 2019-10-23 Method, device, equipment and storage medium for managing live broadcast room information

Publications (1)

Publication Number Publication Date
CN110781149A true CN110781149A (en) 2020-02-11

Family

ID=69386525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911012202.7A Pending CN110781149A (en) 2019-10-23 2019-10-23 Method, device, equipment and storage medium for managing live broadcast room information

Country Status (1)

Country Link
CN (1) CN110781149A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135162A (en) * 2020-09-25 2020-12-25 北京达佳互联信息技术有限公司 Service execution method, device and server
CN112312151A (en) * 2020-10-26 2021-02-02 北京达佳互联信息技术有限公司 Data updating method, device and storage medium
CN113347456A (en) * 2021-06-02 2021-09-03 网易(杭州)网络有限公司 Live broadcast information updating method and device and electronic equipment
CN114745571A (en) * 2022-04-15 2022-07-12 网易(杭州)网络有限公司 Live broadcast state information synchronization method and device, electronic equipment and readable storage medium
EP4087258A4 (en) * 2020-05-27 2023-07-26 Beijing Bytedance Network Technology Co., Ltd. Method and apparatus for displaying live broadcast data, and device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150063789A1 (en) * 2013-08-27 2015-03-05 Wistron Corporation Broadcast device, broadcast system, and associated broadcast method
CN105163189A (en) * 2015-09-06 2015-12-16 腾讯科技(深圳)有限公司 Method for reserving multimedia programs, server and terminal
CN105915948A (en) * 2016-06-30 2016-08-31 乐视控股(北京)有限公司 Program state updating method and device
CN106454392A (en) * 2016-11-24 2017-02-22 北京小米移动软件有限公司 Live broadcast processing method, device and terminal
CN106534978A (en) * 2016-10-14 2017-03-22 乐视控股(北京)有限公司 Live program state updating method and device
CN106713954A (en) * 2017-02-22 2017-05-24 武汉斗鱼网络科技有限公司 Broadcast reminding method and device of live video
CN107147925A (en) * 2017-05-05 2017-09-08 中广热点云科技有限公司 The based reminding method and system of a kind of serial programme televised live
CN107959860A (en) * 2017-12-26 2018-04-24 广州酷狗计算机科技有限公司 The method and apparatus for showing live list
CN109862379A (en) * 2018-12-29 2019-06-07 北京奇艺世纪科技有限公司 A kind of log processing method, device, mobile terminal and storage medium
US20190281437A1 (en) * 2016-09-23 2019-09-12 Apple Inc. Broadcasting a Device State in a Wireless Communication Network

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150063789A1 (en) * 2013-08-27 2015-03-05 Wistron Corporation Broadcast device, broadcast system, and associated broadcast method
CN105163189A (en) * 2015-09-06 2015-12-16 腾讯科技(深圳)有限公司 Method for reserving multimedia programs, server and terminal
CN105915948A (en) * 2016-06-30 2016-08-31 乐视控股(北京)有限公司 Program state updating method and device
US20190281437A1 (en) * 2016-09-23 2019-09-12 Apple Inc. Broadcasting a Device State in a Wireless Communication Network
CN106534978A (en) * 2016-10-14 2017-03-22 乐视控股(北京)有限公司 Live program state updating method and device
CN106454392A (en) * 2016-11-24 2017-02-22 北京小米移动软件有限公司 Live broadcast processing method, device and terminal
CN106713954A (en) * 2017-02-22 2017-05-24 武汉斗鱼网络科技有限公司 Broadcast reminding method and device of live video
CN107147925A (en) * 2017-05-05 2017-09-08 中广热点云科技有限公司 The based reminding method and system of a kind of serial programme televised live
CN107959860A (en) * 2017-12-26 2018-04-24 广州酷狗计算机科技有限公司 The method and apparatus for showing live list
CN109862379A (en) * 2018-12-29 2019-06-07 北京奇艺世纪科技有限公司 A kind of log processing method, device, mobile terminal and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4087258A4 (en) * 2020-05-27 2023-07-26 Beijing Bytedance Network Technology Co., Ltd. Method and apparatus for displaying live broadcast data, and device and storage medium
CN112135162A (en) * 2020-09-25 2020-12-25 北京达佳互联信息技术有限公司 Service execution method, device and server
CN112135162B (en) * 2020-09-25 2022-08-12 北京达佳互联信息技术有限公司 Service execution method, device and server
CN112312151A (en) * 2020-10-26 2021-02-02 北京达佳互联信息技术有限公司 Data updating method, device and storage medium
CN112312151B (en) * 2020-10-26 2022-06-03 北京达佳互联信息技术有限公司 Data updating method, device and storage medium
CN113347456A (en) * 2021-06-02 2021-09-03 网易(杭州)网络有限公司 Live broadcast information updating method and device and electronic equipment
CN114745571A (en) * 2022-04-15 2022-07-12 网易(杭州)网络有限公司 Live broadcast state information synchronization method and device, electronic equipment and readable storage medium
CN114745571B (en) * 2022-04-15 2024-01-23 网易(杭州)网络有限公司 Live state information synchronization method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110781149A (en) Method, device, equipment and storage medium for managing live broadcast room information
US8069224B2 (en) Method, equipment and system for resource acquisition
US9836346B2 (en) Error troubleshooting using a correlated knowledge base
CN111078504A (en) Distributed call chain tracking method and device, computer equipment and storage medium
CN111291079A (en) Data query method and device
CN111125175B (en) Service data query method and device, storage medium and electronic device
CN108512814B (en) Media data processing method, device and system
US10440132B2 (en) Tracking application usage in a computing environment
CN111803917B (en) Resource processing method and device
CN108924043A (en) System monitoring method, gateway communication, gateway apparatus, service processing equipment
CN112839076A (en) Data storage method, data reading method, gateway, electronic equipment and storage medium
CN117459444A (en) Method, device and storage medium for micro-service co-city dual-activity concentric priority routing
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN102170476B (en) Cloud computing method and device based on cloud node autonomic learning
CN111400327B (en) Data synchronization method and device, electronic equipment and storage medium
CN115426375A (en) Data processing method and data processing system
CN111880996B (en) Bare metal data acquisition method, device, equipment and readable storage medium
CN104346228A (en) Application program sharing method and terminal
CN108400901A (en) Test method, terminal device and the computer readable storage medium of application
CN104346101A (en) Dynamic storage space allocation system and method
US20210144217A1 (en) Service communication proxy apparatus and method
CN110807040A (en) Method, device, equipment and storage medium for managing data
CN114827283B (en) Resource access method, device, medium and robot
CN116033187B (en) Video processing system, method, device, electronic equipment and storage medium
CN115604667A (en) Message sending method, device, computer equipment and storage 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211