CN109309672B - Web-based space data real-time pushing multi-task scheduling method - Google Patents

Web-based space data real-time pushing multi-task scheduling method Download PDF

Info

Publication number
CN109309672B
CN109309672B CN201811080559.4A CN201811080559A CN109309672B CN 109309672 B CN109309672 B CN 109309672B CN 201811080559 A CN201811080559 A CN 201811080559A CN 109309672 B CN109309672 B CN 109309672B
Authority
CN
China
Prior art keywords
data
server
push
task
pushing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811080559.4A
Other languages
Chinese (zh)
Other versions
CN109309672A (en
Inventor
夏东风
王祥浩
靳志宾
王良佰
李小欢
张欢欢
吕占朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Haixing Zeke Information Technology Co ltd
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Original Assignee
Hangzhou Haixing Zeke Information Technology Co ltd
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Haixing Zeke Information Technology Co ltd, Nanjing Haixing Power Grid Technology Co Ltd, Hangzhou Hexing Electrical Co Ltd, Ningbo Henglida Technology Co Ltd filed Critical Hangzhou Haixing Zeke Information Technology Co ltd
Priority to CN201811080559.4A priority Critical patent/CN109309672B/en
Publication of CN109309672A publication Critical patent/CN109309672A/en
Application granted granted Critical
Publication of CN109309672B publication Critical patent/CN109309672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a space data real-time pushing multitask scheduling method based on Web, which comprises the following steps: (1) after login authentication of a client browser, establishing a WebSocket long-chain connection channel with a server, and sending a space data request parameter to the server; (2) the server side monitoring task monitors data in the space database, and after the changed data are monitored, the changed data are stored in the basic cache pool according to a specified storage strategy; (3) the server side schedules a data processing task at regular time, the data processing task fetches data from the basic cache pool, different data processing methods are called according to data request parameters, the processed data are stored in a push cache pool, and a push notification is sent to the data push task; (4) and the server data pushing task acquires data from the pushing cache pool, pushes the data to the client and waits for the changed data pushing notification again. The invention enhances the real-time performance of data and improves the refreshing efficiency of the client browser.

Description

Web-based space data real-time pushing multi-task scheduling method
Technical Field
The invention relates to the technical field of information pushing, in particular to a space data real-time pushing multi-task scheduling method based on Web.
Background
In the existing GIS platform of the power distribution network, the state and related data of power supply equipment need to be displayed in a client browser in real time, and the requirement on real-time performance is high. In the prior art, a client sends a data request to a server regularly based on an HTTP (hyper text transport protocol), and the method cannot well coordinate the request frequency and the frequency of real-time data generation, so that the transmission burden of a network is increased to a certain extent or real-time updated data cannot be acquired in time.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a space data real-time pushing multi-task scheduling method based on Web, which can meet the real-time requirement of data.
In order to solve the technical problem, the invention provides a space data real-time push multitask scheduling method based on Web, which comprises the following steps:
(1) after login authentication of a client browser, establishing a WebSocket long-chain connection channel with a server, and sending a space data request parameter to the server;
(2) the server side monitoring task monitors data in the space database, and after the changed data are monitored, the changed data are stored in the basic cache pool according to a specified storage strategy;
(3) the server side schedules a data processing task at regular time, the data processing task fetches data from the basic cache pool, different data processing methods are called according to data request parameters, the processed data are stored in a push cache pool, and a push notification is sent to the data push task;
(4) and the server data pushing task acquires data from the pushing cache pool, pushes the data to the client and waits for the changed data pushing notification again.
Preferably, in step (1), after the client and the server establish the WebSocket link and send the request parameter, the WebSocket server triggers the onOpen method when the link is opened, automatically triggers the onMessage method when receiving a message sent by the client, triggers the onClose method when the link is closed, and triggers the onError method when an error occurs in the sending process. The problems of data synchronization delay and resource consumption are solved.
Preferably, in the step (2), the storage policy is specifically specified as: the method comprises the steps of firstly analyzing change data of the power supply equipment, grouping and integrating according to technical parameters and operating parameters of the power supply equipment to obtain a change data set, creating a corresponding cache region in a cache pool according to a data model of the power supply equipment in the set, and storing the data in the cache region.
Preferably, in the step (3), invoking different data processing methods according to the data request parameter specifically includes: if the request parameter contains a coordinate attribute, converting the coordinate attribute into a geographic geometric object in a geographic spatial information data exchange format based on a JavaScript object representation method; if the request parameter contains the unique equipment code and the related layer attribute, requesting a WFS (Web element service) service of a Geographic Information System (GIS) to acquire geographic information to obtain a geographic geometric object; if the request parameter contains the unique equipment code and the data layer attribute or the geographic geometric attribute, geographic information does not need to be acquired; after the request data is processed by the method, the data comprises geographic geometric objects, data filtering is carried out according to the geographic range currently displayed by a GIS (geographic information system), and the data in the current geographic range is reserved.
Preferably, in step (4), the data pushing task fetches data of a fixed size from the pushing cache pool each time, pushes the data to the corresponding client, waits for the changed data pushing notification again, and refreshes the corresponding device state data according to the data index after the client receives the pushed data.
The invention has the beneficial effects that: compared with the traditional method, the realization of the space data real-time pushing multi-task scheduling method based on Web obviously reduces the burden and network load of a server, enhances the real-time performance of data and improves the refreshing efficiency of a client browser.
Drawings
Fig. 1 is a schematic diagram of the principle of the present invention.
FIG. 2 is a schematic flow chart of the method of the present invention.
Detailed Description
As shown in fig. 2, a method for real-time pushing and multitasking scheduling of spatial data based on Web includes the following steps:
(1) after login authentication of a client browser, establishing a WebSocket long-chain connection channel with a server, and sending a space data request parameter to the server;
(2) the server side monitoring task monitors data in the space database, and after the changed data are monitored, the changed data are stored in the basic cache pool according to a specified storage strategy;
(3) the server side schedules a data processing task at regular time, the data processing task fetches data from the basic cache pool, different data processing methods are called according to data request parameters, the processed data are stored in a push cache pool, and a push notification is sent to the data push task;
(4) and the server data pushing task acquires data from the pushing cache pool, pushes the data to the client and waits for the changed data pushing notification again.
In the step (1), after the client and the server establish the WebSocket link and send the request parameter, the WebSocket server triggers the onOpen method when the link is opened, automatically triggers the onMessage method when receiving a message sent by the client, triggers the onClose method when the link is closed, and triggers the oneerror method when an error occurs in the sending process. The problems of data synchronization delay and resource consumption are solved.
In the step (2), the specified storage policy specifically includes: the method comprises the steps of firstly analyzing change data of the power supply equipment, grouping and integrating according to technical parameters and operating parameters of the power supply equipment to obtain a change data set, creating a corresponding cache region in a cache pool according to a data model of the power supply equipment in the set, and storing the data in the cache region.
In the step (3), the invoking of different data processing methods according to the data request parameters specifically includes: if the request parameter contains a coordinate attribute, converting the coordinate attribute into a geographic geometric object in a geographic spatial information data exchange format based on a JavaScript object representation method; if the request parameter contains the unique equipment code and the related layer attribute, requesting a WFS (Web element service) service of a Geographic Information System (GIS) to acquire geographic information to obtain a geographic geometric object; if the request parameter contains the unique equipment code and the data layer attribute or the geographic geometric attribute, geographic information does not need to be acquired; after the request data is processed by the method, the data comprises geographic geometric objects, data filtering is carried out according to the geographic range currently displayed by a GIS (geographic information system), and the data in the current geographic range is reserved.
In the step (4), the data pushing task fetches data with a fixed size from the pushing cache pool each time, pushes the data to the corresponding client, waits for the changed data pushing notification again, and refreshes the corresponding equipment state data according to the data index after the client receives the pushed data.
As shown in fig. 1, the system consists of three parts: client, server and spatial database. The client and the server communicate by using WebSocket and can mutually transmit data, the client transmits data request parameters to the server, the server analyzes the parameters, monitors corresponding data in the spatial database, processes the changed data and actively pushes the changed data to the client, and therefore the purpose of updating the state of client equipment in real time is achieved.
The invention realizes the real-time data push multitask scheduling method based on the WebSocket, once the WebSocket link is successfully established, the server uninterruptedly acquires the change data information and actively pushes the change data information to the client, thereby not only meeting the real-time requirement of the client on the data, but also reducing the burden of the invalid data transmission on the network.

Claims (5)

1. A space data real-time push multitask scheduling method based on Web is characterized by comprising the following steps:
(1) after login authentication of a client browser, establishing a WebSocket long-chain connection channel with a server, and sending a space data request parameter to the server;
(2) the server side monitoring task monitors data in the space database, and after the changed data are monitored, the changed data are stored in the basic cache pool according to a specified storage strategy;
(3) the server side schedules a data processing task at regular time, the data processing task fetches data from the basic cache pool, different data processing methods are called according to data request parameters, the processed data are stored in a push cache pool, and a push notification is sent to the data push task;
(4) and the server data pushing task acquires data from the pushing cache pool, pushes the data to the client and waits for the changed data pushing notification again.
2. The Web-based space data real-time push multitask scheduling method as claimed in claim 1, wherein in step (1), after the client and the server establish a WebSocket link and send a request parameter, the WebSocket server triggers an onOpen method when the link is opened, automatically triggers an onMessage method when a message sent from the client is received, triggers an onClose method when the link is closed, and triggers an oneror method when an error occurs in the sending process.
3. The method for real-time push multitask scheduling of spatial data based on Web according to claim 1, characterized in that in step (2), the specified storage policy is specifically: analyzing the change data of the power supply equipment, grouping and integrating according to the technical parameters and the operating parameters of the power supply equipment to obtain a change data set, creating a corresponding cache region in a cache pool according to a data model of the power supply equipment in the set, and storing the data in the cache region.
4. The method for real-time pushing and multitask scheduling of spatial data based on Web according to claim 1, wherein in step (3), the invoking of different data processing methods according to the data request parameter specifically includes: if the request parameter contains a coordinate attribute, converting the coordinate attribute into a geographic geometric object in a geographic spatial information data exchange format based on a JavaScript object representation method; if the request parameters contain the unique equipment codes and the related layer attributes, requesting a WFS (Web browser service) of the GIS to acquire geographic information to obtain geographic geometric objects; if the request parameter contains the unique equipment code and the data layer attribute or the geographic geometric attribute, geographic information does not need to be acquired; after the request data are processed by the method, the data comprise geographic geometric objects, data filtering is carried out according to the geographic range currently displayed by the GIS, and the data in the current geographic range are reserved.
5. The method according to claim 1, wherein in step (4), the data push task fetches data of a fixed size from the push cache pool each time, pushes the data to the corresponding client, waits for a data push notification again, and after receiving the pushed data, the client refreshes the corresponding device status data according to the data index.
CN201811080559.4A 2018-09-17 2018-09-17 Web-based space data real-time pushing multi-task scheduling method Active CN109309672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811080559.4A CN109309672B (en) 2018-09-17 2018-09-17 Web-based space data real-time pushing multi-task scheduling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811080559.4A CN109309672B (en) 2018-09-17 2018-09-17 Web-based space data real-time pushing multi-task scheduling method

Publications (2)

Publication Number Publication Date
CN109309672A CN109309672A (en) 2019-02-05
CN109309672B true CN109309672B (en) 2020-11-13

Family

ID=65223944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811080559.4A Active CN109309672B (en) 2018-09-17 2018-09-17 Web-based space data real-time pushing multi-task scheduling method

Country Status (1)

Country Link
CN (1) CN109309672B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995854B (en) * 2019-03-15 2022-02-25 网宿科技股份有限公司 Scheduling method, scheduling device, electronic equipment and storage medium
CN110113362B (en) * 2019-05-29 2021-07-06 杭州海兴泽科信息技术有限公司 MQTT protocol-based message real-time pushing method
CN110807229B (en) * 2019-10-14 2023-11-10 许继集团有限公司 Data updating method and server for WEB wiring diagram of distribution network main station system
CN112511595B (en) * 2020-11-04 2022-03-04 华云数据控股集团有限公司 Message pushing method and message service system
CN112769757A (en) * 2020-12-21 2021-05-07 长沙树根互联技术有限公司 Data pushing method, device and system
CN113391833B (en) * 2021-06-16 2023-03-24 杭州爱华仪器有限公司 Remote upgrading system and method for measuring amplifier
CN113596117B (en) * 2021-07-14 2023-09-08 北京淇瑀信息科技有限公司 Real-time data processing method, system, equipment and medium
CN115103002A (en) * 2022-06-20 2022-09-23 中国银行股份有限公司 Data interaction method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170634A (en) * 2011-04-18 2011-08-31 搜船(北京)网络技术有限公司 Mobile terminal location data caching and real-time updating system and method
CN103019838A (en) * 2012-11-14 2013-04-03 清华大学 Multi-DSP (Digital Signal Processor) platform based distributed type real-time multiple task operating system
CN105308570A (en) * 2013-06-24 2016-02-03 Fts电脑技术有限公司 Method and apparatus for data transfer to the cyclic tasks in a distributed real-time system at the correct time
CN106663341A (en) * 2014-03-13 2017-05-10 罗德-Iq有限责任公司 Device, system and method for aggregating networks and serving data from those networks to computers

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020087630A1 (en) * 2000-10-20 2002-07-04 Jonathan Wu Enhanced information and presence service
US8874848B2 (en) * 2011-09-30 2014-10-28 Net App, Inc. Intelligence for controlling virtual storage appliance storage allocation
JP5862628B2 (en) * 2013-09-18 2016-02-16 コニカミノルタ株式会社 Information processing apparatus and power-off control method for information processing apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170634A (en) * 2011-04-18 2011-08-31 搜船(北京)网络技术有限公司 Mobile terminal location data caching and real-time updating system and method
CN103019838A (en) * 2012-11-14 2013-04-03 清华大学 Multi-DSP (Digital Signal Processor) platform based distributed type real-time multiple task operating system
CN105308570A (en) * 2013-06-24 2016-02-03 Fts电脑技术有限公司 Method and apparatus for data transfer to the cyclic tasks in a distributed real-time system at the correct time
CN106663341A (en) * 2014-03-13 2017-05-10 罗德-Iq有限责任公司 Device, system and method for aggregating networks and serving data from those networks to computers

Also Published As

Publication number Publication date
CN109309672A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
CN109309672B (en) Web-based space data real-time pushing multi-task scheduling method
US8990429B2 (en) HTTP-based synchronization method and apparatus
CN104010031B (en) A kind of distributed cooperative algorithm for improving Web browser application efficiency
US20200287972A1 (en) Internet of things information system
CN104917833A (en) Asynchronous information processing method based on NIO request
CN103067230A (en) Method for achieving hyper text transport protocol (http) service monitoring through embedding monitoring code
Zhang et al. Research and development of real-time monitoring system based on WebSocket technology
CN103401946A (en) HTTP (hyper text transfer protocol) uploading acceleration method and system
CN103607423A (en) Distributed broadcast system based on WebSocket protocol
CN104243610A (en) Distributed file transmission service method
CN103780681A (en) High real-time Web application system and data real-time pushing method thereof
CN105871590A (en) Client data updating method, client and server
CN109151056B (en) Method and system for pushing messages based on Canal
CN105681333A (en) Binary-system-based network data transmission method and system
WO2015017482A1 (en) Messaging over http protocol for data exchange
CN103546562A (en) Distributed monitoring application server system
TW201316812A (en) Method of reducing message transmission between DM client and DM server and related communication device
CN103763380A (en) Method and system for demonstrating data synchronously
CN105701730A (en) Method for real-time data uploading of transformer station remote browsing through JSON technology
CN104468248A (en) Service performance monitoring method, reverse proxy server, statistical analysis server and system
Park et al. Study of HTML5 WebSocket for a Multimedia Communication
CN103036955A (en) Monitoring system and monitoring method of multimedia player terminal
CN110475215A (en) Message editing, transmission and the method for display and its server and terminal
CN103888535A (en) Position information processing method and system based on wechat platform
CN104754042A (en) Picture releasing and uploading acceleration method and system using CDN (content distribution network)

Legal Events

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