Message component connection method, medium, equipment and device
By querying the message report push table and feeding back the message component connection information, the problem of insufficient channel performance of the message component caused by the increase in the number of terminals is solved, the operating efficiency of the message component is improved and the operating cost is reduced.
Patent Information
- Application Number
- CN202211522985.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-11-30
AI Technical Summary
As the number of terminals increases, the performance pressure on the message component channel increases, resulting in increased system redundancy and operation and maintenance costs, and the existence of invalid connections, which reduces the operating efficiency of the message component.
By obtaining the terminal's query request, querying the message report push table to determine whether there are pushed unread message reports, and feeding back the corresponding message component connection information, the terminal can effectively connect and disconnect the message component and avoid invalid connections.
It improves the operating efficiency of message components, reduces the risk of insufficient component channel performance due to too many terminals, and reduces operation and maintenance costs.
Smart Images

Figure CN116016652B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet communication technology, and in particular to a message component connection method, medium, equipment and device. Background Art
[0002] With the development of the Internet and the networking of terminals, more and more terminals are connected to the Internet. For business and user service needs, various operators will push various types of message reports to the terminals.
[0003] As the number of terminals increases, the performance pressure on the component channels that receive message reports from terminals becomes greater and greater, and they have to expand capacity by adding message component channel servers. The entire system becomes more and more redundant, and more problems of coordination and balance between message component channels arise, resulting in higher and higher enterprise operation and maintenance costs.
[0004] In the related art, the main method for terminals to connect to the message component channel is: after the terminal is turned on and connected to the network, it connects to the message component channel indiscriminately and waits for the message report to be pushed. When the number of terminals is increasing, it is easy to have too many terminals and exceed the connection performance limit of the message component channel; moreover, many connections are invalid, which greatly reduces the operation efficiency of the message component. Summary of the invention
[0005] The present invention aims to solve one of the technical problems in the related art to at least a certain extent. To this end, one purpose of the present invention is to propose a message component connection method that can ensure that the terminal effectively receives the message report; at the same time, greatly improve the operation efficiency of the message component and reduce the risk of insufficient component channel performance caused by too many terminals.
[0006] According to an embodiment of the present invention, the message component connection method includes: obtaining a query request sent by a terminal, and querying a message report push table according to the query request to determine whether there is a pushed but unread message report in the message report push table; when there is a pushed but unread message report in the message report push table, the message component connection information corresponding to the pushed but unread message report is fed back to the terminal, so that the terminal connects to the corresponding message component according to the message component connection information.
[0007] According to the message component connection method of the embodiment of the present invention, first, the query request sent by the terminal is obtained, and the message report push table is queried according to the query request to determine whether there is a message report that has been pushed but not read in the message report push table; if so, it means that the terminal currently has a component connection demand; then, when there is a message report that has been pushed but not read in the message report push table, the message component connection information corresponding to the message report that has been pushed but not read is fed back to the terminal, so that the terminal can connect to the corresponding message component according to the message component connection information. Thereby, the terminal is guaranteed to effectively receive the message report; at the same time, the operation efficiency of the message component is greatly improved, and the risk of insufficient component channel performance caused by too many terminals is reduced.
[0008] In some embodiments, the method further includes: when the background system pushes the message report to the terminal, the push information corresponding to the message report is stored in a message report push table; when the terminal reads the message report, the reading record corresponding to the message report is stored in a message report reading table.
[0009] In some embodiments, the message report push table includes: a push table ID field, a pushed message report ID field, a terminal identification code field and a push time field; the message report reading table includes: a reading table ID field, a read message report ID field, a terminal identification code field, a reading type field and a reading time field.
[0010] In some embodiments, the query request includes a terminal identification code, wherein querying the message report push table according to the query request to determine whether there is a pushed but unread message report in the message report push table, includes: querying the message report push table and the message report reading table according to the terminal identification code to obtain the corresponding pushed message report ID field and the read message report ID field; comparing the pushed message report ID field and the read message report ID field to determine whether there is a pushed but unread message report in the message report push table.
[0011] In some embodiments, the message component connection information includes a message component name and a message component connection address.
[0012] In some embodiments, after storing the reading record corresponding to the message report in the message report reading table, the method further includes: the terminal disconnecting the message component corresponding to the message report.
[0013] In a second aspect, the present invention provides a computer-readable storage medium having a message component connection program stored thereon, and the message component connection program, when executed by a processor, implements the message component connection method as described above.
[0014] According to the computer-readable storage medium of an embodiment of the present invention, by storing a message component connection program, the processor implements the message component connection method as described above when executing the message component connection program, thereby ensuring that the terminal effectively receives the message report; at the same time, the operating efficiency of the message component is greatly improved, and the risk of insufficient component channel performance due to an excessive number of terminals is reduced.
[0015] In a third aspect, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the message component connection method as described above is implemented.
[0016] According to the computer device of an embodiment of the present invention, the message component connection program is stored in the memory, so that when the processor executes the message component connection program, it implements the message component connection method as described above, thereby ensuring that the terminal effectively receives the message report; at the same time, the operation efficiency of the message component is greatly improved, and the risk of insufficient component channel performance due to an excessive number of terminals is reduced.
[0017] In the fourth aspect, an embodiment of the present invention proposes a message component connection device, including: a query module, the query module is used to obtain a query request sent by a terminal, and query a message report push table according to the query request to determine whether there is a pushed but unread message report in the message report push table; a push module, the push module is used to feed back the message component connection information corresponding to the pushed but unread message report to the terminal when there is a pushed but unread message report in the message report push table, so that the terminal can connect to the corresponding message component according to the message component connection information.
[0018] According to the message component connection device of the embodiment of the present invention, a query module is set to obtain the query request sent by the terminal, and the message report push table is queried according to the query request to determine whether there is a message report that has been pushed but not read in the message report push table; the push module is used to feed back the message component connection information corresponding to the message report that has been pushed but not read to the terminal when there is a message report that has been pushed but not read in the message report push table, so that the terminal can connect to the corresponding message component according to the message component connection information. Thereby, the terminal is guaranteed to effectively receive the message report; at the same time, the operation efficiency of the message component is greatly improved, and the risk of insufficient component channel performance caused by too many terminals is reduced.
[0019] In some embodiments, the device also includes: a recording module; the recording module is used to store the push information corresponding to the message report into a message report push table when the background system pushes the message report to the terminal; the recording module is also used to store the reading record corresponding to the message report into a message report reading table when the terminal reads the message report.
[0020] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of a message component connection method according to an embodiment of the present invention;
[0022] Figure 2 is a flow chart of a message component connection method according to another embodiment of the present invention;
[0023] Figure 3 is a block diagram of a computer device according to an embodiment of the present invention;
[0024] Figure 4 It is a block diagram of a message component connection device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0026] The message component connection method according to an embodiment of the present invention is described below with reference to the accompanying drawings.
[0027] See also Figure 1 , Figure 1 FIG. 4 is a flow chart of a message component connection method according to an embodiment of the present invention; Figure 1 As shown, the message component connection method includes the following steps:
[0028] S101, obtaining a query request sent by a terminal, and querying a message report push table according to the query request to determine whether there is a pushed but unread message report in the message report push table.
[0029] In some embodiments, the method further includes: when the background system pushes the message report to the terminal, storing the push information corresponding to the message report in the message report push table; when the terminal reads the message report, storing the reading record corresponding to the message report in the message report reading table.
[0030] In some embodiments, the message report push table includes: a push table ID field, a pushed message report ID field, a terminal identification code field and a push time field; the message report reading table includes: a reading table ID field, a read message report ID field, a terminal identification code field, a reading type field and a reading time field.
[0031] As an example, when the background system pushes a message report to the terminal, it stores the relevant push records of the message report in the message report push table, so as to record which message reports the background system has pushed through the message report push table; wherein the message report push table may include: a push table ID field, a pushed message report ID field, a terminal identification code field, and a push time field; when the terminal receives the message report, it clicks to read the message report, and feeds back the click information to the background system, so that the background system stores the reading records of the message report in the message report reading table, so as to record which message reports the terminal has read through the message report reading table. wherein the message report reading table includes: a reading table ID field, a read message report ID field, a terminal identification code field, a reading type field, and a reading time field.
[0032] In some embodiments, after storing the reading record corresponding to the message report in the message report reading table, the method further includes: the terminal disconnecting the connection with the message component corresponding to the message report.
[0033] That is, after the user finishes reading the message report through the terminal, the terminal disconnects the message component corresponding to the read message report, thereby avoiding invalid connections occupying the message component channel for a long time, and further improving the operation efficiency of the message component channel.
[0034] As an example, when the terminal reads a message report, the terminal feeds back corresponding reading information to the background system according to the user's reading click instruction; at the same time, the terminal disconnects itself from the corresponding message component channel according to the reading information to save resources.
[0035] In some embodiments, the query request includes a terminal identification code, wherein a message report push table is queried according to the query request to determine whether there is a pushed but unread message report in the message report push table, including: querying the message report push table and the message report reading table according to the terminal identification code to obtain the corresponding pushed message report ID field and the read message report ID field; comparing the pushed message report ID field and the read message report ID field to determine whether there is a pushed but unread message report in the message report push table.
[0036] In some embodiments, the message component connection information includes a message component name and a message component connection address.
[0037] As an example, after the terminal is turned on and connected to the network, the terminal sends a query interface with a terminal identification code. The background system queries the message report push table and the message report reading table according to the terminal identification code to obtain the corresponding pushed message report ID field and the read message report ID field; then, it is determined whether there is a message report ID in the pushed message report ID field that is not stored in the read message report ID field; if it exists, it means that the corresponding message report has been pushed but not read. If it does not exist, it means that the currently pushed message report has been read by the terminal, and the terminal does not need to connect to the message component channel at present.
[0038] S102, when there are pushed but unread message reports in the message report push table, the message component connection information corresponding to the pushed but unread message reports is fed back to the terminal, so that the terminal can connect to the corresponding message component according to the message component connection information.
[0039] As a specific embodiment of the present invention; Figure 2 As shown, the message component connection method includes the following steps:
[0040] S201, after the terminal is turned on and connected to the Internet, it sends a query request to the enterprise backend system, and the query request includes a terminal identification code.
[0041] S202, the enterprise backend system queries the message report push table and the message report reading table according to the terminal identification code to obtain the corresponding pushed message report ID field and read message report ID field.
[0042] S203, judging whether there is a pushed but unread message report according to the pushed message report ID field and the read message report ID field; if yes, executing step S204.
[0043] S204: Obtain corresponding message component connection information according to the pushed but unread message report, where the message component connection information includes a message component name and a message component connection address.
[0044] S205, sending the message component connection information to the terminal.
[0045] S206: The terminal connects to the corresponding message component channel according to the message component connection address.
[0046] S207, after the connection, the terminal requests a report of unread messages that have been pushed.
[0047] S208, sending a pushed but unread message report to the terminal.
[0048] S209, the terminal message reports the corresponding instruction that has been read, and disconnects the corresponding message component channel according to the instruction that has been read.
[0049] In summary, according to the message component connection method of the embodiment of the present invention, first, obtain the query request sent by the terminal, and query the message report push table according to the query request to determine whether there is a message report that has been pushed but not read in the message report push table; if so, it means that the terminal currently has a component connection demand; then, when there is a message report that has been pushed but not read in the message report push table, the message component connection information corresponding to the message report that has been pushed but not read is fed back to the terminal, so that the terminal can connect to the corresponding message component according to the message component connection information. Thereby, it is ensured that the terminal effectively receives the message report; at the same time, the operation efficiency of the message component is greatly improved, and the risk of insufficient component channel performance caused by too many terminals is reduced.
[0050] In order to implement the above embodiment, the embodiment of the present invention proposes a computer-readable storage medium, on which a message component connection program is stored. When the message component connection program is executed by a processor, the message component connection method as described above is implemented.
[0051] According to the computer-readable storage medium of an embodiment of the present invention, by storing a message component connection program, the processor implements the message component connection method as described above when executing the message component connection program, thereby ensuring that the terminal effectively receives the message report; at the same time, the operating efficiency of the message component is greatly improved, and the risk of insufficient component channel performance due to an excessive number of terminals is reduced.
[0052] In order to implement the above embodiment, Figure 3 As shown, an embodiment of the present invention proposes a computer device 300, which includes a memory 301, a processor 302, and a computer program stored in the memory 301 and executable on the processor. When the processor 302 executes the program, the message component connection method as described above is implemented.
[0053] According to the computer device of an embodiment of the present invention, the message component connection program is stored in the memory, so that when the processor executes the message component connection program, it implements the message component connection method as described above, thereby ensuring that the terminal effectively receives the message report; at the same time, the operation efficiency of the message component is greatly improved, and the risk of insufficient component channel performance due to an excessive number of terminals is reduced.
[0054] In order to implement the above embodiment, the embodiment of the present invention proposes a message component connection device, such as Figure 4 As shown, the message component connection device includes: a query module 10 and a push module 20.
[0055] The query module 10 is used to obtain the query request sent by the terminal, and query the message report push table according to the query request to determine whether there is a message report that has been pushed but not read in the message report push table;
[0056] The push module 20 is used to feed back the message component connection information corresponding to the pushed but unread message report to the terminal when there is a pushed but unread message report in the message report push table, so that the terminal can connect to the corresponding message component according to the message component connection information.
[0057] In some embodiments, the device also includes a recording module; the recording module is used to store the push information corresponding to the message report in the message report push table when the background system pushes the message report to the terminal; the recording module is also used to store the reading record corresponding to the message report in the message report reading table when the terminal reads the message report.
[0058] In some embodiments, the message report push table includes: a push table ID field, a pushed message report ID field, a terminal identification code field and a push time field; the message report reading table includes: a reading table ID field, a read message report ID field, a terminal identification code field, a reading type field and a reading time field.
[0059] In some embodiments, the query request includes a terminal identification code, and the query module 10 is also used to query the message report push table and the message report reading table according to the terminal identification code to obtain the corresponding pushed message report ID field and the read message report ID field; compare the pushed message report ID field and the read message report ID field to determine whether there is a pushed but unread message report in the message report push table.
[0060] In some embodiments, the message component connection information includes a message component name and a message component connection address.
[0061] In some embodiments, the push module 20 is further configured to feedback a corresponding operation completion instruction after storing the reading record corresponding to the message report in the message report reading table, so that the terminal disconnects the message component corresponding to the message report according to the operation completion instruction.
[0062] It should be noted that the above description of the message component connection method is also applicable to the message component connection device, and will not be repeated here.
[0063] In summary, according to the message component connection device of the embodiment of the present invention, a query module is set to obtain the query request sent by the terminal, and the message report push table is queried according to the query request to determine whether there is a message report that has been pushed but not read in the message report push table; the push module is used to feed back the message component connection information corresponding to the message report that has been pushed but not read to the terminal when there is a message report that has been pushed but not read in the message report push table, so that the terminal can connect to the corresponding message component according to the message component connection information. Thereby, the terminal is guaranteed to effectively receive the message report; at the same time, the operation efficiency of the message component is greatly improved, and the risk of insufficient component channel performance caused by too many terminals is reduced.
[0064] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0065] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0066] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0067] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0068] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0069] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0070] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0071] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A message component connection method, characterized in that: include: Obtaining a query request sent by the terminal, and querying a message report push table according to the query request to determine whether there is a pushed but unread message report in the message report push table; When there is a pushed but unread message report in the message report push table, feeding back the message component connection information corresponding to the pushed but unread message report to the terminal, so that the terminal connects to the corresponding message component according to the message component connection information; When the background system pushes the message report to the terminal, the push information corresponding to the message report is stored in the message report push table; When the terminal reads the message report, the reading record corresponding to the message report is stored in a message report reading table; The message component connection information includes a message component name and a message component connection address.
2. The message component connection method according to claim 1, characterized in that: The message report push table includes: a push table ID field, a pushed message report ID field, a terminal identification code field and a push time field; The message report reading table includes: a reading table ID field, a read message report ID field, a terminal identification code field, a reading type field and a reading time field.
3. The message component connection method according to claim 2, characterized in that: The query request includes a terminal identification code, wherein querying a message report push table according to the query request to determine whether there is a pushed but unread message report in the message report push table includes: Query the message report push table and the message report reading table according to the terminal identification code to obtain the corresponding pushed message report ID field and read message report ID field; The pushed message report ID field and the read message report ID field are compared to determine whether there is a pushed but unread message report in the message report push table.
4. The message component connection method according to claim 1, characterized in that: After storing the reading record corresponding to the message report in the message report reading table, the method further includes: The terminal disconnects the message component corresponding to the message report.
5. A computer-readable storage medium, characterized in that: A message component connection program is stored thereon, and when the message component connection program is executed by a processor, the message component connection method as described in any one of claims 1-4 is implemented.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the message component connection method as described in any one of claims 1 to 4 is implemented.
7. A message component connection device, characterized in that: include: A query module, the query module is used to obtain a query request sent by the terminal, and query the message report push table according to the query request to determine whether there is a pushed but unread message report in the message report push table; A push module, wherein the push module is used to feed back the message component connection information corresponding to the pushed but unread message report to the terminal when there is a pushed but unread message report in the message report push table, so that the terminal connects to the corresponding message component according to the message component connection information; Recording module; The recording module is used to store the push information corresponding to the message report into the message report push table when the background system pushes the message report to the terminal; The recording module is also used to store the reading record corresponding to the message report into the message report reading table when the terminal reads the message report; The message component connection information includes a message component name and a message component connection address.
