CN111209071A - Information configuration method, device, server and storage medium - Google Patents
Information configuration method, device, server and storage medium Download PDFInfo
- Publication number
- CN111209071A CN111209071A CN202010011578.2A CN202010011578A CN111209071A CN 111209071 A CN111209071 A CN 111209071A CN 202010011578 A CN202010011578 A CN 202010011578A CN 111209071 A CN111209071 A CN 111209071A
- Authority
- CN
- China
- Prior art keywords
- information
- message queue
- target message
- synchronously displayed
- server
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides an information configuration method, an information configuration device, a server and a storage medium, and relates to the technical field of information, after information to be configured is obtained, when the information to be configured is determined to be required to be synchronously displayed, the information to be configured is added into a target message queue; and after receiving the indication for verifying the passing of the information to be configured, pushing the target message queue so as to consume the information to be configured.
Description
Technical Field
The present application relates to the field of information technologies, and in particular, to an information configuration method, an information configuration apparatus, a server, and a storage medium.
Background
In an application scenario such as live webcasting, some specific information is generally required to be configured on a client for presentation, such as pictures of a specific holiday event presentation, a white list of users allowed to consume, virtual items, and the like.
The display information has the conditions of dynamic configuration and display, for example, pictures needing to be dynamically configured and displayed when the festival activities are online and offline; or when the white list of the users allowed to consume is changed, dynamic configuration is also needed to show the latest white list of the users allowed to consume.
However, the current configuration scheme has a large range of modification to the service code, and the operation is not flexible enough.
Disclosure of Invention
The application aims to provide an information configuration method, an information configuration device, a server and a storage medium, which can flexibly configure information.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides an information configuration method, where the method includes:
acquiring information to be configured;
judging whether the information to be configured needs to be synchronously displayed or not;
when the information to be configured is judged to need to be synchronously displayed, adding the information to be configured into a target message queue;
and after receiving an indication that the information to be configured passes the verification, pushing the target message queue to consume the information to be configured.
In a second aspect, an embodiment of the present application provides an information configuring apparatus, where the apparatus includes:
the acquisition module is used for acquiring information to be configured;
the processing module is used for judging whether the information to be configured needs to be synchronously displayed;
the processing module is further used for adding the information to be configured into a target message queue when the information to be configured is judged to need to be synchronously displayed;
the processing module is further configured to push the target message queue to flow after receiving an indication that the information to be configured passes the verification, so that the information to be configured is consumed.
In a third aspect, an embodiment of the present application provides a server, including a memory for storing one or more programs; a processor; the one or more programs, when executed by the processor, implement the information configuration method described above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the information configuring method described above.
According to the information configuration method, the information configuration device, the server and the storage medium, after the information to be configured is obtained, when the information to be configured is determined to need to be synchronously displayed, the information to be configured is added into a target message queue; and after receiving the indication for verifying the passing of the information to be configured, pushing the target message queue so as to consume the information to be configured.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 illustrates an exemplary application scenario diagram of an information configuration method provided in an embodiment of the present application;
FIG. 2 is a schematic block diagram of a server provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating an information configuration method provided by an embodiment of the present application;
FIG. 4 shows a schematic flow diagram of the substeps of step 203 in FIG. 3;
FIG. 5 is another schematic flow chart diagram of an information configuration method provided by an embodiment of the present application;
FIG. 6 is a schematic flow chart of a method for configuring information according to an embodiment of the present disclosure;
fig. 7 shows a schematic structural block diagram of an information configuration apparatus provided in an embodiment of the present application.
In the figure: 100-a server; 101-a memory; 102-a processor; 103-a communication interface; 300-information configuration means; 301-an obtaining module; 302-processing module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the above application scenarios, such as live webcasting, when some specific information needs to be configured for a client to be displayed, for example, when virtual objects such as digital flowers and digital props in a certain live webcasting room are dynamically displayed, an existing scheme is as follows: when configuring, the operator configures and stores the data table needing to be dynamically updated on the server side; then, the check node checks and verifies the stored data table, and when the check node checks and verifies the data table, the server copies the content in the stored data table and synchronizes the content to all the clients belonging to the live broadcast room, so that each client replaces the content in the data table, namely: and replacing all virtual objects currently displayed by the client by all virtual objects in the data table.
According to the configuration scheme, the virtual objects required to be replaced by the client side do not need to be recorded specifically, and all the currently displayed virtual objects are replaced directly by the client side according to the data table, so that the service codes are less invaded; however, in an actual application scenario, not all virtual objects currently displayed by the client need to be replaced, so that when an operator configures a data table, not only the virtual objects that need to be replaced but also the virtual objects that do not need to be replaced need to be configured, and the configured data volume is large; the data volume of the server to be copied is also large, so that the configuration efficiency is low; in addition, because the amount of copied data is large, in some possible application scenarios, there is also a risk of memory overflow and the like.
Therefore, in order to solve the problems of large data volume and low configuration efficiency handled by the above solutions, another configuration solution provided at present is: after the operator configures and stores the current data tables needing to be dynamically updated on the server side, the server obtains the virtual objects needing to be dynamically modified in the current data tables according to the version number of each data table, and therefore the virtual objects needing to be modified are incrementally synchronized to the client.
According to the configuration scheme, the virtual objects needing to be modified only need to be incrementally synchronized to the client, other virtual objects which do not need to be replaced do not need to be synchronized, the processing data volume is small, the configuration efficiency can be improved, and the risk of memory overflow is avoided; however, in the configuration scheme, different data tables need to be compared according to the version number of each data table to obtain a virtual object which needs to be dynamically modified in the current data table, and a service code needs to be modified in a large range to achieve the purpose, so that the service code is greatly invaded, and the operation is not flexible enough.
Therefore, based on the above defects, a possible implementation manner provided by the embodiment of the present application is as follows: after the information to be configured is obtained, when the information to be configured is determined to be required to be synchronously displayed, adding the information to be configured into a target message queue; and after receiving the indication for verifying the passing of the information to be configured, pushing the target message queue so as to consume the information to be configured, without greatly modifying the service code, and also pushing the information to be configured, thereby flexibly configuring the information.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic application scenario diagram illustrating an information configuration method according to an embodiment of the present disclosure, in which a server and a client are located in a wireless network or a wired network, and the server and the client perform data interaction through the wireless network or the wired network.
In the embodiment of the present application, the client may adopt a mobile terminal device, which may include, for example, a smart phone, a Personal Computer (PC), a tablet computer, a wearable mobile terminal, and the like; in a specific application scenario, such as webcast, the client may be a main broadcasting end or a viewer end.
The information configuration method provided by the embodiment of the present application can be applied to a server as shown in fig. 1, where an application program is installed in the server, corresponds to a client, and is used to provide a service for a user.
Referring to fig. 2, fig. 2 shows a schematic block diagram of a server 100 provided in the embodiment of the present application, where the server 100 may include a memory 101, a processor 102, and a communication interface 103, and the memory 101, the processor 102, and the communication interface 103 are electrically connected to each other directly or indirectly to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 101 may be used to store software programs and modules, such as program instructions/modules corresponding to the information configuring apparatus provided in the embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 101 to execute various functional applications and data processing, thereby executing the steps of the information configuring method provided in the embodiment of the present application. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Programmable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The processor 102 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It will be appreciated that the configuration shown in fig. 2 is merely illustrative and that the server 100 may include more or fewer components than shown in fig. 2 or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
The following takes the server 100 shown in fig. 2 as an exemplary execution subject to exemplarily describe the information configuration method provided in the embodiment of the present application.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating an information configuring method according to an embodiment of the present application, which may include the following steps:
In an application scenario such as the above live webcasting, when a virtual object in a certain live webcasting room needs to be dynamically displayed, an operator may configure a data table that needs to be dynamically updated on the server side, where the data table records operation instructions for the virtual object, such as adding and displaying the virtual object a, deleting the virtual object B, and updating the virtual object C to be the virtual object D.
Correspondingly, the server can obtain a configured data table, take the data table as information to be configured, and judge whether the information to be configured needs to be synchronously displayed; when the information to be configured needs to be synchronously displayed, adding the information to be configured into a target message queue by using message components such as a RocktMq component and the like; otherwise, when it is determined that the information to be configured does not need to be synchronously displayed, the information to be configured may be discarded, that is, the information to be configured is ignored.
Then, the check node can check and verify the information to be configured in the target message queue; after the server receives the indication that the information to be configured passes the verification, the server can push the target message queue to consume the information to be configured; for example, in the application scenario of the webcast, the server may push the target message queue to all clients (including the anchor client and the viewer client) in the live broadcast room, so that the clients may obtain the information to be configured for consumption, that is: the client may perform corresponding dynamic display according to the information to be configured, such as adding and displaying the virtual object a, deleting the virtual object B, updating the virtual object C to the virtual object D, and the like, in the foregoing examples.
Based on the above design, in the information configuration method provided in the embodiment of the present application, after the information to be configured is obtained, when it is determined that the information to be configured needs to be synchronously displayed, the information to be configured is added to the target message queue; and after receiving the indication for verifying the passing of the information to be configured, pushing the target message queue so as to consume the information to be configured.
In an application scenario such as live webcast, an operator may configure a plurality of different types of messages such as virtual gifts, virtual items, and dynamic rankings according to different application requirements. To this end, when storing configuration messages using a message component such as rockmq, a plurality of different topic queues may be set so that different types of configuration messages may be stored into different topic queues.
Therefore, as a possible implementation manner, the server may record a topic queue policy, where the topic queue policy records a correspondence relationship between multiple topic names and multiple message queues, for example, taking three virtual objects of the above example, a virtual gift, a virtual prop, and a dynamic ranking, the topic queue policy may be as shown in table 1 below:
TABLE 1
Subject name | Message queue |
GIFT | 1 |
ITEMS | 2 |
RANK | 3 |
For this reason, when the operator configures the data table as the information to be configured, the operator may configure a table name for the data table, for example, according to the rule shown in table 1, the table name of the data table may be GIFT, ITEMS, or RANK; accordingly, when the server uses the data table as the information to be configured, the table name of the data table can be used as the target subject name of the information to be configured.
Therefore, when the server executes step 205, the server may use the message queue corresponding to the target topic name in the topic queue policy as the target message queue according to the topic queue policy shown in fig. 1, so as to add the information to be configured to the target message queue corresponding to the target topic name.
For example, according to the example of fig. 1, when the subject name of the information to be configured is GIFT, the information to be configured may be added to the message queue 1; when the subject name of the information to be configured is ITEMS, adding the information to be configured into a message queue 2; when the subject name of the information to be configured is RANK, the information to be configured may be added to the message queue 3.
It should be noted that, the above is only an illustration, and the to-be-configured information is stored in the corresponding topic queue in a manner that the topic name corresponds to the message queue; in other possible implementation manners of the embodiment of the application, the server may also store the information to be configured to the corresponding topic queue in other manners; for example, the information to be configured may further include a queue identifier, and when the server acquires the information to be configured and determines that the information to be configured needs to be synchronously displayed, the information to be configured may be added to the target message queue indicated by the queue identifier according to the queue identifier included in the information to be configured; the embodiment of the present application does not limit how to store the information to be configured in the corresponding topic queue.
In addition, the server can also judge whether the information to be configured needs to be synchronously displayed based on the target subject name included in the information to be configured.
For example, the server may further record a synchronization list, where the synchronization list records subject names of all configuration information that needs to be synchronously displayed.
Thus, referring to fig. 4, fig. 4 shows a schematic flow chart of the sub-steps of step 203 in fig. 3, as a possible implementation, step 203 may include the following sub-steps:
step 203-1, judging whether the target subject name exists in the synchronous list; if so, judging that the information to be configured needs to be synchronously displayed; and when the information to be configured does not need to be synchronously displayed, judging that the information to be configured does not need to be synchronously displayed.
In the embodiment of the application, the server can compare the target subject names included in the information to be configured with all subject names recorded in the synchronous list based on the recorded synchronous list; when the target subject name exists in the synchronous list, the server judges that the information to be configured needs to be synchronously displayed; and when the target subject name does not exist in the synchronous list, the server judges that the information to be configured does not need to be synchronously displayed.
Of course, it can be understood that the above implementation manner is only an example, and whether the information to be configured needs to be synchronously displayed is determined by combining the target subject name included in the information to be configured and the set synchronization list; in other possible implementation manners of the embodiment of the application, other manners may also be adopted to determine whether the information to be configured needs to be synchronously displayed; for example, when the operator configures the information to be configured, identification information for indicating whether synchronous display is required may be added to the information to be configured, so that the server may determine whether synchronous display is required according to the identification information; the embodiment of the application does not limit how to judge whether the information to be configured needs to be synchronously displayed.
Moreover, as a possible implementation manner, when an operator configures, for example, a data table for waiting configuration information, the server may record the information to be configured in Mysql, and record a change condition of Mysql by using a binlog log file.
In this way, when step 201 is executed, the server may monitor the log file in Mysql by using canal (incremental data subscription and consumption service), so as to obtain the information to be configured in the log file.
Of course, it can be understood that in some other possible implementations of the embodiment of the present application, when the information to be configured is obtained in the form of a snoop log file, other services besides canal, such as Databus, maxwell, and the like, may also be used.
In an application scenario such as live webcasting, multiple viewers may interact with a main webcasting in the same live webcasting room, so that a large number of virtual objects may exist in a short time and need to be updated, a server needs to process more information to be configured, the processing pressure is high, and situations such as memory overflow may occur.
To this end, referring to fig. 5 on the basis of fig. 3, fig. 5 shows another schematic flowchart of an information configuration method provided in the embodiment of the present application, and may further include the following steps:
In this embodiment, the server may be configured with an intermediate information SET, for example, a data storage space SET named "SET" may be SET as the intermediate information SET, and the intermediate information SET is used to collect the waiting configuration information, for example, a data table, configured by the operator, and add the waiting configuration information, which is determined to need to be synchronously displayed, to the message queue.
Therefore, in the embodiment of the present application, before the server performs step 201 to obtain the information to be configured, it may first determine whether the intermediate information set is empty; when empty, the server performs step 201, namely: adding the information to be configured to the intermediate information set, and adding the information to be configured in the intermediate information set to the target message queue when step 205 is executed.
In addition, after performing step 205, the server may empty the intermediate information set, i.e.: and deleting all the information to be configured added into the target message queue.
Therefore, when the intermediate information set is empty, the server can add the information to be configured to the intermediate information set, so that after the server determines that the information to be configured needs to be synchronously displayed, the information to be configured in the intermediate information set is added to the target information queue, the intermediate information set is emptied, and the process is repeated, so that the server only needs to process the information to be configured in the intermediate information set, and does not need to process all the received information to be configured, and the processing pressure of the server can be reduced.
It should be noted that, in the above scheme of collecting and processing the information to be configured by using the intermediate information set, since the intermediate information set needs to be cleared, new information to be configured is added to the intermediate information set, so that the intermediate information set generally includes multiple pieces of information to be configured; however, in a scene such as live webcasting, there is often a configuration in which multiple operators dynamically display a virtual object in the same live webcasting room, so that there may be multiple operations on the same virtual object, and further there may be errors in subsequent operations.
For example, when the client receives two deletion instructions for the virtual object a, the virtual object a is deleted after the first deletion instruction is executed; when the second deletion instruction is executed, the virtual object a cannot be found because the virtual object a has been deleted, so that an error is reported in the operation of the second deletion instruction.
To this end, referring to fig. 6 on the basis of fig. 5, fig. 6 shows a further schematic flowchart of the information configuring method prompted by the embodiment of the present application, before performing step 205, the information configuring method may further include the following steps:
and step 204, performing deduplication processing on all information to be configured included in the intermediate information set.
In this embodiment of the application, before the server performs step 205, the server may perform deduplication processing on all pieces of information to be configured included in the intermediate information set, so that the intermediate information combination does not include the same piece of information to be configured; thus, when step 205 is executed, the information to be configured after the deduplication processing in the intermediate information set is added to the target message queue; therefore, when the information to be configured is consumed, the error report of the information to be configured can be avoided when the information to be configured is executed.
As a possible implementation manner, in an application scenario such as live webcasting, the information to be configured may include a type identifier and an operation identifier; for example, the naming format of the information to be configured may be: table name _ ID _ operation type, for example: GIFT _0399_ ADD; here, "GIFT _ 0399" is a type identifier, and indicates "GIFT" with ID "0399", and "ADD" is an operation identifier, indicating an ADD operation.
In this way, when step 204 is executed, the server may merge the information to be configured having the same type identifier and operation identifier in the intermediate information set according to the type identifier and operation identifier of each information to be configured.
For example, the server may use the information to be configured, which has the same type identifier and operation identifier and is the last in time sequence among all the information to be configured, as the combined information to be configured.
Of course, it can be understood that the above is only an illustration, and the information to be configured, which is in the last time sequence among all the information to be configured having the same type identifier and operation identifier, is selected as the combined information to be configured; in some other possible implementation manners of the embodiment of the present application, for example, the information to be configured with the time sequence being the first may also be selected as the combined information to be configured; the embodiment of the present application does not limit the manner of merging the information to be configured with the same type identifier and operation identifier.
In addition, based on the same inventive concept as the above information configuring method provided in the embodiment of the present application, please refer to fig. 7, and fig. 7 shows a schematic structural block diagram of an information configuring apparatus 300 provided in the embodiment of the present application, which includes an obtaining module 301 and a processing module 302. Wherein:
an obtaining module 301, configured to obtain information to be configured;
the processing module 302 is configured to determine whether the information to be configured needs to be synchronously displayed;
the processing module 302 is further configured to add the information to be configured to the target message queue when it is determined that the information to be configured needs to be synchronously displayed;
the processing module 302 is further configured to, after receiving the indication that the information to be configured passes the verification, push the target message queue to consume the information to be configured.
Optionally, as a possible implementation manner, the information to be configured includes a target subject name;
when adding the information to be configured to the target message queue, the processing module 302 is specifically configured to:
adding information to be configured into a target message queue corresponding to a target subject name according to the subject queue strategy; the topic queue strategy records the corresponding relation between a plurality of topic names and a plurality of message queues.
Optionally, as a possible implementation manner, when determining whether the information to be configured needs to be synchronously displayed, the processing module 302 is specifically configured to:
judging whether the target subject name exists in the synchronous list or not; the synchronous list records all subject names of the configuration information needing to be synchronously displayed;
when the target subject name exists in the synchronous list, judging that the information to be configured needs to be synchronously displayed;
and when the target subject name does not exist in the synchronous list, judging that the information to be configured does not need to be synchronously displayed.
Optionally, as a possible implementation manner, when the obtaining module 301 obtains the information to be configured, it is specifically configured to:
and monitoring the log file by using incremental data subscription and consumption service canal to acquire the information to be configured in the log file.
Optionally, as a possible implementation manner, before the obtaining module 301 obtains the information to be configured, the processing module 302 is further configured to:
judging whether the intermediate information set is empty or not;
when the intermediate information set is empty, the obtaining module 301 adds the information to be configured to the intermediate information set when obtaining the information to be configured;
after adding the information to be configured to the target message queue, the processing module 302 is further configured to:
and clearing the intermediate information set.
Optionally, as a possible implementation manner, before adding the information to be configured to the target message queue, the processing module 302 is further configured to:
carrying out duplicate removal processing on information to be configured included in the intermediate information set;
when the processing module 302 adds the information to be configured to the target message queue, the processing module is specifically configured to:
and adding the information to be configured after the de-duplication processing in the intermediate information set into a target message queue.
Optionally, as a possible implementation manner, the information to be configured includes a type identifier and an operation identifier;
when performing deduplication processing on information to be configured included in the intermediate information set, the processing module 302 is specifically configured to:
and merging the information to be configured with the same type identifier and operation identifier in the intermediate information set.
Optionally, as a possible implementation manner, when merging the information to be configured with the same type identifier and operation identifier in the intermediate information set, the processing module 302 is specifically configured to:
and taking the information to be configured with the same type identifier and operation identifier and the corresponding time sequence in all the information to be configured as the combined information to be configured.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s).
It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Claims (11)
1. An information configuration method, characterized in that the method comprises:
acquiring information to be configured;
judging whether the information to be configured needs to be synchronously displayed or not;
when the information to be configured is judged to need to be synchronously displayed, adding the information to be configured into a target message queue;
and after receiving an indication that the information to be configured passes the verification, pushing the target message queue to consume the information to be configured.
2. The method of claim 1, wherein the information to be configured includes a target subject name;
adding the information to be configured into a target message queue, wherein the step comprises the following steps:
adding the information to be configured into the target message queue corresponding to the target subject name according to a subject queue strategy; the topic queue strategy records the corresponding relation between a plurality of topic names and a plurality of message queues.
3. The method of claim 1, wherein the information to be configured includes a target subject name;
the step of judging whether the information to be configured needs to be synchronously displayed comprises the following steps:
judging whether the target subject name exists in a synchronous list or not; the synchronous list records all subject names of the configuration information needing to be synchronously displayed;
when the target subject name exists in the synchronous list, judging that the information to be configured needs to be synchronously displayed;
and when the target subject name does not exist in the synchronous list, judging that the information to be configured does not need to be synchronously displayed.
4. The method of claim 1, wherein the step of obtaining information to be configured comprises:
and monitoring a log file by using incremental data subscription and consumption service canal to acquire the information to be configured in the log file.
5. The method of claim 1, wherein prior to the step of obtaining the information to be configured, the method further comprises:
judging whether the intermediate information set is empty or not;
when the intermediate information set is empty, executing a step of acquiring information to be configured so as to add the information to be configured to the intermediate information set;
after the step of adding the information to be configured to the target message queue, the method further comprises:
and emptying the intermediate information set.
6. The method of claim 5, wherein prior to the step of adding the information to be configured to a target message queue, the method further comprises:
carrying out duplicate removal processing on the information to be configured in the intermediate information set;
adding the information to be configured into a target message queue, wherein the step comprises the following steps:
and adding the information to be configured after the de-duplication processing in the intermediate information set into the target message queue.
7. The method of claim 6, wherein the information to be configured includes a type identifier and an operation identifier;
the step of performing deduplication processing on the information to be configured included in the intermediate information set includes:
and merging the information to be configured with the same type identifier and operation identifier in the intermediate information set.
8. The method of claim 7, wherein the step of combining the information to be configured with the same type identifier and operation identifier in the intermediate information set comprises:
and taking the information to be configured with the same type identifier and operation identifier and the corresponding time sequence in all the information to be configured as the combined information to be configured.
9. An information configuring apparatus, the apparatus comprising:
the acquisition module is used for acquiring information to be configured;
the processing module is used for judging whether the information to be configured needs to be synchronously displayed;
the processing module is further used for adding the information to be configured into a target message queue when the information to be configured is judged to need to be synchronously displayed;
the processing module is further configured to push the target message queue to flow after receiving an indication that the information to be configured passes the verification, so that the information to be configured is consumed.
10. A server, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the method of any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010011578.2A CN111209071A (en) | 2020-01-06 | 2020-01-06 | Information configuration method, device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010011578.2A CN111209071A (en) | 2020-01-06 | 2020-01-06 | Information configuration method, device, server and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111209071A true CN111209071A (en) | 2020-05-29 |
Family
ID=70788645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010011578.2A Pending CN111209071A (en) | 2020-01-06 | 2020-01-06 | Information configuration method, device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111209071A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738182A (en) * | 2020-12-24 | 2021-04-30 | 海南车智易通信息技术有限公司 | Data pushing system, data pushing method and computing equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196961A (en) * | 2017-12-28 | 2018-06-22 | 广东蜂助手网络技术股份有限公司 | A kind of asynchronous message processing method, terminal, system and storage medium |
CN110191193A (en) * | 2019-06-12 | 2019-08-30 | 广州吱呀网络科技有限公司 | A kind of terminal message synchronous method, device and mobile terminal |
CN110191348A (en) * | 2018-02-23 | 2019-08-30 | 武汉斗鱼网络科技有限公司 | The processing method and processing device of interactive message in net cast |
CN110321387A (en) * | 2019-07-10 | 2019-10-11 | 中国联合网络通信集团有限公司 | Method of data synchronization, equipment and terminal device |
CN110401592A (en) * | 2019-07-30 | 2019-11-01 | 三体云智能科技有限公司 | The method and apparatus of stream compression in a kind of message channel |
-
2020
- 2020-01-06 CN CN202010011578.2A patent/CN111209071A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196961A (en) * | 2017-12-28 | 2018-06-22 | 广东蜂助手网络技术股份有限公司 | A kind of asynchronous message processing method, terminal, system and storage medium |
CN110191348A (en) * | 2018-02-23 | 2019-08-30 | 武汉斗鱼网络科技有限公司 | The processing method and processing device of interactive message in net cast |
CN110191193A (en) * | 2019-06-12 | 2019-08-30 | 广州吱呀网络科技有限公司 | A kind of terminal message synchronous method, device and mobile terminal |
CN110321387A (en) * | 2019-07-10 | 2019-10-11 | 中国联合网络通信集团有限公司 | Method of data synchronization, equipment and terminal device |
CN110401592A (en) * | 2019-07-30 | 2019-11-01 | 三体云智能科技有限公司 | The method and apparatus of stream compression in a kind of message channel |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738182A (en) * | 2020-12-24 | 2021-04-30 | 海南车智易通信息技术有限公司 | Data pushing system, data pushing method and computing equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108196961B (en) | Asynchronous message processing method, terminal, system and storage medium | |
CN110321387B (en) | Data synchronization method, equipment and terminal equipment | |
CN111555963B (en) | Message pushing method and device, electronic equipment and storage medium | |
CN108874558B (en) | Message subscription method of distributed transaction, electronic device and readable storage medium | |
US10331625B2 (en) | Managing sequential data store | |
EP3477914B1 (en) | Data recovery method and device, and cloud storage system | |
EP2948875B1 (en) | Method and system for using a recursive event listener on a node in hierarchical data structure | |
CN107977396B (en) | Method and device for updating data table of KeyValue database | |
KR20210005043A (en) | Input and output schema mapping | |
CN107908442B (en) | Spring-based resource loading method and device, terminal equipment and computer-readable storage medium | |
CN109788026B (en) | Message processing method and device | |
CN110569249A (en) | data change pushing method and device and electronic equipment | |
CN111209071A (en) | Information configuration method, device, server and storage medium | |
CN111191094A (en) | CEPH storage object searching method and device and storage device | |
WO2017012401A1 (en) | Abnormal contact information detection method, server and system | |
CN111753141B (en) | Data management method and related equipment | |
CN107193891B (en) | Content recommendation method and device | |
CN107135258B (en) | Message pushing method and server | |
CN113507529B (en) | Method for realizing file downloading based on Web application | |
CN114579667A (en) | Method, device and system for incremental synchronization of HBase data | |
CN111290873B (en) | Fault processing method and device | |
CN115221242A (en) | Data synchronization method and device and computer readable storage medium | |
CN114816583A (en) | Flink-based data automatic processing method and device and electronic equipment | |
CN112667284A (en) | Micro-service maintenance method, device, server and storage medium | |
US20160188748A1 (en) | Method for providing information to determine a graph associated with a data item |
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 |