CN113596150A - Message pushing method and device, computer equipment and storage medium - Google Patents
Message pushing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113596150A CN113596150A CN202110858672.6A CN202110858672A CN113596150A CN 113596150 A CN113596150 A CN 113596150A CN 202110858672 A CN202110858672 A CN 202110858672A CN 113596150 A CN113596150 A CN 113596150A
- Authority
- CN
- China
- Prior art keywords
- message
- target
- subscription information
- pushing
- power grid
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000003860 storage Methods 0.000 title claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 28
- 238000012544 monitoring process Methods 0.000 claims description 26
- 238000005192 partition Methods 0.000 claims description 12
- 238000013480 data collection Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 abstract description 15
- 230000006870 function Effects 0.000 description 17
- 238000012545 processing Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000004044 response Effects 0.000 description 7
- 238000007726 management method Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000000638 solvent extraction Methods 0.000 description 2
- 238000013316 zoning Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000009365 direct transmission Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9063—Intermediate storage in different physical parts of a node or terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to a message pushing method, a message pushing device, computer equipment and a storage medium. The method comprises the following steps: acquiring a message of a local service cluster, and generating a message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; and acquiring a target message corresponding to the subscription information in the message queue, and pushing the target message to the target subscriber. By adopting the method, the message exchange among different areas of the power grid can be realized, the blockage caused by directly exchanging data among different areas of the power grid is avoided, and the communication efficiency among different areas of the power grid is improved.
Description
Technical Field
The present invention relates to the field of power systems, and in particular, to a message pushing method and apparatus, a computer device, and a storage medium.
Background
An Operation intelligent System (OS 2) of a power grid is a complete, open and standard technical support System, the function range of the System covers power grid Operation monitoring, metering, adjusting, controlling, protecting, analyzing and managing and the like, and the System standardizes, integrates and integrates various existing isolated and dispersed secondary systems by building a unified large platform, realizes resource optimization configuration, information comprehensive sharing and seamless connection of business processes of the secondary systems, and promotes secondary integrated construction.
For the power system with numerous devices, wide coverage and large capacity, the control forms of layering according to voltage grades under the unified command of the highest-level control center and zoning according to regions are adopted, and the operation control of the power system comprises operation control and automation thereof under normal operation conditions and operation control and automation thereof under accident conditions. Each function of the system is respectively deployed in a safety zone I, a safety zone II and a safety zone III according to application requirements. The safety zone I and the safety zone II mainly comprise a data acquisition and exchange function group and an application function group; and the safety zone III mainly comprises a data acquisition and exchange function group, an application function group, WEB services and mobile terminal services. However, since each zone exchanges data through a cross-zone communication service, direct transmission of a large amount of data is likely to cause congestion, resulting in low communication efficiency.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a message pushing method, apparatus, computer device and storage medium for solving the above technical problems.
A method of message pushing, the method comprising:
acquiring a message of a local service cluster, and generating a message queue according to the message;
obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information;
and acquiring a target message corresponding to the subscription information in the message queue, and pushing the target message to the target subscriber.
In one embodiment, the message includes a message classification identifier; the generating a message queue according to the message includes: determining the message type according to the message classification identifier; and carrying out partition storage on the message according to the message type to form a message queue.
In one embodiment, the obtaining subscription information of different areas of the power grid and determining a target subscriber according to the subscription information includes: obtaining subscription information of different areas of a power grid; and determining the user information of the target subscriber according to the subscription information.
In one embodiment, the obtaining a target message corresponding to the subscription information in the message queue and pushing the target message to the target subscriber includes: determining the type of the message subscribed by the target subscriber according to the subscription information; calling a target message in the message queue, wherein the target message is consistent with the message type subscribed by the target subscriber according to the message type subscribed by the target subscriber; and pushing the target message to the target subscriber.
In one embodiment, the obtaining the message of the local service cluster includes: collecting data content for the local service cluster by using a data collection and monitoring control system; and generating a message according to the data content.
In one embodiment, the method further comprises: monitoring the sending state of the data content through a data sending node of the message queue; when the sending state of the data content is changed, judging whether the data content contains the content of the power grid safety risk; and if the data content contains the power grid safety risk content, sending the data content to a local service cluster.
In one embodiment, the method further comprises: acquiring a pushing state of the target message; and when the pushing state is failure, sending the target message to a standby server to trigger the standby server to forward the target message to the target subscriber.
A message push device, the device comprising: the queue generating module is used for acquiring the message of the local service cluster and generating a message queue according to the message; the subscriber determining module is used for acquiring subscription information of different areas of the power grid and determining a target subscriber according to the subscription information; and the message pushing module is used for acquiring a target message corresponding to the subscription information in the message queue and pushing the target message to the target subscriber.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: acquiring a message of a local service cluster, and generating a message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; and acquiring a target message corresponding to the subscription information in the message queue, and pushing the target message to the target subscriber.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: acquiring a message of a local service cluster, and generating a message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; and acquiring a target message corresponding to the subscription information in the message queue, and pushing the target message to the target subscriber.
According to the message pushing method, the message pushing device, the computer equipment and the storage medium, the server obtains the message of the local service cluster and generates the message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; the target message corresponding to the subscription information in the message queue is obtained, and the target message is pushed to the target subscriber, so that message exchange between different areas of the power grid can be realized through the message queue, the blockage caused by direct data exchange between different areas of the power grid is avoided, and the communication efficiency between different areas of the power grid is improved.
Drawings
FIG. 1 is a diagram of an application environment of a message push method in one embodiment;
FIG. 2 is a flowchart illustrating a message pushing method according to an embodiment;
FIG. 3 is a flowchart illustrating a target information obtaining step according to an embodiment;
fig. 4 is a schematic flow chart of a message pushing method in another embodiment;
FIG. 5 is a schematic diagram of the architecture of the grid operation control system;
FIG. 6 is a block diagram of a message pushing apparatus according to an embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The message pushing method provided by the application can be applied to the application environment shown in fig. 1. The first server 102 communicates with the second server 104 via a network, and the third server 106 communicates with the second server 104 via a network. The second server 104 acquires the message for sending the local service cluster in the first server 102, and generates a message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; and acquiring a target message corresponding to the subscription information in the message queue, and pushing the target message to a target subscriber in the third server 106. The first server 102 may be a service cluster in the power system, where the service cluster may be implemented by an independent server or a server cluster composed of a plurality of servers; the second server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers; the third server 106 is a cluster of each area of the power grid, and may be implemented by an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a message pushing method is provided, which is described by taking the application of the method to the second server in fig. 1 as an example, and includes the following steps:
s202, obtaining the message of the local service cluster, and generating a message queue according to the message.
The local service cluster refers to that a plurality of local servers in the power system are gathered together to perform the same service, and the client looks like only one server. The cluster can use a plurality of computers to perform parallel computation so as to obtain high computation speed, and also can use a plurality of computers to perform backup so that the whole system can run normally under the condition that any one machine is broken.
The local service cluster in the power system generates various messages during the operation process, and the messages include various events generated by each service cluster, such as an alarm event of a power main station, scheduling events among different plant stations, and the like. The generation time of the event, the subject name of the event, the classification identification of the event and the like are encapsulated into different messages, wherein the classification of the messages can be classified according to the type of the event; certainly, the different types of messages may also add other required information, such as node names and device names of the computers and the network device status report messages, which are not described in detail again.
The message refers to information mutually transmitted among different areas of a power grid, the queue refers to a first-in first-out data structure and a container for storing the message, the message enters from the tail of the queue and exits from the head of the queue, the process of sending the message is realized when the message enters from the head of the queue, and the process of receiving the message is realized when the message exits from the queue. A message queue is a way of communication between processes or between different threads of the same process. In an embodiment, a message queue mode can be adopted to temporarily store a message, the message is called from the message queue for pushing, a virtual memory is taken as a storage unit of the message queue for illustration, the message is stored in the virtual memory, the virtual memory has an independent application function and can store different message types, the message is only stored in the virtual memory and does not occupy local storage of each area, unified management of resources can be realized, the problem of congestion easily caused by sending a large amount of data is avoided, the response speed of the message can be accelerated, the transmission efficiency of cross-regional service messages is effectively improved, a user can obtain the pushed message of an electric power system in time, the instantaneity and the safety are guaranteed, and the service quality of the user is improved. It will be appreciated that when the message queue is not in use, the user's request data is written directly to the database, and the database pressure increases dramatically in high concurrency, slowing the response speed. The message queue is used for storing messages, and when a request for calling the messages is sent to the message queue, corresponding data are obtained from the message queue and pushed to a corresponding application unit. Because the processing speed of the storage array of the message queue is higher than that of the database, the response efficiency of the message queue is high, so that the message queue has a good function of peak clipping, namely, the events generated by high concurrency in a short time are stored in the message queue through asynchronous processing, and the concurrent events in a peak period are clipped. In addition, the cross-region service message is pushed in a message queue mode, the sending party and the receiving party are not directly coupled, the sending party sends the message to the message queue, namely, the message processing is finished, the receiving party acquires the message from the message queue and then carries out subsequent processing, the message in the message queue can be received as long as the corresponding type of message is subscribed, and the original system and the service are not influenced, so that the system coupling is reduced.
The transmission of messages between different areas of the power system may be achieved by means of a message service bus. The message server bus is an integrated supporting platform and an operation service bus which are constructed on the basis of unified information and communication technology infrastructures of a power grid and on the basis of unified models and service interface standards, and various service functions are built or functionally completed on the basis of the integrated supporting platform and the operation service bus. And the message queue server receives the messages of the local service clusters in the master station/plant station at each level of the power grid through the support platform and the transverse operation service bus, so as to realize interconnection with the upper and lower levels of related service systems.
Specifically, the server receives messages of each local service cluster through the power system operation service bus, stores the collected messages in a queue data structure of the server, and generates a message queue.
And S204, obtaining subscription information of different areas of the power grid, and determining a target subscriber according to the subscription information.
For the power system with numerous devices, wide coverage and large capacity, the control forms of layering according to voltage grades under the unified command of the highest-level control center and zoning according to regions are adopted, and the operation control of the power system comprises operation control and automation thereof under normal operation conditions and operation control and automation thereof under accident conditions. According to the safety protection requirement of a secondary system, all functions of the system are respectively deployed in a safety area I, a safety area II and a safety area III according to application requirements, wherein the safety area I and the safety area II mainly comprise a data acquisition and exchange function group and an application function group; the security zone III mainly comprises network communication services and mobile terminal services. The subscribers can be function groups or application units in each area of the power grid.
The subscription information includes the type of the message subscribed by the subscriber and the identity information of the subscriber.
Specifically, the server receives subscription information of different areas of the power grid, analyzes the subscription information, and determines identity information of a subscriber from the subscription information, so as to determine a target subscriber.
S206, acquiring the target message corresponding to the subscription information in the message queue, and pushing the target message to the target subscriber.
And after the identity information of the target subscriber is acquired, acquiring a message corresponding to the subscription information from the message queue, and pushing the message to the corresponding target subscriber, thereby completing the pushing of the cross-region service message. The pushing mode can push the message to the target subscriber in the modes of short messages, mails and application programs. In an alternative embodiment, the same message may correspond to multiple subscribers, and the subscribers may subscribe to multiple types of messages at the same time.
According to the message pushing method, the server acquires the message of the local service cluster and generates a message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; the target message corresponding to the subscription information in the message queue is obtained, and the target message is pushed to the target subscriber, so that message exchange between different areas of the power grid can be realized through the message queue, the blockage caused by direct data exchange between different areas of the power grid is avoided, and the communication efficiency between different areas of the power grid is improved. In one embodiment, the message includes a message classification identification; generating a message queue from the messages, comprising: determining the message type according to the message classification identifier; and carrying out partition storage on the messages according to the message types to form a message queue.
The message may be classified according to the type of the event contained in the message, and the classification identifier in the message may be generated according to the classification identifier of the event. The server receives the messages sent in different areas through the message service bus, before the messages are placed in the message queue, the type of the messages is determined according to the classification identification of the messages, then data partition storage is carried out according to the type of the messages, namely the messages of different types are stored in different data partitions, so that the message queue is formed, the message queue is a data queue, and the messages are stored in partitions, so that the reading speed of the messages is increased, and the response efficiency of the messages is improved. In an embodiment, when a message of a master station fault is acquired, the master station fault message is stored in a front storage partition of a message queue, and the message can be quickly retrieved and pushed to a corresponding receiver through the front storage partition.
In the embodiment, the message content data is stored in the subareas according to the message types, and the emergency message is preferentially read and written, so that the emergency message can be preferentially processed, the response efficiency of the message is effectively improved, and the rapid processing of the fault event is facilitated.
In one embodiment, acquiring subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information includes: obtaining subscription information of different areas of a power grid; and determining the user information of the target subscriber according to the subscription information.
Specifically, the server may collect subscription messages of each area of the power grid through the subscription information collection system, and since the subscription messages carry user information of subscribers, a target subscriber may be found through the user information. In one embodiment, the subscription message collection system distributed subscription message system employs the Kafka system. The Kafka system is a high-throughput distributed publish-subscribe information system that can handle all the flow data of a user's actions in a web site. The Kafka data channel is a data communication channel constructed based on a Kafka framework, and data transmission can be effectively guaranteed through Kafka decoupling characteristics. After the systems in each area generate subscription information data, the information data can be uploaded to an external service data platform through a corresponding Kafka channel, the service data platform stores the service data, and then the subscription information data is sent to the message queue generating server.
In this embodiment, the server analyzes the subscription information to obtain the user information of the target subscriber, so as to accurately push the corresponding message in the message queue to the target subscriber, thereby improving the transmission efficiency between the regions of the power grid.
In one embodiment, as shown in fig. 3, acquiring a target message corresponding to subscription information in a message queue, and pushing the target message to a target subscriber includes:
s302, determining the type of the message subscribed by the target subscriber according to the subscription information.
Because the subscription information sent in different areas at least contains the subscribed message classification identifier, the server receives the subscription information sent by the cluster server in each area, and determines the message type subscribed by the subscriber according to the message classification identifier contained in the subscription information. S304, according to the message type subscribed by the target subscriber, the target message consistent with the message type subscribed by the target subscriber in the message queue is called.
Specifically, the local cluster server sends a message to the message queue generating server, and the message queue generating server classifies the received message and stores the message in a memory in a partition mode according to the message type. For example, fault type messages are stored in one zone and scheduling messages between master plants are stored in another zone. When the message queue server receives the subscription information of the subscriber, the target message with the same type as the message subscribed by the target subscriber is obtained from the message queue, wherein the message with the same type comprises a plurality of messages.
S306, pushing the target message to the target subscriber.
The pushing mode can be an application program, a short message, an email and the like.
The push sequence of pushing the target message to the target subscriber may be arranged according to the level of the event in the message, and first, the event is classified according to the information, such as the time of occurrence of the event, the subject name of the event, and the classification identifier of the event, carried in the message. Therefore, according to the level of the event, the messages can be arranged in priority, the higher the level of the event is, the higher the priority of the message corresponding to the event is, the more urgent push is needed, and the processing of the urgent event is facilitated to be accelerated.
After receiving the subscription information of the target subscriber, the server acquires the subscription message type contained in the subscription information, calls the messages of the same type from the message queue according to the message type of the subscription message, performs priority ordering on each message in the messages of the same type according to the event level contained in the message, and the messages with higher priority can be preferentially pushed to the target subscriber.
Specifically, the server performs priority ranking on the target messages obtained in step S304, and then pushes the target messages to the target subscribers in the form of application programs, short messages, and mails.
In the embodiment, the unified management of resources can be realized through the message queue, the problem that congestion is easily caused by sending a large amount of data is avoided, the response speed of the emergency message can be accelerated, the transmission efficiency of the cross-region service message is effectively improved, a user can timely acquire the push message of the power system, and the instantaneity and the safety are guaranteed.
In one embodiment, obtaining a message of a local service cluster includes: collecting data content of the local service cluster by using a data collection and monitoring control system; a message is generated based on the data content.
The data acquisition and monitoring control system is a computer-based production process control and scheduling automation system. In an electric power system, an SCADA (supervisory control and data acquisition) system is a common data acquisition and monitoring control system and can realize various functions such as data acquisition, equipment control, measurement, parameter adjustment, various signal alarms and the like.
Specifically, the server may process the cluster through the SCADA system to obtain data content, where the data content includes event identification data, event topic data, event generation time data, and the like, and encapsulate the obtained data content into a message. In an embodiment, as shown in fig. 4, the message pushing method further includes:
s402, monitoring the sending state of the data content through the data sending node.
Wherein, the data sending node can be arranged on the local cluster server. The local cluster server can send data contents to the message queue generating server through the data sending node, and the data sending node can monitor the sending state of each data content sent from the node in real time.
S404, when the sending state of the data content is changed, whether the data content contains the content of the power grid safety risk is judged.
Specifically, based on the real-time performance of data interaction, the data sending node through the message queue can monitor the sending state of the data content in real time. When the sending state of the data content changes, the event corresponding to the data content changes. When the data content comprises the content of the power grid safety risk, considering that the power grid system may have an event related to the safety problem, at this time, a notification needs to be sent to the local service cluster, so that the local service cluster can timely know the change state of the data content, and meanwhile, the priority of the message is improved, so that the message is preferentially read and written in the message queue and is pushed to the corresponding application unit, the message related to the power grid safety risk can be rapidly processed, and the emergency response efficiency is improved. For example, after the data corresponding to the message is written into the message queue, the event corresponding to the message is upgraded to an emergency event, for example, if the master station upgrades from the occurrence of the warning message to the outage fault, the message is processed urgently, and the message is pushed to the corresponding safety fault processing unit through a mail, a short message or an application program.
And S406, if the data content contains the power grid safety risk content, sending the data content to the local service cluster.
Specifically, when the server learns that the sending state of the data content changes, the server traverses the received data content to find data containing power grid safety risk content, encapsulates the data into a message, performs emergency processing on the message, and preferentially pushes the message to a safety accident processing emergency unit, so as to ensure the safety of the power grid.
In the embodiment, the data content monitoring node is used for monitoring the data content, and when the data content contains a power grid safety problem, the local cluster is timely notified, so that a user can timely obtain the push message of the power system, the instantaneity and the safety are guaranteed, and the service quality of the user is improved.
In an embodiment, the message pushing method further includes obtaining a pushing state of the target message; and when the pushing state is failure, sending the target message to the standby server to trigger the standby server to forward the target message to the target subscriber.
In the power operation control system, in order to ensure that the messages in the message queue can be transmitted smoothly, the operation control system allows the standby server to be used as a standby memory of the message queue. In the normal operation process, the message queue is used for storing messages, and the standby server is in a standby state.
Specifically, the server can monitor the pushing state of the message in real time through the data sending node of the message queue, when the pushing state is a failure state, the virtual memory may have a fault problem, the standby server is called to be put into operation at the moment, and the message is forwarded to the corresponding target subscriber by using the standby server, so that the pushing of the message is completed, the phenomenon that the pushing of the cross-regional service message is influenced because the message queue cannot operate is avoided, the standby server does not influence the normal operation of the message queue, the resource management is more flexible and convenient, the safety is guaranteed, and the service quality of a user is effectively improved.
In an embodiment, as shown in fig. 5, fig. 5 is an architectural schematic diagram of a power grid operation control system provided in this embodiment, where the power grid operation control system includes a human-machine interface 502, a data center 504, and a data collection and exchange 506, where the human-machine interface 502 includes a control operation module, a power grid operation monitoring module, a graph model maintenance module, an event monitoring module, and a pre-monitoring and debugging module, the data center 504 includes a real-time library, a relational library, a timing library, and an object repository, and the data collection and exchange 506 includes a control service cluster, a data service cluster, a model service cluster, a file service cluster, a SCADA processing cluster, and a pre-service cluster.
Firstly, a user inputs a control instruction on a man-machine interaction false face control operation interface, a control service cluster receives the control instruction and sends the control instruction to a front-end service cluster, and the front-end service cluster receives the control instruction and then controls a remote terminal unit to execute corresponding operation; the power grid operation monitoring system collects operation data of each master station/plant station in the power grid in real time, transmits the operation data to a data service cluster, and a data center sends a data acquisition request to the data service cluster when needed; the graph model maintenance system sends the graph model information to a model service cluster, and the model service cluster sends the graph model data information to a relational database of a data center for storage; the event monitoring system monitors whether the sending state of the data content changes in real time, when the sending state of the data content is monitored to change, the data content is sent to the file service cluster to be processed, and the processed data is sent to an object storage library of the data center.
Then, various kinds of data such as steady-state, dynamic, protection, video and the like collected by the front-end service cluster are directly transmitted into various kinds of monitoring function modules such as steady-state monitoring, dynamic monitoring, protection operation monitoring, video and environment monitoring and the like for use through a message bus, the function modules provide the data required to be sent to the data integration and service functions of the data center 504 through the message bus for unified management and external release, and various kinds of data required to be stored and accessed in a relational database and a time sequence database are uniformly provided by a database support platform service of the data center 504; the message queue adopts a message bus as a transmission carrier to realize the unified management of messages.
And finally, collecting data contents sent by all local clusters in the power grid according to the SCADA processing cluster, packaging the data contents into various types of messages, storing the messages in a partition mode according to the message types, generating a message queue, and sending the message queue to target subscribers in different areas of the power grid.
In this embodiment, the information is obtained by the SCADA processing cluster, the information obtained by the SCADA processing cluster is placed in the information queue, and the corresponding information is called from the information queue according to the subscription information, so that the information is pushed to the corresponding application unit, thereby completing the pushing of the cross-regional service information, and realizing the real-time transmission of data, and having higher real-time performance and security.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a message pushing apparatus 600, including: the device comprises a queue generating module, a subscriber determining module and a message pushing module, wherein:
a queue generating module 602, configured to obtain a message of a local service cluster, and generate a message queue according to the message;
a subscriber determining module 604, configured to obtain subscription information of different areas of the power grid, and determine a target subscriber according to the subscription information;
a message pushing module 606, configured to obtain a target message in the message queue corresponding to the subscription information, and push the target message to the target subscriber.
In the message pushing device, the server acquires the message of the local service cluster and generates a message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; the target message corresponding to the subscription information in the message queue is obtained, and the target message is pushed to the target subscriber, so that message exchange between different areas of the power grid can be realized through the message queue, the blockage caused by direct data exchange between different areas of the power grid is avoided, the communication efficiency between different areas of the power grid is improved, and the user service quality is improved.
In one embodiment, the queue generating module further comprises: the message type determining submodule is used for determining the message type according to the message classification identifier; and the message partitioning submodule is used for partitioning and storing the message according to the message type to form a message queue.
In one embodiment, the subscriber determination module further comprises: the subscription information acquisition submodule is used for acquiring subscription information of different areas of the power grid; and the user information acquisition submodule is used for determining the user information of the target subscriber according to the subscription information.
In one embodiment, the message pushing module further comprises: the message type determining submodule is used for determining the message type subscribed by the target subscriber according to the subscription information; the target message acquisition sub-module is used for calling a target message in the message queue, wherein the target message is consistent with the message type subscribed by the target subscriber according to the message type subscribed by the target subscriber; and the target message pushing submodule is used for pushing the target message to the target subscriber.
In one embodiment, the queue generating module further comprises: the data content acquisition submodule is used for acquiring data contents for the local service cluster by using a data acquisition and monitoring control system; and the message generation submodule is used for generating a message according to the data content.
In an embodiment, the message pushing apparatus further includes: a sending state obtaining submodule, configured to monitor a sending state of the data content through a data sending node of the message queue; the risk judgment submodule is used for judging whether the data content contains the content of the power grid safety risk or not when the sending state of the data content is changed; and the content sending submodule is used for sending the data content to the local service cluster if the data content contains the power grid security risk content.
In an embodiment, the message pushing apparatus further includes: the push state acquisition submodule is used for acquiring the push state of the target message; and the target message forwarding sub-module is used for sending the target message to a standby server when the pushing state is failure so as to trigger the standby server to forward the target message to the target subscriber.
For specific definition of the message pushing device, refer to the above definition of the message pushing method, which is not described herein again. The modules in the message pushing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing subscriber information data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a message push method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a message push method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring a message of a local service cluster, and generating a message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; and acquiring a target message corresponding to the subscription information in the message queue, and pushing the target message to the target subscriber.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the message type according to the message classification identifier; and carrying out partition storage on the message according to the message type to form a message queue.
In one embodiment, the processor, when executing the computer program, further performs the steps of: obtaining subscription information of different areas of a power grid; and determining the user information of the target subscriber according to the subscription information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the type of the message subscribed by the target subscriber according to the subscription information; calling a target message in the message queue, wherein the target message is consistent with the message type subscribed by the target subscriber according to the message type subscribed by the target subscriber; and pushing the target message to the target subscriber.
In one embodiment, the processor, when executing the computer program, further performs the steps of: collecting data content for the local service cluster by using a data collection and monitoring control system; and generating a message according to the data content.
In one embodiment, the processor, when executing the computer program, further performs the steps of: monitoring the sending state of the data content through a data sending node of the message queue; when the sending state of the data content is changed, judging whether the data content contains the content of the power grid safety risk; and if the data content contains the power grid safety risk content, sending the data content to a local service cluster.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a pushing state of the target message; and when the pushing state is failure, sending the target message to a standby server to trigger the standby server to forward the target message to the target subscriber.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a message of a local service cluster, and generating a message queue according to the message; obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information; and acquiring a target message corresponding to the subscription information in the message queue, and pushing the target message to the target subscriber.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the message type according to the message classification identifier; and carrying out partition storage on the message according to the message type to form a message queue.
In one embodiment, the computer program when executed by the processor further performs the steps of: obtaining subscription information of different areas of a power grid; and determining the user information of the target subscriber according to the subscription information.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the type of the message subscribed by the target subscriber according to the subscription information; calling a target message in the message queue, wherein the target message is consistent with the message type subscribed by the target subscriber according to the message type subscribed by the target subscriber; and pushing the target message to the target subscriber.
In one embodiment, the computer program when executed by the processor further performs the steps of: collecting data content for the local service cluster by using a data collection and monitoring control system; and generating a message according to the data content.
In one embodiment, the computer program when executed by the processor further performs the steps of: monitoring the sending state of the data content through a data sending node of the message queue; when the sending state of the data content is changed, judging whether the data content contains the content of the power grid safety risk; and if the data content contains the power grid safety risk content, sending the data content to a local service cluster.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a pushing state of the target message; and when the pushing state is failure, sending the target message to a standby server to trigger the standby server to forward the target message to the target subscriber.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A message pushing method, the method comprising:
acquiring a message of a local service cluster, and generating a message queue according to the message;
obtaining subscription information of different areas of a power grid, and determining a target subscriber according to the subscription information;
and acquiring a target message corresponding to the subscription information in the message queue, and pushing the target message to the target subscriber.
2. The method of claim 1, wherein the message comprises a message classification identifier; the generating a message queue according to the message includes:
determining the message type according to the message classification identifier;
and carrying out partition storage on the message according to the message type to form a message queue.
3. The method of claim 1, wherein the obtaining subscription information for different areas of the power grid and determining a target subscriber according to the subscription information comprises:
obtaining subscription information of different areas of a power grid;
and determining the user information of the target subscriber according to the subscription information.
4. The method of claim 1, wherein the obtaining a target message in the message queue corresponding to the subscription information and pushing the target message to the target subscriber comprises:
determining the type of the message subscribed by the target subscriber according to the subscription information;
calling a target message in the message queue, wherein the target message is consistent with the message type subscribed by the target subscriber according to the message type subscribed by the target subscriber;
and pushing the target message to the target subscriber.
5. The method of any of claims 1 to 4, wherein the obtaining the message of the local service cluster comprises:
collecting data content for the local service cluster by using a data collection and monitoring control system;
and generating a message according to the data content.
6. The method of claim 5, further comprising:
monitoring the sending state of the data content through a data sending node of the message queue;
when the sending state of the data content is changed, judging whether the data content contains the content of the power grid safety risk;
and if the data content contains the power grid safety risk content, sending the data content to a local service cluster.
7. The method of claim 1, further comprising:
acquiring a pushing state of the target message;
and when the pushing state is failure, sending the target message to a standby server to trigger the standby server to forward the target message to the target subscriber.
8. A message push apparatus, the apparatus comprising:
the queue generating module is used for acquiring the message of the local service cluster and generating a message queue according to the message;
the subscriber determining module is used for acquiring subscription information of different areas of the power grid and determining a target subscriber according to the subscription information;
and the message pushing module is used for acquiring a target message corresponding to the subscription information in the message queue and pushing the target message to the target subscriber.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110858672.6A CN113596150B (en) | 2021-07-28 | 2021-07-28 | Message pushing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110858672.6A CN113596150B (en) | 2021-07-28 | 2021-07-28 | Message pushing method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113596150A true CN113596150A (en) | 2021-11-02 |
CN113596150B CN113596150B (en) | 2024-04-30 |
Family
ID=78251194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110858672.6A Active CN113596150B (en) | 2021-07-28 | 2021-07-28 | Message pushing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113596150B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114268667A (en) * | 2021-12-20 | 2022-04-01 | 中国平安财产保险股份有限公司 | Data forwarding method and device, computer equipment and storage medium |
CN114938388A (en) * | 2022-07-22 | 2022-08-23 | 浙江中控技术股份有限公司 | Distributed data transmission method, device, system and storage medium |
CN115334586A (en) * | 2022-10-17 | 2022-11-11 | 深圳市领创星通科技有限公司 | Data forwarding method and device, computer equipment and storage medium |
CN116319650A (en) * | 2023-05-22 | 2023-06-23 | 三一海洋重工有限公司 | Port equipment data distribution method, device and system and container crane |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468819A (en) * | 2014-12-24 | 2015-03-25 | 福建江夏学院 | Message pushing system and method for internet of things |
CN106230896A (en) * | 2016-07-18 | 2016-12-14 | 深圳国泰安教育技术股份有限公司 | A kind of information push method, Apparatus and system |
CN108667716A (en) * | 2018-04-16 | 2018-10-16 | 深圳壹账通智能科技有限公司 | A kind of information push method, device and computer readable storage medium |
CN111131368A (en) * | 2018-11-01 | 2020-05-08 | 中国移动通信集团浙江有限公司 | Message pushing method and device |
CN111866191A (en) * | 2020-09-24 | 2020-10-30 | 深圳市易博天下科技有限公司 | Message event distribution method, distribution platform, system and server |
CN111917863A (en) * | 2020-07-28 | 2020-11-10 | 中国平安财产保险股份有限公司 | Message pushing method and device, television equipment and computer storage medium |
CN112527528A (en) * | 2020-12-18 | 2021-03-19 | 平安科技(深圳)有限公司 | Data transmission method, device and storage medium based on message queue |
CN113141383A (en) * | 2020-01-18 | 2021-07-20 | 佛山市云米电器科技有限公司 | Device information subscription method, client, server, system and storage medium |
CN113342551A (en) * | 2021-07-01 | 2021-09-03 | 广东电网有限责任公司 | Cross-region service message pushing method of message subscription mechanism |
CN113905089A (en) * | 2021-09-06 | 2022-01-07 | 浪潮软件股份有限公司 | Multi-user message pushing method and system based on publish-subscribe mode |
-
2021
- 2021-07-28 CN CN202110858672.6A patent/CN113596150B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468819A (en) * | 2014-12-24 | 2015-03-25 | 福建江夏学院 | Message pushing system and method for internet of things |
CN106230896A (en) * | 2016-07-18 | 2016-12-14 | 深圳国泰安教育技术股份有限公司 | A kind of information push method, Apparatus and system |
CN108667716A (en) * | 2018-04-16 | 2018-10-16 | 深圳壹账通智能科技有限公司 | A kind of information push method, device and computer readable storage medium |
CN111131368A (en) * | 2018-11-01 | 2020-05-08 | 中国移动通信集团浙江有限公司 | Message pushing method and device |
CN113141383A (en) * | 2020-01-18 | 2021-07-20 | 佛山市云米电器科技有限公司 | Device information subscription method, client, server, system and storage medium |
CN111917863A (en) * | 2020-07-28 | 2020-11-10 | 中国平安财产保险股份有限公司 | Message pushing method and device, television equipment and computer storage medium |
CN111866191A (en) * | 2020-09-24 | 2020-10-30 | 深圳市易博天下科技有限公司 | Message event distribution method, distribution platform, system and server |
CN112527528A (en) * | 2020-12-18 | 2021-03-19 | 平安科技(深圳)有限公司 | Data transmission method, device and storage medium based on message queue |
CN113342551A (en) * | 2021-07-01 | 2021-09-03 | 广东电网有限责任公司 | Cross-region service message pushing method of message subscription mechanism |
CN113905089A (en) * | 2021-09-06 | 2022-01-07 | 浪潮软件股份有限公司 | Multi-user message pushing method and system based on publish-subscribe mode |
Non-Patent Citations (2)
Title |
---|
蔡勇;夏勇军;李蓓贝;胡刚;: "发布订阅技术在智能电网信息交换中的应用研究" * |
蔡勇;夏勇军;李蓓贝;胡刚;: "发布订阅技术在智能电网信息交换中的应用研究", 华中电力, vol. 24, no. 03, pages 13 - 16 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114268667A (en) * | 2021-12-20 | 2022-04-01 | 中国平安财产保险股份有限公司 | Data forwarding method and device, computer equipment and storage medium |
CN114268667B (en) * | 2021-12-20 | 2024-05-07 | 中国平安财产保险股份有限公司 | Data forwarding method, device, computer equipment and storage medium |
CN114938388A (en) * | 2022-07-22 | 2022-08-23 | 浙江中控技术股份有限公司 | Distributed data transmission method, device, system and storage medium |
CN114938388B (en) * | 2022-07-22 | 2022-11-11 | 浙江中控技术股份有限公司 | Distributed data transmission method, device, system and storage medium |
CN115334586A (en) * | 2022-10-17 | 2022-11-11 | 深圳市领创星通科技有限公司 | Data forwarding method and device, computer equipment and storage medium |
CN115334586B (en) * | 2022-10-17 | 2023-01-03 | 深圳市领创星通科技有限公司 | Data forwarding method and device, computer equipment and storage medium |
CN116319650A (en) * | 2023-05-22 | 2023-06-23 | 三一海洋重工有限公司 | Port equipment data distribution method, device and system and container crane |
CN116319650B (en) * | 2023-05-22 | 2024-01-30 | 三一海洋重工有限公司 | Port equipment data distribution method, device and system and container crane |
Also Published As
Publication number | Publication date |
---|---|
CN113596150B (en) | 2024-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113596150A (en) | Message pushing method and device, computer equipment and storage medium | |
CN109714192B (en) | Monitoring method and system for monitoring cloud platform | |
CN112511339B (en) | Container monitoring alarm method, system, equipment and storage medium based on multiple clusters | |
CN111800283B (en) | Network system, service providing and resource scheduling method, device and storage medium | |
US6862619B1 (en) | Network management system equipped with event control means and method | |
CN101976885B (en) | Remote intelligent network management power management system | |
US20120317164A1 (en) | Services Cloud System and Service Realization Method | |
CN115633050A (en) | Mirror image management method, device and storage medium | |
CA2293468A1 (en) | A telecommunications performance management system | |
CN101645160A (en) | Predicting, early warning and intelligent decision making system for social security events | |
US20040083246A1 (en) | Method and system for performance management in a computer system | |
CN109669835A (en) | MySQL database monitoring method, device, equipment and readable storage medium storing program for executing | |
CN113342551A (en) | Cross-region service message pushing method of message subscription mechanism | |
CN107180393B (en) | Centralized platform server for monitoring power transformation system | |
CA2857727C (en) | Computer-implemented method, computer system, computer program product to manage traffic in a network | |
CN204291014U (en) | A kind of machine room monitoring system | |
CN112667683B (en) | Stream computing system, electronic device thereof, and storage medium | |
CN111026606A (en) | Alarm method and device based on hystrix fuse monitoring and computer equipment | |
CN113507691A (en) | Information pushing system and method based on power distribution network cross-region service | |
CN113570476A (en) | Container service monitoring method of power grid monitoring system based on custom alarm rule | |
CA2221765A1 (en) | Communications network monitoring | |
CN109445931A (en) | A kind of big data resource scheduling system and method | |
CN109525443B (en) | processing method and device for distributed pre-acquisition communication link and computer equipment | |
CN115426274B (en) | Resource early warning method and device, electronic equipment and storage medium | |
CN111953771A (en) | Power distribution Internet of things management 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230423 Address after: Full Floor 14, Unit 3, Building 2, No. 11, Middle Spectra Road, Huangpu District, Guangzhou, Guangdong 510700 Applicant after: China Southern Power Grid Digital Grid Technology (Guangdong) Co.,Ltd. Address before: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province Applicant before: Southern Power Grid Digital Grid Research Institute Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |