CN114338794A - Service message pushing method and device, electronic equipment and storage medium - Google Patents

Service message pushing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114338794A
CN114338794A CN202111666470.8A CN202111666470A CN114338794A CN 114338794 A CN114338794 A CN 114338794A CN 202111666470 A CN202111666470 A CN 202111666470A CN 114338794 A CN114338794 A CN 114338794A
Authority
CN
China
Prior art keywords
target
container
message
service message
pushing
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.)
Granted
Application number
CN202111666470.8A
Other languages
Chinese (zh)
Other versions
CN114338794B (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111666470.8A priority Critical patent/CN114338794B/en
Publication of CN114338794A publication Critical patent/CN114338794A/en
Application granted granted Critical
Publication of CN114338794B publication Critical patent/CN114338794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a service message pushing method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a message pushing request of sending equipment, wherein the message pushing request carries a target service message to be processed and target demand information corresponding to the target service message; inquiring target receiving equipment meeting the target demand information; detecting the establishment result of a target long connection link between the target receiving equipment and the current container; and determining a target container for pushing the target service message according to the establishment result, and pushing the target service message to the target receiving equipment through the target container. According to the method, the target receiving equipment meeting the target requirement information is inquired, message isolation can be achieved, meanwhile, the target container used for pushing the target service message is determined based on the establishment result of the target long connection link between the receiving equipment and the container, and accurate delivery of the message is guaranteed.

Description

Service message pushing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for pushing a service message, an electronic device, and a storage medium.
Background
Cloud computing is a revolution of information technology following the internet and computers. Compared with the traditional network application, the cloud computing has the characteristics of resource virtualization, dynamic expandability, high cost performance and the like, so that the cloud platform becomes the first choice for government, enterprises and other organizations to construct office platforms, and a new development trend of 'office on the cloud'. Along with this, various types of clouds, such as public clouds including the ari cloud and the Tencent cloud, government affair clouds established by all levels of governments, and private clouds established by enterprises, are rapidly established.
Although different use scenes and different network security isolation levels exist, various types of cloud platforms have complex multi-department and multi-tenant systems, and similar to messages such as department notifications and company news, the messages need to be accurately delivered to user browsing pages in real time according to the department affiliations of users. The current existing technology does not realize message isolation based on a user department architecture or ensure the real-time performance and reliability of the message.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the present application provides a service message pushing method, device, electronic device and storage medium.
According to an aspect of the embodiments of the present application, there is provided a method for pushing a service message, which is applied to a container deployed in a target cluster, the method including:
acquiring a message pushing request of sending equipment, wherein the message pushing request carries a target service message to be processed and target demand information corresponding to the target service message;
inquiring target receiving equipment meeting the target demand information;
detecting the establishment result of a target long connection link between the target receiving equipment and the current container;
and determining a target container for pushing the target service message according to the establishment result, and pushing the target service message to the target receiving equipment through the target container.
Further, the querying a target receiving device that satisfies the target demand information includes:
acquiring a target identifier corresponding to the sending equipment;
acquiring authority information corresponding to the requester from an authority tree according to the target identifier;
determining a receiving device set corresponding to the target identification based on the authority information;
selecting a target receiving device satisfying the target demand information from the set of receiving devices.
Further, the detecting a result of establishing the target long connection link between the target receiving device and the current container includes:
querying a long connection link set corresponding to the current container from a database, wherein the long connection link set comprises: at least one long connection link for connecting the current container with external equipment of a target cluster;
and acquiring the establishment result of the target long connection link between the target receiving equipment and the current container from the long connection link set.
Further, the determining, according to the establishment result, a target container for pushing the target service message, and pushing the target service message to the target receiving device through the target container includes:
when the establishment result is used for indicating that a target long connection link between the target receiving device and a current container exists in the long connection link set, determining the current container as a target container, and pushing the target service message to the target receiving device through the target long connection link.
Further, the determining, according to the establishment result, a target container for pushing the target service message, and pushing the target service message to the target receiving device through the target container includes:
when the establishment result is used for indicating that a target long connection link between the target receiving equipment and a current container does not exist in the long connection link set, acquiring a switch bound with the current container;
storing the target service message to a message queue in the switch, so that a target container deployed in the target cluster monitors the target service message from the message queue, and pushes the target service message to the target receiving device.
Further, before acquiring the switch bound to the current container, the method further includes:
under the condition of monitoring the starting of the current container, establishing a message queue corresponding to the current container;
establishing a corresponding relation between the current container and the message queue;
and storing the corresponding relation and the message queue to the switch.
Further, the method further comprises:
monitoring the message queue;
when determining that the pending service messages sent by other containers in the target cluster exist in the message queue, inquiring and extracting the pending service messages from the message queue;
inquiring receiving equipment corresponding to the service message to be processed;
and calling a long connection communication link between the current container and the receiving equipment to send the service message to be processed.
According to another aspect of the embodiments of the present application, there is also provided a service message pushing apparatus, including:
the system comprises an acquisition module, a sending module and a processing module, wherein the acquisition module is used for acquiring a message pushing request of sending equipment, and the message pushing request carries a target service message to be processed and target demand information corresponding to the target service message;
the query module is used for querying target receiving equipment meeting the target demand information;
the detection module is used for detecting the establishment result of the long connection link between the target receiving equipment and the current container;
and the processing module is used for determining a target container for pushing the target service message according to the establishment result and pushing the target service message to the target receiving equipment through the target container.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that executes the above steps when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the steps of the method by running the program stored in the memory.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method, the target receiving equipment meeting the target requirement information is inquired, message isolation can be achieved, meanwhile, the target container used for pushing the target service message is determined based on the establishment result of the target long connection link between the receiving equipment and the container, and accurate delivery of the message is guaranteed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a method for pushing a service message according to an embodiment of the present application;
fig. 2 is a flowchart of a method for pushing a service message according to another embodiment of the present application;
fig. 3 is a flowchart of a method for pushing a service message according to another embodiment of the present application;
fig. 4 is a block diagram of a service message pushing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present 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 is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another similar 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.
The embodiment of the application provides a service message pushing method and device, electronic equipment and a storage medium. The method provided by the embodiment of the invention can be applied to any required electronic equipment, for example, the electronic equipment can be electronic equipment such as a server and a terminal, and the method is not particularly limited herein, and is hereinafter simply referred to as electronic equipment for convenience in description.
According to an aspect of embodiments of the present application, a method embodiment of a method for pushing a service message is provided. Fig. 1 is a flowchart of a method for pushing a service message according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step S11, obtaining a message pushing request of the sending device, where the message pushing request carries a target service message to be processed and target requirement information corresponding to the target service message.
The method provided by the embodiment of the application is applied to a container deployed in a target cluster, when an administrator needs to push a message to a user in a department, a target service message to be pushed and target demand information corresponding to the target service message are carried in a message pushing request, and then the message pushing request is sent to the container in the target cluster through sending equipment.
It should be noted that the target requirement information may include: the information level of the target service information, or the reference authority corresponding to the target service information, and the like.
Step S12, querying the target receiving device that satisfies the target demand information.
In the embodiment of the present application, the step S12 of querying the target receiving device that satisfies the target requirement information includes the following steps a1-a 4:
step a1, obtain the target identifier corresponding to the sending device.
And A2, acquiring the authority information corresponding to the requester from the authority tree according to the target identifier.
Step A3, determining the set of receiving devices corresponding to the target identification based on the authority information.
Step a4, selecting a target receiving device from the set of receiving devices that satisfies the target demand information.
In this embodiment of the application, after receiving a message push request transmitted by a sending device, a container may obtain a target identifier corresponding to the sending device, where the target identifier may be a device code of the sending device, or a code of a department to which the sending device belongs. Then, inquiring authority information corresponding to the target identifier based on an authority tree stored in the container, wherein the authority information is as follows: and the receiving device set corresponds to the target identifier, and the receiving device set comprises at least one receiving device identifier.
It should be noted that the authority tree includes a plurality of identifiers and authority information corresponding to each identifier, where the authority information may be a receiving device set corresponding to each identifier, and the receiving device set includes at least one device identifier, which may be understood as: the device identifiers stored in the receiving device set are device identifiers of devices capable of message pushing by the current sending device. For example: the authority tree comprises: and an identifier A, wherein the identifier A corresponds to a receiving device set and comprises: device identifications V1, V2, V3, and the like. And the identifier B corresponds to the receiving equipment set and comprises the following steps: device identifications V2, V4, V5, and the like. And the identifier C, the identifier B corresponding to the receiving device set comprises: device identifications V7, V8, V9, and the like.
In the embodiment of the application, after the receiving device set corresponding to the target identifier is determined, the target receiving device identifier meeting the target requirement information is selected from the receiving device set, and the receiving device corresponding to the receiving device identifier is determined as the target receiving device.
As an example, the target requirement information corresponding to the target service message may be a receiving right of the target service message, where the receiving right includes a preset device level, then a level corresponding to each receiving device identifier in the receiving device set is queried, then a receiving device identifier whose level meets the preset device level is determined as a target receiving device identifier, and a device corresponding to the target receiving device identifier is determined as a target receiving device.
Step S13, detecting the establishment result of the target long connection link between the target receiving device and the current container.
In the embodiment of the present application, the step S13 of detecting the establishment result of the target long connection link between the target receiving device and the current container includes the following steps B1-B2:
step B1, querying a long connection link set corresponding to the current container from the database, wherein the long connection link set comprises: at least one long connection link connecting the current container with an external device of the target cluster.
And step B2, obtaining the establishment result of the target long connecting link between the target receiving device and the current container from the long connecting link set.
In this embodiment of the present application, after the container determines the target receiving device, a long connection link set currently corresponding to the container is queried from a database, where the long connection link set includes: at least one long connection link connecting the current container with an external device of the target cluster. It is understood that the long connection link is a communication link for connecting the container with an external device, and the long connection link is a communication link constructed by the container and the receiving device using the websocket protocol.
After the long connection link set corresponding to the container is inquired, whether a target long connection link between the container and the target receiving equipment exists or not is inquired from the long connection link set, and finally an establishment result is obtained. The establishment result may be that the target long connection link between the container and the target receiving device does not exist in the set of long connection links. Alternatively, there is a target long connection link between the container and the target receiving device in the set of long connection links.
And step S14, determining a target container for pushing the target service message according to the establishment result, and pushing the target service message to the target receiving device through the target container.
In this embodiment of the present application, step S14, determining a target container for pushing the target service message according to the establishment result, and pushing the target service message to the target receiving device through the target container includes:
and when the establishment result is used for indicating that a target long connection link between the target receiving equipment and the current container exists in the long connection link set, determining the current container as the target container, and pushing the target service message to the target receiving equipment through the target long connection link.
In this embodiment of the present application, when a target long connection link exists between a target receiving device and a current container in a long connection link set, it is determined that a connection relationship has been established between the current container and the target container, so that the current container may be directly determined as the target container, and then a target service message is pushed to the target receiving device through the target long connection link.
In the embodiment of the present application, the step S14, determining a target container for pushing the target service message according to the establishment result, and pushing the target service message to the target receiving device through the target container, includes the following steps C1-C2:
and step C1, when the establishment result is used to indicate that the target long connection link between the target receiving device and the current container does not exist in the long connection link set, acquiring the switch bound with the current container.
Step C2, storing the target service message into a message queue in the switch, so that the target container deployed in the target cluster listens for the target service message from the message queue, and pushes the target service message to the target receiving device.
In this embodiment of the application, when a target long connection link between a target receiving device and a current container does not exist in a long connection link set, the current container stores a target service message to a switch bound to the container, stores the target service message to a message queue in the switch, and since the switch is bound to a plurality of containers, other containers bound to the switch monitor the target service message from the message queue and analyze the target service message, and when a long connection link of a receiving device associated with the target service message exists in other containers, the container is determined to be the target container, and the target service message is pushed to the target receiving device through the target container.
According to the method, the target receiving equipment meeting the target requirement information is inquired, message isolation can be achieved, meanwhile, the target container used for pushing the target service message is determined based on the establishment result of the target long connection link between the receiving equipment and the container, and accurate delivery of the message is guaranteed. Fig. 2 is a flowchart of a method for pushing a service message according to another embodiment of the present application, where as shown in fig. 2, before acquiring a switch bound to a current container, the method further includes:
step S21, in case of monitoring the start of the current container, creating a message queue corresponding to the current container.
Step S22, establishing a corresponding relationship between the current container and the message queue.
Step S23, store the corresponding relationship and the message queue to the switch.
According to the scenario of the embodiment of the application, the backend service is deployed based on k8s, a service cluster is formed by a plurality of containers, each container in the cluster can provide the same function and provide high-availability service, and when a request is sent to the backend service, load balancing among the containers is automatically completed by k8 s. Therefore, in the embodiment of the application, when each container is started, the container is automatically connected with the RabbitMq service, a message queue is created and maintained, the container is bound to the direct type switch based on the binding key, and then messages which are sent to the switch and route the binding key are all routed to the queue maintained by the current container; at the same time, the message queue is monitored, and messages routed to the queue are further processed by the current container.
In the embodiment of the application, when a user logs in the system, the web end sends a request to the backend service, a long link is established with any container of the backend service, and the backend service stores information (such as user session and container routing information) of the current long link in the database. When the user logs out of the system, the web end sends a logoff request, the back-end service closes the long link, and the connection information is removed from the database.
The background service is simultaneously provided with a timing task, the information (container routing information and the current registration time) of the current container is regularly registered in the database cluster, the registration information of other nodes is detected, when a certain container node is found to be not updated in a specified time interval (such as 2 times of a task period), the system considers that the container is offline, and deletes the container registration information and the stored long connection information on the container from the database.
Fig. 3 is a flowchart of a method for pushing a service message according to another embodiment of the present application, where as shown in fig. 3, the method further includes:
step S31, listen to the message queue.
And step S32, when determining that the pending service messages sent by other containers in the target cluster exist in the message queue, inquiring and extracting the pending service messages from the message queue.
And step S33, inquiring the receiving equipment corresponding to the service message to be processed.
Step S34, call the long connection communication link between the current container and the receiving device to send the pending service message.
Fig. 4 is a block diagram of a service message pushing apparatus provided in an embodiment of the present application, which may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 4, the apparatus includes:
an obtaining module 41, configured to obtain a message pushing request of a sending device, where the message pushing request carries a target service message to be processed and target requirement information corresponding to the target service message;
a query module 42 for querying a target receiving device that satisfies the target demand information;
a detection module 43, configured to detect an establishment result of a long connection link between the target receiving device and the current container;
and the processing module 44 is configured to determine a target container for pushing the target service message according to the establishment result, and push the target service message to the target receiving device through the target container.
In this embodiment of the present application, the query module 42 is configured to obtain a target identifier corresponding to a sending device. And acquiring the authority information corresponding to the requester from the authority tree according to the target identifier. And determining a receiving device set corresponding to the target identification based on the authority information. And selecting a target receiving device which meets the target requirement information from the receiving device set.
In this embodiment of the present application, the detecting module 43 is configured to query, from the database, a long connection link set corresponding to the current container, where the long connection link set includes: at least one long connection link for connecting the current container with external equipment of the target cluster; and obtaining the establishment result of the target long connection link between the target receiving equipment and the current container from the long connection link set.
In this embodiment of the application, the processing module 44 is configured to, when the establishment result is used to indicate that a target long connection link between the target receiving device and the current container exists in the long connection link set, determine the current container as the target container, and push the target service message to the target receiving device through the target long connection link.
In this embodiment of the present application, the processing module 44 is configured to, when the establishment result is used to indicate that a target long connection link between the target receiving device and the current container does not exist in the long connection link set, acquire a switch bound to the current container; and storing the target service message into a message queue in the switch, so that a target container deployed in the target cluster monitors the target service message from the message queue, and pushes the target service message to the target receiving equipment.
In this embodiment of the present application, the apparatus for pushing a service message further includes: the monitoring module is used for establishing a message queue corresponding to the current container under the condition of monitoring the starting of the current container; establishing a corresponding relation between a current container and a message queue; and storing the corresponding relation and the message queue to the switch.
In this embodiment of the present application, the apparatus for pushing a service message further includes: the sending module is used for monitoring the message queue; when determining that the pending service messages sent by other containers in the target cluster exist in the message queue, inquiring and extracting the pending service messages from the message queue; inquiring receiving equipment corresponding to the service message to be processed; and calling a long connection communication link between the current container and the receiving equipment to send the pending service message.
An embodiment of the present application further provides an electronic device, as shown in fig. 5, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above embodiments when executing the computer program stored in the memory 1503.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided herein, there is also provided a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the XXXX method as described in any of the above embodiments.
In yet another embodiment provided herein, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the XXXX method as described in any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk), among others.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for pushing service messages, which is applied to a container deployed in a target cluster, and comprises the following steps:
acquiring a message pushing request of sending equipment, wherein the message pushing request carries a target service message to be processed and target demand information corresponding to the target service message;
inquiring target receiving equipment meeting the target demand information;
detecting the establishment result of a target long connection link between the target receiving equipment and the current container;
and determining a target container for pushing the target service message according to the establishment result, and pushing the target service message to the target receiving equipment through the target container.
2. The method of claim 1, wherein querying the target receiving device that satisfies the target demand information comprises:
acquiring a target identifier corresponding to the sending equipment;
acquiring authority information corresponding to the requester from an authority tree according to the target identifier;
determining a receiving device set corresponding to the target identification based on the authority information;
selecting a target receiving device satisfying the target demand information from the set of receiving devices.
3. The method of claim 1, wherein the detecting the establishment result of the target long connection link between the target receiving device and the current container comprises:
querying a long connection link set corresponding to the current container from a database, wherein the long connection link set comprises: at least one long connection link for connecting the current container with external equipment of a target cluster;
and acquiring the establishment result of the target long connection link between the target receiving equipment and the current container from the long connection link set.
4. The method of claim 3, wherein the determining, according to the establishment result, a target container for pushing the target service message, and pushing the target service message to the target receiving device through the target container, comprises:
when the establishment result is used for indicating that a target long connection link between the target receiving device and a current container exists in the long connection link set, determining the current container as a target container, and pushing the target service message to the target receiving device through the target long connection link.
5. The method of claim 3, wherein the determining, according to the establishment result, a target container for pushing the target service message, and pushing the target service message to the target receiving device through the target container, comprises:
when the establishment result is used for indicating that a target long connection link between the target receiving equipment and a current container does not exist in the long connection link set, acquiring a switch bound with the current container;
storing the target service message to a message queue in the switch, so that a target container deployed in the target cluster monitors the target service message from the message queue, and pushes the target service message to the target receiving device.
6. The method of claim 5, wherein prior to obtaining the switch bound to the current container, the method further comprises:
under the condition of monitoring the starting of the current container, establishing a message queue corresponding to the current container;
establishing a corresponding relation between the current container and the message queue;
and storing the corresponding relation and the message queue to the switch.
7. The method of claim 6, further comprising:
monitoring the message queue;
when determining that the pending service messages sent by other containers in the target cluster exist in the message queue, inquiring and extracting the pending service messages from the message queue;
inquiring receiving equipment corresponding to the service message to be processed;
and calling a long connection communication link between the current container and the receiving equipment to send the service message to be processed.
8. A push device for service messages, comprising:
the system comprises an acquisition module, a sending module and a processing module, wherein the acquisition module is used for acquiring a message pushing request of sending equipment, and the message pushing request carries a target service message to be processed and target demand information corresponding to the target service message;
the query module is used for querying target receiving equipment meeting the target demand information;
the detection module is used for detecting the establishment result of the long connection link between the target receiving equipment and the current container;
and the processing module is used for determining a target container for pushing the target service message according to the establishment result and pushing the target service message to the target receiving equipment through the target container.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of any of the preceding claims 1 to 7.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any of claims 1-7 by executing a program stored on a memory.
CN202111666470.8A 2021-12-31 2021-12-31 Service message pushing method and device, electronic equipment and storage medium Active CN114338794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111666470.8A CN114338794B (en) 2021-12-31 2021-12-31 Service message pushing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111666470.8A CN114338794B (en) 2021-12-31 2021-12-31 Service message pushing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114338794A true CN114338794A (en) 2022-04-12
CN114338794B CN114338794B (en) 2023-08-18

Family

ID=81021251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111666470.8A Active CN114338794B (en) 2021-12-31 2021-12-31 Service message pushing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114338794B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174296A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Equipment function access method, device, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200177684A1 (en) * 2018-12-03 2020-06-04 International Business Machines Corporation Flexible message transformation and delivery
CN111866191A (en) * 2020-09-24 2020-10-30 深圳市易博天下科技有限公司 Message event distribution method, distribution platform, system and server
CN112765520A (en) * 2021-01-20 2021-05-07 三六零视觉(北京)科技有限公司 Message pushing method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200177684A1 (en) * 2018-12-03 2020-06-04 International Business Machines Corporation Flexible message transformation and delivery
CN111866191A (en) * 2020-09-24 2020-10-30 深圳市易博天下科技有限公司 Message event distribution method, distribution platform, system and server
CN112765520A (en) * 2021-01-20 2021-05-07 三六零视觉(北京)科技有限公司 Message pushing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174296A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Equipment function access method, device, storage medium and electronic device
CN115174296B (en) * 2022-05-30 2024-03-22 青岛海尔科技有限公司 Equipment function access method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN114338794B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
CN111327647B (en) Method and device for providing service to outside by container and electronic equipment
CN107147748B (en) File uploading method and device
CN108011994B (en) Method and system for querying DNS (Domain name System) record
CN115004673B (en) Message pushing method, device, electronic equipment and computer readable medium
CN109246078B (en) Data interaction method and server
CN111182089A (en) Container cluster system, method and device for accessing big data assembly and server
CN111581502A (en) Information notification method and device
CN110543512A (en) Information synchronization method, device and system
CN114328029B (en) Backup method and device of application resources, electronic equipment and storage medium
CN110519810B (en) Service relay switching method, terminal equipment, storage medium and device
CN112118151A (en) Network speed measuring method, device, system, electronic equipment and storage medium
CN114338794B (en) Service message pushing method and device, electronic equipment and storage medium
CN109446445B (en) Resource acquisition method and device
CN104426816A (en) Virtual machine communication method and device
US11599673B2 (en) Ascertaining network devices used with anonymous identifiers
CN111355765A (en) Network request processing and sending method and device
WO2016037489A1 (en) Method, device and system for monitoring rcs spam messages
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN113067803A (en) Resource isolation system, request processing method and request processing device
CN115297447B (en) Long short message merging method, system, equipment and storage medium
CN112995266A (en) Information pushing method and related equipment
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
CN113114510B (en) Network fault information synchronization method and device
CN105163335B (en) A kind of network access management method, server, mobile terminal and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant