CN114338794B - 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
CN114338794B
CN114338794B CN202111666470.8A CN202111666470A CN114338794B CN 114338794 B CN114338794 B CN 114338794B CN 202111666470 A CN202111666470 A CN 202111666470A CN 114338794 B CN114338794 B CN 114338794B
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.)
Active
Application number
CN202111666470.8A
Other languages
Chinese (zh)
Other versions
CN114338794A (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

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a pushing method and device of service messages, electronic equipment and a storage medium. The method comprises the following steps: acquiring a message pushing request of a sending device, 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 an 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 provided by the application, the message isolation can be realized by inquiring the target receiving equipment meeting the target demand information, and meanwhile, the target container 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, so that the message can be accurately delivered.

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 apparatus for pushing a service message, an electronic device, and a storage medium.
Background
Cloud computing is an information technology revolution behind 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 institutions to construct an office platform, and the cloud office has a new development trend. With this, various types of clouds are quickly built, such as public clouds including an ali cloud and a messenger cloud, government clouds built by various levels of governments, and private clouds built by enterprises.
Although the usage scenes and the network security isolation levels are different, various types of cloud platforms have more complex multi-department and multi-tenant systems, and messages similar to department notification, company news and the like are required to be accurately and real-time delivered to a user browsing page according to the department affiliation of the user. The current prior art does not realize message isolation based on user department architecture or ensure the real-time performance and reliability of the message.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides a pushing method, a pushing device, electronic equipment and a storage medium of a service message.
According to an aspect of an embodiment of the present application, there is provided a pushing method of a service message, applied to a container deployed in a target cluster, the method including:
acquiring a message pushing request of a sending device, 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 an 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 target receiving device for querying to meet the target requirement 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 identifier based on the authority information;
and selecting target receiving equipment meeting the target demand information from the receiving equipment set.
Further, the detecting a result of establishing a 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 of the current container with an external device of the 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, pushing, by the target container, the target service message to the target receiving device, includes:
and 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, pushing, by the target container, the target service message to the target receiving device, includes:
acquiring a switch bound with a current container when the establishment result is used for indicating that a target long connection link between the target receiving device and the current container does not exist in the long connection link set;
storing the target service message to a message queue in the switch, so that a target container deployed in the target cluster listens to 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, creating 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;
inquiring and extracting the service message to be processed from the message queue when determining that the service message to be processed from other containers in the target cluster exists in 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 embodiment of the present application, there is also provided a pushing device for a service message, including:
the information pushing device comprises an acquisition module, a sending module and a receiving module, wherein the acquisition module is used for acquiring a message pushing request of a sending device, wherein 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 performs the above steps when running.
According to another aspect of the embodiment of the present application, there is also provided an electronic device 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; and a processor for executing the steps of the method by running a program stored on the memory.
Embodiments of the present application also provide a computer program product comprising 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 provided by the application, the message isolation can be realized by inquiring the target receiving equipment meeting the target demand information, and meanwhile, the target container 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, so that the message can be accurately delivered.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a method for pushing service messages 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 pushing device for service messages 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
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments, illustrative embodiments of the present application and descriptions thereof are used to explain the present application and do not constitute undue limitations of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a pushing method and device of service messages, electronic equipment and a storage medium. The method provided by the embodiment of the application can be applied to any needed electronic equipment, for example, the electronic equipment can be a server, a terminal and the like, is not particularly limited, and is convenient to describe and is called as the electronic equipment for short hereinafter.
According to an aspect of the embodiment of the application, a method embodiment of a pushing method of 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, as shown in fig. 1, where the method includes:
step S11, a message pushing request of a sending device is obtained, wherein the message pushing request carries a target service message to be processed and target demand information corresponding to the target service message.
The method provided by the embodiment of the application is applied to the container deployed in the target cluster, when an administrator needs to push the message to the user in the department, the target service message to be pushed and the target demand information corresponding to the target service message are carried in the message pushing request, and then the message pushing request is sent to the container in the target cluster through the sending equipment.
The target requirement information may include: the information level of the target service information, or the reference authority corresponding to the target service information, etc.
Step S12, querying a target receiving device that satisfies the target demand information.
In the embodiment of the present application, step S12, querying the target receiving device that satisfies the target requirement information, includes the following steps A1-A4:
and A1, acquiring a target identifier corresponding to the sending equipment.
And step A2, acquiring the authority information corresponding to the requester from the authority tree according to the target identifier.
And step A3, determining a receiving device set corresponding to the target identifier based on the authority information.
And step A4, selecting target receiving equipment meeting the target demand information from the receiving equipment set.
In the embodiment of the application, after receiving the message pushing request transmitted by the sending device, the container acquires the target identifier corresponding to the sending device, wherein the target identifier can be a device code of the sending device, or a code of a department to which the sending device belongs, and the like. Then inquiring authority information corresponding to the target identifier based on the authority tree stored in the container, wherein the authority information is as follows: and the receiving equipment set corresponding to the target identifier comprises at least one receiving equipment identifier.
It should be noted that, the permission tree includes a plurality of identifiers and permission information corresponding to each identifier, where the permission 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 identification stored in the receiving device set is the device identification of the device that the current sending device is capable of message pushing. For example: the authority tree includes: the identifier a includes: device identifications V1, V2, V3, etc. The identifier B corresponds to the receiving device set and comprises the following steps: device identifications V2, V4, V5, etc. The identifier C, where the identifier C corresponds to the receiving device set, includes: device identifications V7, V8, V9, etc.
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 demand information corresponding to the target service message may be a receiving authority of the target service message, where the receiving authority includes a preset device level, then the level corresponding to each receiving device identifier in the receiving device set is queried, then the receiving device identifier whose level satisfies 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, step S13, detecting the result of establishing the target long connection link between the target receiving device and the current container, includes the following steps B1-B2:
step B1, inquiring 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 of the current container with an external device of the target cluster.
And step B2, 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 the embodiment of the present application, after the container determines the target receiving device, a long connection link set corresponding to the container currently is queried from a database, where the long connection link set includes: at least one long connection link of the current container with an external device of the target cluster. It will be appreciated 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.
And after the long connection link set corresponding to the container is inquired, inquiring whether a target long connection link between the container and target receiving equipment exists in the long connection link set, and finally obtaining an establishment result. The result of the establishment may be that there is no target long connection link between the container and the target receiving device 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 long connection link set.
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 equipment through the target container.
In the embodiment of the present application, step S14 determines, according to the establishment result, a target container for pushing a target service message, and pushes the target service message to a target receiving device through the target container, where the step includes:
and when the establishment result is used for indicating that a target long connection link between the target receiving device 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 device through the target long connection link.
In the embodiment of the application, when the target long connection link between the target receiving device and the current container exists in the long connection link set, the connection relation between the current container and the target container is determined, so that the current container can be directly determined as the target container, and then the target service message is pushed to the target receiving device through the target long connection link.
In the embodiment of the present application, step S14, determining a target container for pushing a target service message according to the establishment result, pushing the target service message to a target receiving device through the target container, includes the following steps C1-C2:
and step C1, acquiring the exchanger bound with the current container when the established result is used for indicating that the target long connection link between the target receiving equipment and the current container does not exist in the long connection link set.
And step C2, 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 pushing the target service message to target receiving equipment.
In the embodiment of the application, when a target long connection link between target receiving equipment and a current container does not exist in a long connection link set, the current container stores target service information to a switch bound with the container, and stores the target service information to a message queue in the switch.
According to the method provided by the application, the message isolation can be realized by inquiring the target receiving equipment meeting the target demand information, and meanwhile, the target container 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, so that the message can be accurately delivered.
Fig. 2 is a flowchart of a service message pushing method according to another embodiment of the present application, where, as shown in fig. 2, before obtaining a switch bound to a current container, the method further includes:
step S21, under the condition of monitoring the starting of the current container, a message queue corresponding to the current container is created.
Step S22, establishing a corresponding relation between the current container and the message queue.
Step S23, storing the corresponding relation and the message queue in the switch.
The scenario of the embodiment of the application deploys the back-end service 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 back-end service, load balancing among the containers is automatically completed by k8 s. Therefore, when each container is started, the container is automatically connected with the RabbitMq service, a message queue is created and maintained, the message is bound to a direct type switch based on a binding key, and then the message which is sent to the switch and is routed to the current container is 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, a web end sends a request to a back-end service, a long link is established with any container of the back-end service, and the back-end service stores the information (such as user session and container routing information) of the current long link into a database. When the user logs out of the system, the web end sends a request for offline, the backend service closes the long link, and the connection information is removed from the database.
The background service has system timing tasks at the same time, registers the information of the current container (container routing information and the current registration time) to the database cluster at regular intervals, detects the registration information of other nodes, and when a certain container node is found to be in a specified time interval (such as 2 times of task period), the registration information is not updated, the system considers that the container is offline, deletes the container registration information from the database, and stores long-link information on the container.
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, monitor the message queue.
And step S32, inquiring and extracting the service message to be processed from the message queue when determining that the service message to be processed from other containers in the target cluster exists in the message queue.
Step S33, inquiring the receiving equipment corresponding to the service message to be processed.
And step S34, calling a long connection communication link between the current container and the receiving device to send the service message to be processed.
Fig. 4 is a block diagram of a service message pushing device according to an embodiment of the present application, where the device may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 4, the apparatus includes:
the obtaining module 41 is configured to obtain a message push request of the sending device, where the message push request carries a target service message to be processed and target requirement information corresponding to the target service message;
a query module 42, configured to query a target receiving device that satisfies target demand information;
a detection module 43, configured to detect a result of establishment 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 the embodiment of the present application, the query module 42 is configured to obtain the target identifier corresponding to the 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 identifier based on the authority information. And selecting a target receiving device meeting the target demand information from the receiving device set.
In the embodiment of the present application, the detection module 43 is configured to query, from a database, a long connection link set corresponding to a current container, where the long connection link set includes: at least one long connection link for connecting the current container with an external device 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 the embodiment of the present application, the processing module 44 is configured to determine, 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, 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 the embodiment of the present application, the processing module 44 is configured to obtain the switch bound to the current container 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; storing the target service message to a message queue in the switch, so that a 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 the embodiment of the present application, the pushing device for service message further includes: the monitoring module is used for creating a message queue corresponding to the current container under the condition of monitoring the starting of 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.
In the embodiment of the present application, the pushing device for service message further includes: the sending module is used for monitoring the message queue; inquiring and extracting the service message to be processed from the message queue when the service message to be processed sent from other containers in the target cluster exists in 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 device to send the service message to be processed.
The embodiment of the application also provides an electronic device, as shown in fig. 5, the electronic device may include: the device 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 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501, when executing the computer program stored in the memory 1503, implements the steps of the above embodiments.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or 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 aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present application, a computer readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the method of any of the above embodiments is also provided.
In a further embodiment of the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of any of the above embodiments.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, 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 a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the 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 (9)

1. A push method of service messages, applied to containers deployed in a target cluster, the method comprising:
obtaining a message pushing request of a sending device, wherein the message pushing request carries a target service message to be processed and target demand information corresponding to the target service message, and the target demand information includes but is not limited to: the information grade of the target service information or the reference authority corresponding to the target service information;
inquiring target receiving equipment meeting the target demand information;
detecting an establishment result of a target long connection link between the target receiving equipment and the current container;
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;
the target receiving device for inquiring the meeting target requirement information comprises:
acquiring a target identifier corresponding to the sending equipment;
acquiring authority information corresponding to the requester from the authority tree according to the target identifier;
determining a receiving device set corresponding to the target identifier based on the authority information;
and selecting target receiving equipment meeting the target demand information from the receiving equipment set.
2. The method according to claim 1, wherein the detecting a result of the establishment 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 of the current container with an external device of the 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.
3. The method according to claim 2, wherein the determining a target container for pushing the target service message according to the establishment result, through which the target service message is pushed to the target receiving device, includes:
and 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.
4. The method according to claim 2, wherein the determining a target container for pushing the target service message according to the establishment result, through which the target service message is pushed to the target receiving device, includes:
acquiring a switch bound with a current container when the establishment result is used for indicating that a target long connection link between the target receiving device and the current container does not exist in the long connection link set;
storing the target service message to a message queue in the switch, so that a target container deployed in the target cluster listens to the target service message from the message queue, and pushes the target service message to the target receiving device.
5. The method of claim 4, wherein prior to acquiring the switch bound to the current container, the method further comprises:
under the condition of monitoring the starting of the current container, creating 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.
6. The method of claim 5, wherein the method further comprises:
monitoring the message queue;
inquiring and extracting the service message to be processed from the message queue when determining that the service message to be processed from other containers in the target cluster exists in 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.
7. A push device for service messages, comprising:
the information pushing module is configured to obtain 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, and the target requirement information includes but is not limited to: the information grade of the target service information or the reference authority corresponding to the target service information;
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;
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;
the query module is used for acquiring a target identifier corresponding to the sending equipment; acquiring authority information corresponding to the requester from the authority tree according to the target identifier; determining a receiving device set corresponding to the target identifier based on the authority information; and selecting target receiving equipment meeting the target demand information from the receiving equipment set.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the method of any of the preceding claims 1 to 6 is performed by a computer when the computer is running.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
a processor for executing the method steps of any of claims 1-6 by running 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 CN114338794A (en) 2022-04-12
CN114338794B true 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)

Families Citing this family (1)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10979514B2 (en) * 2018-12-03 2021-04-13 International Business Machines Corporation Flexible message transformation and delivery

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN114338794A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
EP3060018B1 (en) Registration method and system for common service entity
CN108897854B (en) Monitoring method and device for overtime task
WO2014166265A1 (en) Method, terminal, cache server and system for updating webpage data
CN107315825A (en) A kind of index upgrade system, method and device
CN112650606B (en) Message processing method, device, system, electronic equipment and storage medium
CN107147748B (en) File uploading method and device
CN111400777B (en) Network storage system, user authentication method, device and equipment
CN111182089A (en) Container cluster system, method and device for accessing big data assembly and server
CN111917687A (en) Method and device for circularly pushing reminding message
CN108880972B (en) Information processing method, server and terminal
CN114338650A (en) File transmission method and device, electronic equipment and readable storage medium
CN110543512A (en) Information synchronization method, device and system
CN113746928A (en) Cross-cloud service calling method, device and system
CN114338794B (en) Service message pushing method and device, electronic equipment and storage medium
CN110708309A (en) Anti-crawler system and method
CN109981697B (en) File unloading method, system, server and storage medium
CN104426816A (en) Virtual machine communication method and device
CN106254515A (en) A kind of load-balancing method storing system and equipment
CN112714042A (en) Pressure testing method and device, electronic equipment and storage medium
CN111880949B (en) Service information processing method, system, device, server and terminal
CN114461412A (en) Lane isolation method and device for message queue, electronic equipment and storage medium
CN110677417A (en) Anti-crawler system and method
CN113946853B (en) File filtering method and device, electronic equipment and storage medium
CN113055443B (en) Resource data deployment method, device, equipment and storage medium
CN110855785B (en) Data processing method and device

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