A method for displaying power grid resource information

By using the combination of Kafka and Redis cache middleware in the grid resource information display method, the grid data is consumed and screened in real time, and displayed through Websocket and Rocketmq, the problem of low efficiency of grid information display is solved, and rapid response and system stability are achieved sex.

CN118426886BActive Publication Date: 2024-12-20BAIYIN POWER SUPPLY COMPANY STATE GRID GANSU ELECTRIC POWER
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410415828.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-12-20
Estimated Expiration
2044-04-08

AI Technical Summary

Technical Problem

The existing power grid resource information display methods are inefficient and cannot quickly collect and display power grid information, resulting in data processing delays and system stability problems.

Method used

By obtaining real-time grid resource information data and pushing it to Kafka, listening to Kafka queues and consuming in real-time storage into Redis cache middleware, filtering the target data and pushing it to the web page through Websocket, combining Rocketmq message middleware and Redis cache middleware for data exhibit.

Benefits of technology

It greatly improves the speed of message consumption, solves the problem of message accumulation in Kafka, realizes the rapid display and processing of power grid information, and improves the stability and response speed of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118426886B_ABST
    Figure CN118426886B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for displaying power grid resource information. The present invention relates to the technical field of electric power systems, which includes obtaining real-time power grid resource information data, pushing and storing the real-time power grid resource information data in Kafka; monitoring the queue for storing data in Kafka and consuming and storing in real time in Redis cache middleware; obtaining original data from Redis cache middleware, and filtering out target data; after the target data is processed by business, pushing it to a page of a web page through Websocket for display. The present invention serializes the obtained data and then traverses and stores it in Redis in a fixed manner, and then obtains the original data from Redis, filters out the required data, and pushes it to the front end for display through Websocket after business processing, which greatly improves the message consumption speed, solves the message accumulation in Kafka, and completes the complete consumption of Kafka messages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power systems, and in particular to a method for displaying power grid resource information. Background Art

[0002] With the rapid development of the power system, the reliability requirements for each link of the power grid, such as power generation, transformation, distribution, transmission, and power consumption, are becoming increasingly higher. When the power system is in operation, the dispatching, commanding, operation monitoring, and management of the power grid require the reception, storage, processing, and display of a large amount of power grid operation information.

[0003] The existing power control system faces great challenges in ensuring the safe operation of the power grid and reliable power supply. At the same time, some areas face difficulties in peak load regulation and operational risks, resulting in low stability limits of the networking channels, high reliance on security control systems, overlapping control resources, and complex strategies. Therefore, it is necessary to fully strengthen the lean management of equipment. Summary of the invention

[0004] To this end, the technical problem to be solved by the present invention is to overcome the low work efficiency in the production control process of power grid resource information in the prior art, and the inability to quickly collect and display power grid information resources so that staff can quickly discover and process them.

[0005] In order to solve the above technical problems, the present invention provides a method for displaying power grid resource information, comprising:

[0006] Acquire real-time power grid resource information data, and push and store the real-time power grid resource information data to Kafka; the real-time power grid resource information data includes power active data, current data and load rate data;

[0007] Monitor the queue storing data in the Kafka and consume it in real time and store it in the Redis cache middleware for subsequent business use;

[0008] Obtaining original data from the Redis cache middleware and filtering out target data;

[0009] After the target data is processed by the business, it is pushed to the web page through Websocket for display.

[0010] In one embodiment of the present invention, after the target data is processed by the business, it is pushed to the web page of the web page through Websocket for display, including:

[0011] The power transmission data is displayed on a page through the Redis cache middleware;

[0012] Combine Rocketmq message middleware and the Redis cache middleware to display weather warning information on the page.

[0013] In one embodiment of the present invention, the power transmission data is displayed on a page through the Redis cache middleware, specifically including:

[0014] Acquire initial basic data related to electricity, and integrate the initial basic data to obtain target basic data that conforms to a preset data format;

[0015] The target basic data conforming to the preset data format is stored in the Redis cache middleware in the form of List;

[0016] Receive a request instruction sent by a user on a web page through a back-end server and obtain target basic data within a target range from the Redis cache middleware;

[0017] Obtaining the current data of the power line from the database through the target basic data within the target range, and integrating and transmitting it to the web page;

[0018] The web program analyzes and renders the current data and displays it on the target map.

[0019] In one embodiment of the present invention, the meteorological warning information is displayed on a page in combination with Rocketmq message middleware and the Redis cache middleware, specifically including:

[0020] Send weather warning information data to Rocketmq message middleware;

[0021] The platform consumes the weather warning information data from the Rocketmq message middleware according to the preset time;

[0022] Processing the meteorological warning information data to store the processed meteorological warning information data in the Redis cache middleware in a format that complies with the business;

[0023] The web page initiates a request instruction to obtain meteorological information data, so that the back-end program obtains the processed meteorological warning information data from the Redis cache middleware and returns it to the web page;

[0024] The processed weather warning information data is parsed and rendered through a web page program and displayed on a target map.

[0025] In one embodiment of the present invention, after the target data is processed by business, a message channel in a long connection mode is established through Websocket communication technology, so that the data can be pushed to the web page for display in real time.

[0026] In one embodiment of the present invention, after a message channel in a long connection mode is established through the Websocket communication technology, a heartbeat packet is set between the server and the client to maintain the connection state.

[0027] In one embodiment of the present invention, a message channel in a long connection mode is established by using Websocket communication technology, specifically including:

[0028] The web page initiates the initial request and connects with the backend program to establish a message channel in a persistent connection mode.

[0029] The backend program receives the request instruction, saves the request instruction and the ID in the request instruction into an internal memory, and returns a connection success message to the web page.

[0030] In one embodiment of the present invention, the ID design rules in the request instruction are three levels: province, city, and county.

[0031] In one embodiment of the present invention, the backend program encapsulates the message push object so that when a user accesses it, only a message channel based on the Websocket communication technology is established with the backend.

[0032] The above technical solution of the present invention has the following beneficial effects compared with the prior art:

[0033] The power grid resource information display method described in the present invention first serializes the acquired data and then traverses and stores it in the Redis cache middleware in a fixed manner. Then the business end obtains the original data from the Redis cache middleware, filters out the required data, and pushes it to the web page for display through Websocket after business processing. After the optimization of the above steps, the message consumption speed is greatly improved, the problem of message accumulation in Kafka is solved, and the complete consumption of Kafka messages is completed. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0035] Figure 1 A flowchart of a method for displaying power grid resource information provided in a preferred embodiment of the present invention;

[0036] Figure 2 A flowchart of the steps of pushing target data to a web page for display via Websocket after business processing provided in a preferred embodiment of the present invention;

[0037] Figure 3A flowchart of the steps of displaying power transmission data on a page through the Redis cache middleware provided in a preferred embodiment of the present invention;

[0038] Figure 4 This is a flowchart of the steps of displaying weather warning information on a page by combining Rocketmq message middleware and Redis cache middleware provided in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0039] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0040] Reference Figure 1 As shown, Figure 1 Flow chart of a method for displaying power grid resource information provided by an embodiment of the present invention. Figure 1 As shown, the method provided by the embodiment of the present invention includes the following steps:

[0041] S101: Acquire real-time power grid resource information data, push and store the real-time power grid resource information data in Kafka; the real-time power grid resource information data includes active power data, current data and load rate data.

[0042] S102: Monitor the queue storing data in the Kafka and consume in real time and store in Redis cache middleware for subsequent business use.

[0043] S103: Obtain original data from the Redis cache middleware, and filter out target data.

[0044] For example, real-time active power and current use the source end to push real-time data and store it in Kafka. The platform end listens to the queue for storing data and consumes it in real time and stores it in Redis cache middleware for subsequent business use. However, the problem is that the message volume is too large. The source end stores about 3,500 data in Kafka per second. Each data contains instantaneous values ​​of multiple categories. The business end needs to serialize the original data and then traverse and filter it, which leads to a low speed of data consumption on the business end. A large number of messages are accumulated in Kafka, which leads to data display delays on the system platform. After multiple tests and evaluations, we found that the bottleneck was mainly in Redis, and the secondary problem was that the consumption mode did not meet the scenario of large data volume. Therefore, we came up with the optimization plan: 1) Increase the partition of the current message topic from 1 to 3, and increase the number of consumers to 3, horizontal expansion, and improve the consumption capacity of the business end; 2) Change the message consumption mode from single consumption to batch consumption, reducing the number of data acquisition and processing; 3) Change the data storage mode in Redis cache to batch storage, reducing the number of interactions between the program and Redis and improving the processing speed; 4) The business is divided into data preprocessing and business logic processing: the platform first serializes the acquired data and then traverses it to store it in the Redis cache middleware in a fixed way, and then the business end obtains the original data from the Redis cache middleware, filters out the required data, and then pushes it to the web page for display through Websocket after business processing. After the optimization of the above 1)-4) steps, the message consumption speed is greatly improved, the problem of message accumulation in Kafka is solved, and the complete consumption of Kafka messages is completed.

[0045] Specifically, Kafka is a distributed push-subscribe-based message system, which has the characteristics of fast, scalable and persistent. Its biggest feature is that it can process a large amount of data in real time to meet various demand scenarios: such as hadoop-based batch processing systems, low-latency real-time systems, and storm / spark streaming processing engines. Kafka has the following advantages: high throughput and low latency; Kafka can process hundreds of thousands of messages per second, and its minimum latency is only a few milliseconds; Scalability: Kafka cluster supports hot expansion; Persistence and reliability: Messages are persisted to local disks, and data backup is supported to prevent data loss; Fault tolerance: Node failures in the cluster are allowed (if the number of copies is n, n-1 node failures are allowed); High concurrency: Supports thousands of clients to read and write at the same time. In the process of platform message consumption, the problem of too fast message production speed and slow consumption speed leading to platform display data delay is encountered. The present invention adopts multi-threaded batch consumption, serializes data, stores it in batches in redis cache middleware, and then obtains the latest data from redis cache middleware for screening, processing and display at regular intervals to solve the problem of delayed data display caused by message accumulation.

[0046] S104: After the target data is processed by the business, it is pushed to the web page through Websocket for display.

[0047] For example, data is pushed to the web page through Websocket in real time for display. Traditional web programs are all in the form of "question and answer". The client sends an HTTP request to the server, and the server returns an HTTP response to the client. In this case, the server is the passive party. If the client does not actively initiate a request, the server cannot actively respond to the client. If the back-end data needs to be changed, the program is implemented in such a way that the web program initiates an HTTP request to query whether there is any data change through polling, and displays the data if it is obtained. However, the problem brought about by this is: if the module with low data update frequency frequently initiates requests and wastes resources; the data response is not timely, and the data cannot be responded to in time, and a request to obtain data can only be initiated after the polling time arrives.

[0048] In some possible implementations, such as Figure 2 As shown, in step S104, after the target data is processed by the business, it is pushed to the web page of the web page through Websocket for display, including:

[0049] S201: Displaying the power transmission data on a page through the Redis cache middleware;

[0050] S202: Combine Rocketmq message middleware and Redis cache middleware to display weather warning information on a page.

[0051] In some possible implementations, such as Figure 3 As shown, the power transmission data is displayed on the page through the Redis cache middleware, specifically including:

[0052] S211: Acquire initial basic data related to electricity, and integrate the initial basic data to obtain target basic data that conforms to a preset data format;

[0053] S212: storing the target basic data in the Redis cache middleware in the form of List;

[0054] S213: receiving a request instruction sent by a user on a web page through a backend server and obtaining target basic data within a target range from the Redis cache middleware;

[0055] S214: acquiring the current data of the power line from the database through the target basic data, and integrating and transmitting the data to the web page;

[0056] S215: The web program parses and renders the current data and displays it on the target map.

[0057] For example, Redis cache middleware is used to quickly respond to the visualization display effect of power transmission based on the "One Map of the Power Grid" application. For example, the power grid resource information management and control platform obtains a large amount of initial basic data of all power stations, substations, power poles, lines, etc. from its system platform through a pre-published interface, and then integrates and processes them into the data format required by the platform, and stores them in the form of a List in the Redis cache middleware. The user requests the back-end server on the web page. After receiving the request, the back-end server quickly obtains the target basic data of the corresponding range from the Redis cache middleware, and obtains the current data of the power line from the database through the target basic data, and integrates and transmits it to the page on the web page. The web program parses and renders it on the map, thereby realizing the visualization effect of power transmission. The Redis cache middleware solves the problem of slow response speed when reading data from ordinary databases.

[0058] Specifically, Redis cache middleware is a high-speed cache database that stores data in memory. It is a key-value storage system. It can be used for caching, event publishing or subscription, high-speed queues and other scenarios. The database is written in ANSI C language, supports the network, provides direct access to strings, hashes, lists, queues, and collection structures, is based on memory, and can be persisted. Although Redis cache middleware is a key-value storage system, Redis cache middleware supports a lot of value storage types, such as strings, linked lists, sets, ordered sets, and hashes. Compared with ordinary relational databases, Redis cache middleware has the following advantages: based on memory, fast reading and writing speed; supports a variety of data types; supports key expiration function, which can be used to implement timed caching; supports publish / subscribe function, which can be used to implement message queues; supports transaction function, which can ensure the transactionality of multiple commands; supports pipeline function, which can process commands in batches; supports Lua script function; supports cluster sharding and data replication function; supports memory data persistence hard disk function.

[0059] In some possible implementations, such as Figure 4 As shown in the figure, the meteorological warning information is displayed on the page by combining Rocketmq message middleware and Redis cache middleware, including:

[0060] S221: Send the weather warning information data to Rocketmq message middleware;

[0061] S222: The platform consumes the weather warning information data from the Rocketmq message middleware according to the preset time;

[0062] S223: Processing the meteorological warning information data to store the processed meteorological warning information data in the format of load business into the Redis cache middleware;

[0063] S224: the web page initiates a request instruction to obtain meteorological information data, so that the back-end program obtains the processed meteorological warning information data from the Redis cache middleware and returns it to the web page;

[0064] S225: parsing and rendering the processed weather warning information data through a web program, and displaying it on a target map.

[0065] For example, Rocketmq+Redis is used to realize the visualization display of weather warning information on the map. The source data of weather warning information such as temperature and precipitation have the characteristics of large data volume, accuracy, no loss, and fast response. Ordinary databases are difficult to store and read. Therefore, the source end is used to send data to Rocketmq message middleware, the platform end consumes data from Rocketmq regularly, and then stores the processed data in the format that conforms to the business into Redis cache middleware. After that, the web page initiates a request to obtain data, and the back-end program quickly obtains data from Redis cache middleware and returns it to the web page. The page rendering and display of the web page realize the fast response display of weather information on the platform; Rocketmq is a distributed message middleware with low latency, high performance and reliability, trillion-level capacity, and flexible scalability. Rocketmq can provide asynchronous decoupling and peak-to-valley-filling capabilities for distributed application systems, and also has the characteristics of massive message accumulation, high throughput, reliable retry, etc. required by Internet applications, and a single machine supports the publishing and consumption of millions of messages per second.

[0066] Furthermore, Rocketmq has the following advantages:

[0067] High reliability: Supports persistent storage of messages to prevent message loss; supports master-slave mode and asynchronous replication to avoid single point of failure.

[0068] Scheduled messages: Supports scheduled messages and delayed messages, and can send and consume messages on a scheduled or delayed basis.

[0069] Batch messages: Support batch sending and consumption of messages to improve throughput.

[0070] Message filtering: Supports tag-based message filtering mechanism, and consumers can specify tags of interest for filtering.

[0071] Sequential messages: A strictly sequential message sending and consumption solution used to solve business scenarios with strong dependencies or sequence.

[0072] Message query: Supports message query based on key attributes of messages.

[0073] Good scalability: It adopts a distributed architecture and can linearly scale message throughput.

[0074] Rich access protocols: Provides a variety of message receiving protocols such as OpenMessaging, JMS, etc., to facilitate docking with different systems.

[0075] Rich language SDKs: SDKs are provided for multiple languages ​​such as Java, C++, Python, etc., covering mainstream development languages.

[0076] Operation and maintenance friendly: It provides a variety of operation and maintenance commands and monitoring indicators to facilitate users to operate and monitor RocketMQ clusters.

[0077] In some possible implementations, after the target data is processed by business, a message channel in a long connection mode is established through Websocket communication technology to push the data to a web page for display in real time.

[0078] In some possible implementations, after a message channel in a long connection mode is established through the Websocket communication technology, a heartbeat packet is set between the server and the client to maintain the connection state.

[0079] In some possible implementations, a message channel in a long connection mode is established through Websocket communication technology, specifically including:

[0080] The web page initiates the initial request and connects with the backend program to establish a message channel in a persistent connection mode.

[0081] The backend program receives the request instruction, saves the request instruction and the ID in the request instruction into an internal memory, and returns a connection success message to the web page.

[0082] In some possible implementations, the ID design rules in the request instruction are three levels: province, city, and county.

[0083] In some possible implementations, the backend program encapsulates the message push object so that when a user accesses it, only a message channel based on the Websocket communication technology is established with the backend.

[0084] Exemplarily, the Websocket communication technology provided by the present invention builds a message push framework. The web page initiates a request for the first time, establishes a message channel in a long connection mode after establishing a connection with the back-end program, and the back-end program saves the request instruction and the id in the request instruction in the internal memory after receiving the request, and returns a successful connection message to the web page, so that the message channel in the long connection mode is successfully established. Among them, the id design rule is "province: city: county" three levels, the back end encapsulates the message push object, ensures one user access, and only establishes a Websocket request with the back end, which brings the following benefits: reducing the link with the back end, thereby reducing resource consumption; the request format is fixed, the web page end is easy to parse and process, and the difficulty of parsing is reduced; the same message can be pushed to different users at the same time, and the push efficiency is high. When the back-end server receives the data, it formats the legal data into a message object for push after preprocessing, and after processing the id when it is established, screens out the province, city, and county that need to be pushed and obtains the corresponding session channel, pushes the message object to the web page, and the page parses and displays the data, thereby realizing the timely and accurate push of the message to all required user pages.

[0085] It should be noted that Websocket is a network communication protocol that supports two-way communication. The server can actively push information to the client, and the client can also actively send information to the server. It is a type of server push technology. In order to maintain a stable long connection of Websocket, after the connection is established, the server and the client need to maintain the connection status through heartbeat packets to prevent the connection from being cut off due to a long period of no data transmission.

[0086] Specifically, Websocket is built on the TCP protocol, and the server-side implementation is relatively easy; Websocket has good compatibility with the HTTP protocol, and the default ports are also 80 and 443, and the HTTP protocol is used in the handshake stage, so it is not easy to be blocked during the handshake and can pass through various HTTP proxy servers; the Websocket data format is relatively lightweight, with low performance overhead and efficient communication; Websocket can send text or binary data (blob objects or Arraybuffer objects); the received data type can be specified using binaryType to explicitly specify the received binary data type; Websocket has no homology restrictions, and the client can communicate with any server; the Websocket protocol identifier is ws (handshake http) (if encrypted, it is wss (tcp + TLS)), and the server URL is the URL.

[0087] Furthermore, the Websocket technology provided by the present invention has the following advantages:

[0088] Two-way communication: The Websocket protocol supports two-way communication, making communication between the server and the client more convenient and faster.

[0089] Real-time: Since the Websocket protocol uses a single TCP connection for full-duplex communication, it provides real-time communication, making the communication between the server and the client faster.

[0090] Less communication overhead: Compared with the HTTP protocol, the Websocket protocol has less communication overhead because the HTTP protocol needs to frequently establish and disconnect connections between requests and responses.

[0091] Scalability: The Websocket protocol can be easily extended to meet the needs of more different applications.

[0092] In a specific implementation, the power grid resource information display method provided by the present invention can build a power grid resource information production control platform based on the power grid resource business middle platform and the power grid one map, and adopt microservices and micro-application architectures to achieve real-time push of fault information, crisis defect information, meteorological warning information, etc. to the large screen for display. Then, on the one hand, in terms of innovation and breakthrough, the full amount of information collection, full penetration, and full-time feedback of the production control process are achieved, the penetration of production management is improved, and the foundation of safe production is fully consolidated; and based on the map application support capabilities of the "power grid one map", the static and dynamic power grid graphical display and spatial analysis capabilities are used to monitor spare parts, vehicle trajectories, risk warnings and other information in real time, and support information, process, risk, command and other operations on the map; at the same time, support the three-level coordinated command system of the headquarters, provincial companies, and municipal (ultra-high voltage) companies, and further strengthen the information collection, analysis and judgment, emergency response and coordination and command capabilities of major events in the equipment management process. On the other hand, in terms of economic benefits, based on a map of the power grid, it comprehensively displays information such as the distribution of meteorological disasters and power line transmission, presents a panoramic view of the affected lines, stations and user ranges, assists in decision-making, avoids waste of resources, and improves the company's operating benefits; by automatically pushing information on emergency materials, instruments, spare parts and other operational resources in nearby warehouses, it assists in cross-regional resource allocation, accurately analyzes the allocation of materials and personnel, and saves manpower and material resources. In terms of management benefits, it can strengthen safety supervision, standardize the command center management system, improve management efficiency, standardize the production control system, strengthen the power supply command for major disasters and important activities, deepen the implementation of standardized and lean management requirements, and improve the level of command and control. At the same time, it can realize information sharing, realize multi-dimensional data fusion analysis, and further improve management efficiency through the reasonable allocation of emergency resources. In terms of social benefits, it improves the safety, reliability and economy of production control work, meets the requirements of intelligence, energy saving and environmental protection for the management of the command center and related units, and adapts to the needs of sustainable and stable development of society. At the same time, through the equipment health status assessment based on big data, it deepens the promotion work, realizes the dynamic evaluation and intelligent diagnosis of various equipment, and warns the equipment that may fail in advance, reduces the social impact caused by sudden equipment failure, and ensures the stable operation of power business.

[0093] To sum up, the power grid resource information display method provided by the present invention can be used on the power grid resource information production control platform based on the map application support capability of "one map for the power grid", and use static and dynamic power grids to graphically display power grid resource information, so as to perform various map operations.

[0094] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0095] The present application is described with reference to flowcharts and / or block diagrams of methods according to embodiments of the present application.

[0096] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A method for displaying power grid resource information, characterized in that: include: Acquire real-time power grid resource information data, and push and store the real-time power grid resource information data to Kafka; The real-time power grid resource information data includes active power data, current data and load rate data; Monitor the queue storing data in the Kafka and consume it in real time and store it in the Redis cache middleware for subsequent business use; Obtaining original data from the Redis cache middleware and filtering out target data; After the target data is processed by the business, it is pushed to the web page through Websocket for display; After the target data is processed by the business, it is pushed to the web page through Websocket for display, including: The power transmission data is displayed on a page through the Redis cache middleware; Combine Rocketmq message middleware and the Redis cache middleware to display weather warning information on the page; The power transmission data is displayed on the page through the Redis cache middleware, specifically including: Acquire initial basic data related to electricity, and integrate the initial basic data to obtain target basic data that conforms to a preset data format; The target basic data conforming to the preset data format is stored in the Redis cache middleware in the form of List; Receive a request instruction sent by a user on a web page through a backend server and obtain target basic data within a target range from the Redis cache middleware; Obtaining the current data of the power line from the database through the target basic data within the target range, and integrating and transmitting it to the web page; The web program analyzes and renders the current data and displays it on the target map; Combine Rocketmq message middleware and the Redis cache middleware to display weather warning information on the page, including: Send weather warning information data to Rocketmq message middleware; The platform consumes the weather warning information data from the Rocketmq message middleware according to the preset time; Processing the meteorological warning information data to store the processed meteorological warning information data in the Redis cache middleware in a format that complies with the business; The web page initiates a request instruction to obtain meteorological information data, so that the back-end program obtains the processed meteorological warning information data from the Redis cache middleware and returns it to the web page; The processed weather warning information data is parsed and rendered through a web page program and displayed on a target map.

2. The method for displaying power grid resource information according to claim 1, characterized in that: After business processing, the target data establishes a message channel in a long connection mode through Websocket communication technology, so as to push the data to the web page in real time for display.

3. The method for displaying power grid resource information according to claim 1, characterized in that: After establishing a message channel in long connection mode through Websocket communication technology, a heartbeat packet is set between the server and the client to maintain the connection status.

4. The method for displaying power grid resource information according to claim 1, characterized in that: The message channel in long connection mode is established through Websocket communication technology, including: The web page initiates the initial request and connects with the backend program to establish a message channel in a persistent connection mode. The backend program receives the request instruction, saves the request instruction and the ID in the request instruction into an internal memory, and returns a connection success message to the web page.

5. The method for displaying power grid resource information according to claim 4, characterized in that: The ID design rules in the request instruction are province, city and county levels.

6. The method for displaying power grid resource information according to claim 4, characterized in that: The backend program encapsulates the message push object so that when a user accesses it, only one message channel based on the Websocket communication technology is established with the backend.

Citation Information

Patent Citations

  • Redis pipeline communication-based message passing method and system

    CN105630913A

  • Internet of Things data real-time calculation service system and construction method

    CN115203184A

  • Substation Internet of Things operation and maintenance method, system and device and readable storage medium

    CN116152013A

  • Visual power supply early warning system for power transmission of photovoltaic power station

    CN116455063A

  • Dynamic performance adjustment method and system based on negative feedback mechanism of power internet of things

    CN116795534A