CN114979257A - Message pushing method and device, computer equipment and computer readable storage medium - Google Patents

Message pushing method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN114979257A
CN114979257A CN202210569820.7A CN202210569820A CN114979257A CN 114979257 A CN114979257 A CN 114979257A CN 202210569820 A CN202210569820 A CN 202210569820A CN 114979257 A CN114979257 A CN 114979257A
Authority
CN
China
Prior art keywords
message
message queue
producer
terminal
resource pool
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.)
Withdrawn
Application number
CN202210569820.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.)
Rootcloud Technology Co Ltd
Original Assignee
Rootcloud 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 Rootcloud Technology Co Ltd filed Critical Rootcloud Technology Co Ltd
Priority to CN202210569820.7A priority Critical patent/CN114979257A/en
Publication of CN114979257A publication Critical patent/CN114979257A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a message pushing method, a message pushing device, computer equipment and a computer readable storage medium, which are applied to the field of data processing, wherein the method comprises the following steps: when the first terminal receives the message pushing request, the corresponding target message queue producer in the message queue resource pool is determined according to the target producer type in the message pushing request, so that the first terminal can select a proper message queue producer through the message queue resource pool to push the message even if a subscriber needs to change the type of the message queue; after the target message queue producers are determined, the first terminal controls each target message queue producer to push the message to be pushed in the message pushing request to the corresponding message queue, so that the second terminal consumes the message queue corresponding to each target message queue producer to provide the message to the corresponding subscriber. Therefore, the invention avoids the code maintenance cost brought by the change of the message queue based on the setting of the message queue resource pool.

Description

Message pushing method and device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a message pushing method and apparatus, a computer device, and a computer-readable storage medium.
Background
In the programming of subscribing or pushing messages based on a Message Queue (Message Queue), the name of the Message Queue needs to be written into a source code to ensure that a producer and a consumer can accurately insert or read data according to the name of the Message Queue.
In such a way, when the message queue needs to be replaced, if the packet message queue needs to be replaced by the Kafka message queue, the name of the message queue in the source code needs to be edited and the source code needs to be recompiled; moreover, if the name of the message queue involves a lot of code design, a lot of cost is required for code maintenance.
Disclosure of Invention
In view of the above, the present invention provides a message pushing method, a message pushing apparatus, a computer device, and a computer readable storage medium, so as to improve the current situation that a source code needs to be re-edited when a message queue is replaced.
In a first aspect, an embodiment of the present invention provides a message pushing method, which is applied to a first terminal, where the first terminal is provided with a message queue resource pool, the message queue resource pool includes a plurality of message queue producers of different types, and each message queue producer is connected to a second terminal, where the method includes:
acquiring a message pushing request, wherein the message pushing request comprises a message to be pushed and a target producer type;
determining all target message queue producers with types matched with the types of the target producers from the message queue resource pool;
and controlling each target message queue producer to push the message to be pushed to the corresponding message queue so that the second terminal obtains the message to be pushed through the message queue.
Optionally, in an optional manner provided in the embodiment of the present invention, the method further includes:
detecting whether the connection between each message queue producer in the message queue resource pool and the second terminal is abnormal or not at preset time intervals;
and deleting the message queue producer with abnormal connection from the message queue resource pool.
Optionally, in an optional manner provided in the embodiment of the present invention, the first terminal is further provided with different types of producer factories, where the producer factories are configured to generate message queue producers of corresponding types;
before the obtaining of the message push request, the method further includes:
and responding to a creation request, and controlling a producer factory of a type corresponding to the creation request to create a message queue producer connected with the second terminal.
Optionally, in an optional manner provided in the embodiment of the present invention, the message queue resource pool sets the message queue producer based on a thread security container.
In a second aspect, an embodiment of the present invention provides a message pushing apparatus, which is applied to a first terminal, where the first terminal is provided with a message queue resource pool, the message queue resource pool includes a plurality of message queue producers of different types, and each of the message queue producers is connected to a second terminal, and the apparatus includes:
the system comprises a push request acquisition module, a push request acquisition module and a message push request processing module, wherein the message push request acquisition module is used for acquiring a message push request, and the message push request comprises a message to be pushed and a target producer type;
the determining module is used for determining all target message queue producers with the types matched with the types of the target producers from the message queue resource pool;
and the pushing module is used for controlling each target message queue producer to push the message to be pushed to the corresponding message queue so that the second terminal can obtain the message to be pushed through the message queue.
Optionally, in an optional manner provided in an embodiment of the present invention, the apparatus further includes:
the detection module is used for detecting whether the connection between each message queue producer in the message queue resource pool and the second terminal is abnormal or not at preset time intervals;
and the deleting module is used for deleting the message queue producer with abnormal connection from the message queue resource pool.
Optionally, in an optional manner provided in the embodiment of the present invention, the first terminal is further provided with different types of producer factories, and the producer factories are configured to generate corresponding types of message queue producers;
the device further comprises:
and the creation request response module is used for responding to the creation request and controlling a producer factory of the type corresponding to the creation request to create the message queue producer connected with the second terminal.
Optionally, in an optional manner provided in the embodiment of the present invention, the message queue resource pool sets the message queue producer based on a thread security container.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes message pushing as disclosed in any one of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when running on a processor, performs message pushing as disclosed in any one of the first aspects.
In the message pushing method provided by the embodiment of the invention, when the first terminal receives the message pushing request, the corresponding target message queue producer in the message queue resource pool is determined according to the target producer type in the message pushing request, so that even if a subscriber needs to replace a message queue, the first terminal can select a proper message queue producer through the message queue resource pool to push the message; after the target message queue producers are determined, the first terminal controls each target message queue producer to push the message to be pushed in the message pushing request to the corresponding message queue, so that the second terminal consumes the message queue corresponding to each target message queue producer to provide the message to the corresponding subscriber.
Based on the setting of the message queue resource pool, the embodiment of the invention ensures that when the subscriber needs to change the message queue, the source code in the first terminal does not need to be modified and compiled, and the message to be pushed can be pushed to the message queue corresponding to the subscriber according to the message pushing request, thereby avoiding the code maintenance cost brought by the change of the message queue and improving the processing efficiency.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a flowchart illustrating a first message pushing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a second message pushing method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a third message pushing method according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a message pushing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Referring to fig. 1, a flowchart of a first message pushing method provided by an embodiment of the present invention is shown, where the message pushing method provided by the embodiment of the present invention is applied to a first terminal, where the first terminal is provided with a message queue resource pool, the message queue resource pool includes a plurality of message queue producers of different types, and each message queue producer is connected to a second terminal.
It should be noted that the first terminal provided in the embodiment of the present invention is configured to mount a Message Queue (Message Queue) resource pool, and is configured to control, when receiving a corresponding request/instruction, an instance in the Message Queue resource pool to establish a connection with the second terminal, that is, control a Message Queue producer in the Message Queue resource pool to establish a connection with the second terminal, and push a Message to a Message Queue in the second terminal. In the embodiment of the present invention, a Service (Service) for storing messages (messages) is provided in the second terminal, that is, a Message queue corresponding to each Message queue producer in the first terminal is provided in the second terminal.
It can be understood that, similar to other resource pools (Resources Pool) in the prior art, the message queue resource Pool in the present invention is used for storing and controlling Resources, that is, storing and controlling a message queue producer, so as to monitor the processes of connection, destruction, deletion, and the like of each message queue producer in real time, so as to ensure the reasonable calling of the message queue producer. It can also be understood that the message queue resource pool provided by the embodiment of the present invention is a Container (Container) for storing the message queue producer.
It should be further noted that the message queue resource pool provided by the embodiment of the present invention includes a plurality of message queue producers of different types, for example, in an example, a plurality of pocket message queue producers, a plurality of Kafka message queue producers, and a plurality of rabbitmessage queue producers are arranged in the message queue resource pool.
It should be clear that the types of the message queue producers, i.e., the socket message queue producer, the Kafka message queue producer, and the rabbitmessage queue producer, are only examples provided by the embodiment of the present invention, and the embodiment of the present invention does not limit the types of the message queue producers and the types of the message queues, and both can be set according to actual situations.
And when the message queue resource pool comprises a socket message queue producer, a Kafka message queue producer and a Rabbit message queue producer, the communication mode of the second terminal and the corresponding message queue can be set according to the actual situation. In a feasible manner provided by the embodiment of the present invention, the socket Message queue communicates with the second terminal through Java-HTTP (Java-Hyper Text Transfer Protocol) and MQTT (Message queue Telemetry Transport) protocols, the Kafka Message queue communicates with the second terminal through an official Protocol written by Scala and Java, and the Rabbit Message queue communicates with the server through AMQP (Advanced Message Queuing Protocol) protocols. It should be understood that the communication mode between the different types of message queues and the second terminal can be set according to actual situations.
In addition, the message queue resource pool in the embodiment of the present invention also stores a serialization protocol of key and value, so as to ensure that any message queue producer can correctly call. Moreover, the message queue resource pool also stores various parameters required when the message queue producer establishes connection with the second terminal, such as connection timeout time, sending frequency and the like, so as to ensure that any message queue producer can establish effective connection with the second terminal.
Based on this, the message pushing method provided by the embodiment of the present invention includes:
s110, obtaining a message pushing request, wherein the message pushing request comprises a message to be pushed and a target producer type.
It is understood that the target producer type in the message push request represents the kind of message queue to which the message to be pushed needs to be pushed. Exemplarily, when the first terminal receives a message and the message needs a message push request to be pushed to the Kafka message queue and the rabbitmessage queue, the Kafka message queue producer and the rabbitmessage queue producer are the target producer type in the message push request.
S120, determining all target message queue producers with the types matched with the types of the target producers from the message queue resource pool;
that is, the first terminal screens out all message queue producers matching with the target producer type in the message queue resource pool as target message queue producers according to the type of each message queue producer in the message queue resource pool, such as a socket message queue producer, a Kafka message queue producer and a Rabbit message queue producer, and the target producer type in the message push request.
Exemplarily, if the target producer types in the message push request are Kafka and rabbits, the first terminal takes all Kafka message queue producers and all rabbits message queue producers in the message queue resource pool as target message queue producers.
Based on this, the embodiment of the invention realizes that even if the subscriber of the message needs to change the message queue, the first terminal can correspondingly select a proper message queue producer from the message queue resource pool according to the message pushing request to push the message to the corresponding message queue, and further does not need to edit and compile the source code, thereby avoiding the code maintenance cost brought by the change of the message queue.
S130, controlling each target message queue producer to push the message to be pushed to a corresponding message queue, so that the second terminal obtains the message to be pushed through the message queue.
That is, the first terminal controls each target message queue producer to perform message pushing once, that is, each target message queue producer pushes the message to be pushed in the message pushing request to the message queue in the second terminal. Furthermore, because the message queues corresponding to the target message queue producers in the second terminal all have corresponding messages, the second terminal can correspondingly provide the messages to the corresponding subscribers.
Exemplarily, when all Kafka message queue producers and all rabbitmessage queue producers in the message queue resource pool are target message queue producers, the first terminal controls each target message queue producer to push messages to the corresponding Kafka message queue or rabbitmessage queue. Meanwhile, the second terminal performs corresponding data filtering and screening according to the messages in all Kafka message queues and all Rabbit message queues so as to transmit correct messages to corresponding subscribers.
It can be understood that the manner of filtering and screening the message received by the second terminal may be set according to actual situations, and the embodiment of the present invention does not limit this.
In the message pushing method provided by the embodiment of the invention, when the first terminal receives the message pushing request, the corresponding target message queue producer in the message queue resource pool is determined according to the target producer type in the message pushing request, so that even if a subscriber needs to replace the message queue, the first terminal can select a proper message queue producer through the message queue resource pool to push the message; after the target message queue producers are determined, the first terminal controls each target message queue producer to push the message to be pushed in the message pushing request to the corresponding message queue, so that the second terminal consumes the message queue corresponding to each target message queue producer to provide the message to the corresponding subscriber.
Based on the setting of the message queue resource pool, the embodiment of the invention ensures that when the subscriber needs to change the message queue, the source code in the first terminal does not need to be modified and compiled, and the message to be pushed can be pushed to the message queue corresponding to the subscriber according to the message pushing request, thereby avoiding the code maintenance cost brought by the change of the message queue and improving the processing efficiency.
Optionally, in order to reduce the load of the first terminal and improve the resource utilization rate in the message queue resource pool, in a feasible manner provided by the embodiment of the present invention, specifically referring to fig. 2, a flow diagram of a second message pushing method provided by the embodiment of the present invention is shown, that is, in this manner, the method further includes:
s140, detecting whether the connection between each message queue producer in the message queue resource pool and the second terminal is abnormal or not at preset time intervals;
s150, deleting the message queue producer with abnormal connection from the message queue resource pool.
That is, the first terminal according to the embodiment of the present invention further periodically monitors whether the connection between each message queue producer and the second terminal is abnormal, so as to delete the message queue producer from the message queue resource pool when the connection between the message queue producer and the second terminal is disconnected or exceeds a preset time length. Wherein the exceptions include connection failures and connection hangs.
Therefore, the embodiment of the invention ensures that the message queue resource pool always maintains an active message queue producer, so that the resource of the first terminal is effectively utilized; in addition, the embodiment of the invention also enables the connection between the message queue producer and the second terminal to be invalid, namely when the connection between the message queue producer and the second terminal is abnormal, the abnormal message queue producer is dynamically deleted, and the condition that the load of the first terminal is continuously increased due to the continuous increase of resources in the message queue resource pool is avoided.
It is understood that the preset time in the embodiment of the present invention may be set according to practical situations, such as 30 seconds in one possible manner.
It can also be understood that the process and manner of detecting each message queue producer by the first terminal can be set according to actual conditions, for example, in a feasible manner provided by the embodiment of the present invention, a timing executor is provided in the first terminal, and the timing executor is configured to perform connection survival detection on all message queue producers in the message queue resource pool one by one after 30 seconds, that is, detect whether the connection between the message queue producer and the second terminal is abnormal, and delete the abnormal message queue producer from the message queue resource pool when the abnormality is detected.
Optionally, to meet the call requirement of the message producer, in a feasible manner provided by the embodiment of the present invention, specifically referring to fig. 3, a flow diagram of a third message pushing method provided by the embodiment of the present invention is shown, that is, in this manner, the first terminal is further provided with different types of producer factories, and the producer factories are used to generate corresponding types of message queue producers;
further, before S110, the method further includes:
and S160, responding to the creation request, and controlling a producer factory of the type corresponding to the creation request to create a message queue producer connected with the second terminal.
That is, in the embodiment of the present invention, to ensure that the first terminal can correspondingly create the message queue producer instance in the message queue resource pool as required, different types of producer factories are set, such as a socket producer factory, a Kafka producer factory, and a rabbitr producer factory, and when the first terminal receives the creation request, the first terminal controls the corresponding producer factory to create the corresponding message queue producer, and the message queue producer is connected to the second terminal; and simultaneously, adding the message queue producer into the message queue resource pool so that the message queue producer is maintained by the message queue resource pool. Therefore, the embodiment of the invention realizes the dynamic connection between the message queue producer and the second terminal, namely the real-time connection between the message queue producer and the message queue.
It can be understood that the creation request and the message push request both include the type of the message queue producer, and the first terminal creates the message queue producer of the corresponding type according to the message queue producer type information in the creation request.
Optionally, in order to enable each message queue producer in the first terminal to safely implement concurrency, in a feasible manner provided by the embodiment of the present invention, the message queue resource pool sets the message queue producer based on the thread security container.
Further, in a preferred mode provided by the embodiment of the present invention, the thread security container is a ConcurrentHashMap.
Corresponding to the message pushing method provided by the embodiment of the present invention, an embodiment of the present invention further provides a message pushing apparatus, referring to fig. 4, which shows a schematic structural diagram of the message pushing apparatus provided by the embodiment of the present invention, the message pushing apparatus 200 provided by the embodiment of the present invention is applied to a first terminal, the first terminal is provided with a message queue resource pool, the message queue resource pool includes a plurality of message queue producers of different types, each of the message queue producers is connected to a second terminal, the apparatus includes:
a push request obtaining module 210, configured to obtain a message push request, where the message push request includes a message to be pushed and a target producer type;
a determining module 220, configured to determine all target message queue producers with types matching the target producer types from the message queue resource pool;
a pushing module 230, configured to control each target message queue producer to push the message to be pushed to a corresponding message queue, so that the second terminal obtains the message to be pushed through the message queue.
Optionally, in a feasible manner provided by the embodiment of the present invention, the apparatus further includes:
the detection module is used for detecting whether the connection between each message queue producer in the message queue resource pool and the second terminal is abnormal or not at preset time intervals;
and the deleting module is used for deleting the message queue producer with abnormal connection from the message queue resource pool.
Optionally, in a feasible manner provided by the embodiment of the present invention, the first terminal is further provided with different types of producer factories, and the producer factories are used to generate corresponding types of message queue producers;
the device further comprises:
and the creation request response module is used for responding to the creation request and controlling a producer factory of the type corresponding to the creation request to create the message queue producer connected with the second terminal.
Optionally, in a feasible manner provided by the embodiment of the present invention, the message queue resource pool sets the message queue producer based on a thread security container.
The message pushing device provided in the embodiment of the present application can implement each process of the message pushing method in the method embodiment corresponding to fig. 1, and can achieve the same technical effect, and is not described here again to avoid repetition.
An embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the message pushing method disclosed in the method embodiment corresponding to fig. 1.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a processor, the computer program executes the message pushing method disclosed in the method embodiment corresponding to fig. 1.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can 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 various embodiments of the present invention. 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 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, each functional module or unit in each embodiment of the present invention 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 invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A message pushing method is applied to a first terminal, the first terminal is provided with a message queue resource pool, the message queue resource pool comprises a plurality of message queue producers of different types, and each message queue producer is connected with a second terminal, and the method comprises the following steps:
acquiring a message pushing request, wherein the message pushing request comprises a message to be pushed and a target producer type;
determining all target message queue producers with types matched with the types of the target producers from the message queue resource pool;
and controlling each target message queue producer to push the message to be pushed to the corresponding message queue so that the second terminal obtains the message to be pushed through the message queue.
2. The message pushing method according to claim 1, wherein the method further comprises:
detecting whether the connection between each message queue producer in the message queue resource pool and the second terminal is abnormal or not at preset time intervals;
and deleting the message queue producer with abnormal connection from the message queue resource pool.
3. The message pushing method according to claim 1, wherein the first terminal is further provided with different types of producer factories for generating corresponding types of message queue producers;
before the obtaining of the message push request, the method further includes:
and responding to a creation request, and controlling a producer factory of a type corresponding to the creation request to create a message queue producer connected with the second terminal.
4. The message pushing method of claim 1, wherein the message queue resource pool sets the message queue producer based on a thread-safe container.
5. A message pushing apparatus, applied to a first terminal, wherein the first terminal is provided with a message queue resource pool, the message queue resource pool includes a plurality of message queue producers of different types, each of the message queue producers is connected to a second terminal, and the apparatus includes:
the system comprises a push request acquisition module, a push request acquisition module and a message push request processing module, wherein the message push request acquisition module is used for acquiring a message push request, and the message push request comprises a message to be pushed and a target producer type;
the determining module is used for determining all target message queue producers with the types matched with the types of the target producers from the message queue resource pool;
and the pushing module is used for controlling each target message queue producer to push the message to be pushed to the corresponding message queue so that the second terminal can obtain the message to be pushed through the message queue.
6. The message pushing apparatus according to claim 5, wherein the apparatus further comprises:
the detection module is used for detecting whether the connection between each message queue producer in the message queue resource pool and the second terminal is abnormal or not at preset time intervals;
and the deleting module is used for deleting the message queue producer with abnormal connection from the message queue resource pool.
7. The message pushing apparatus according to claim 5, wherein the first terminal is further provided with different types of producer factories, the producer factories being configured to generate corresponding types of message queue producers;
the device further comprises:
and the creation request response module is used for responding to the creation request and controlling a producer factory of the type corresponding to the creation request to create the message queue producer connected with the second terminal.
8. The message push apparatus of claim 5, wherein the message queue resource pool sets the message queue producer based on a thread-safe container.
9. A computer arrangement comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the message push method according to any of claims 1-4.
10. A computer-readable storage medium, having stored thereon a computer program which, when run on a processor, performs the message push method according to any of claims 1-4.
CN202210569820.7A 2022-05-24 2022-05-24 Message pushing method and device, computer equipment and computer readable storage medium Withdrawn CN114979257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210569820.7A CN114979257A (en) 2022-05-24 2022-05-24 Message pushing method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210569820.7A CN114979257A (en) 2022-05-24 2022-05-24 Message pushing method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114979257A true CN114979257A (en) 2022-08-30

Family

ID=82955575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210569820.7A Withdrawn CN114979257A (en) 2022-05-24 2022-05-24 Message pushing method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114979257A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610926A (en) * 2015-12-22 2016-05-25 广州唯品会信息科技有限公司 Message transmitting method and system and message middleware system
CN111459689A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Message processing system and method based on distributed queue
CN112084042A (en) * 2019-06-13 2020-12-15 北京京东振世信息技术有限公司 Message processing method and device
CN114064328A (en) * 2021-12-06 2022-02-18 北京奇艺世纪科技有限公司 Message queue cluster migration method and device
CN114513504A (en) * 2022-04-06 2022-05-17 广联达科技股份有限公司 Message queue multi-cloud adaptation method, device and equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610926A (en) * 2015-12-22 2016-05-25 广州唯品会信息科技有限公司 Message transmitting method and system and message middleware system
CN112084042A (en) * 2019-06-13 2020-12-15 北京京东振世信息技术有限公司 Message processing method and device
CN111459689A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Message processing system and method based on distributed queue
CN114064328A (en) * 2021-12-06 2022-02-18 北京奇艺世纪科技有限公司 Message queue cluster migration method and device
CN114513504A (en) * 2022-04-06 2022-05-17 广联达科技股份有限公司 Message queue multi-cloud adaptation method, device and equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110213371B (en) Message consumption method, device, equipment and computer storage medium
US20210036907A1 (en) Methods and apparatuses for pushing a message
CN109246220B (en) Message pushing system and method
CN110688280B (en) Management system, method, equipment and storage medium for alarm event
US10075409B2 (en) Terminal and application synchronization method therefor
CN105874773B (en) Task processing device, intelligent equipment, task processing method and baseband processor
CN110908872B (en) Method and system for detecting server state
CN104967537A (en) Alarm information pushing method and device
CN109982355B (en) Method for saving and restoring network path, apparatus, terminal and storage medium thereof
CN116055524A (en) Interaction method, processor and device for Internet platform and Internet of things equipment
CN111541762B (en) Data processing method, management server, device and storage medium
CN112422684A (en) Target message processing method and device, storage medium and electronic device
CN105281940B (en) Method, equipment and system for HELLO message interaction based on NETCONF protocol
CN114979257A (en) Message pushing method and device, computer equipment and computer readable storage medium
CN103607324B (en) Data processing method for Java message service, Java message client and server
CN111104289A (en) System and method for checking efficiency of GPU (graphics processing Unit) cluster
CN108255515B (en) Method and device for realizing timer service
CN110572315A (en) Information interaction method and device, robot and storage medium
US11425632B2 (en) Mechanism to provide updates to NB-IoT devices
CN110493070A (en) Suspension notification method and its application system
CN111586841B (en) Terminal paging optimization method, system, device and readable storage medium
CN110971669B (en) Message notification method, device, server, electronic equipment and readable storage medium
CN109445942B (en) Heartbeat message processing method and device
CN116582618B (en) Method and device for realizing high availability of electric pin, machine room management platform and computer
CN114257630B (en) Classroom real-time interaction method, system, terminal equipment and readable 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220830