Real-time data subscription method based on HTTP protocol

An HTTP protocol, real-time data technology, applied in electrical components, transmission systems, etc., can solve the problems of inability to obtain changing data and large data delay, simplify data acquisition methods, improve data response timeliness, and enhance platform horizontal expansion capabilities Effect

Active Publication Date: 2018-12-14
ZHEJIANG SUPCON INFORMATION TECH CO LTD
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a real-time data subscription method based on the HTTP protocol in order to overcome the shortco

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Real-time data subscription method based on HTTP protocol
  • Real-time data subscription method based on HTTP protocol
  • Real-time data subscription method based on HTTP protocol

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0032] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0033] like figure 1 The embodiment shown is a real-time data subscription method based on the HTTP protocol, including a gateway server 1, a plurality of data servers 2 and a plurality of clients 3, each client is connected to the gateway server for data, and each data server is connected to the gateway. Server data connection; gateway server includes reverse proxy service module 11 and KV cache service module 12, reverse proxy service module and KV cache service module are used to implement routing strategy; each data server includes data service module 21, data service module Attached to the real-time database service, it can accept HTTP subscription, query requests, and upload data;

[0034] like figure 2 As shown, the external client initiates an HTTP subscription request to the reverse proxy service module, and the header of the HTTP sub...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a real-time data subscription method based on HTTP protocol, by linking the ID of a device to be accessed by an external client in the form of a link suffix, through the GET method of the HTTP protocol, the request is sent to the reverse proxy service module of the Internet of Things platform, and the reverse proxy service module routes the request of the required equipmentto the correct data service through the pre-configured routing strategy, and the data service returns a streaming data with Response Transfer Encoding type being chunked, the first packet is the current latest JSON data of the device, and the subsequent data is the change data. Each time the data of the device changes, the changed JSON data is pushed into the Response stream. The invention has the characteristics of enhancing the lateral capacity expansion ability of the platform, supporting the change uplink transmission, and improving the data response time efficiency.

Description

technical field [0001] The invention relates to the technical field of data subscription, in particular to a real-time data subscription method based on the HTTP protocol. Background technique [0002] In the traditional industrial real-time database system, although it provides high-precision and fast-response data subscription methods, it is mostly based on the original TCP streaming protocol, which cannot be directly operated. It needs to encapsulate more complex interfaces and distribute them to clients in the form of SDK When using, the user is limited by the language used by the SDK (such as the SDK in C language, which can only be accessed in the form of C), and the learning cost and development cost are relatively high. [0003] In traditional industrial real-time database systems, all equipment data is usually stored in a single node, and the capacity cannot be expanded horizontally by expanding the host node, and the capacity can only be increased by continuously i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08
CPCH04L67/02H04L67/51H04L67/56
Inventor 袁超张伟何琦枫王陈淼杨振伟姜雪明
Owner ZHEJIANG SUPCON INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products