Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 shortcomings of the prior art that when the client needs to display data in real time, the data delay is relatively large and the changed data cannot be obtained

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

Embodiment Construction

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

[0033] Such as figure 1 The illustrated embodiment is a real-time data subscription method based on the HTTP protocol, comprising a gateway server 1, a plurality of data servers 2 and a plurality of clients 3, each client is data-connected to the gateway server, and each data server is connected to the gateway Server data connection; Gateway server comprises reverse proxy service module 11 and KV cache service module 12, and reverse proxy service module and KV cache service module are used for realizing routing strategy; Each data server all comprises data service module 21, and data service module Attached to the real-time database service, it can accept HTTP subscription, query request, and upload data;

[0034] Such as figure 2 As shown in , the external client initiates an HTTP subscription request to the reverse proxy service module, an...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products