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

A distributed state synchronization method based on http and websocket

A state synchronization and distributed technology, applied in the field of data communication, can solve problems such as limited scalability and insufficient simplicity, and achieve the effects of simple deployment, simplified access costs, and easy expansion.

Active Publication Date: 2022-05-31
FOCUS TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Patents CN2019104677729-distributed push method for single-user multi-site login based on websocket, CN2019113338150-distributed server cluster interaction method and device based on WebSocket, both provide technical solutions based on distributed scenarios, but need to use messages or storage , not concise enough for practical application
At the same time, the existing technology only uses one protocol at the same time, and the scalability is limited

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
  • A distributed state synchronization method based on http and websocket
  • A distributed state synchronization method based on http and websocket
  • A distributed state synchronization method based on http and websocket

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] Step S7: Obtain the WebSocket server node that has established a WebSocket session with the client.

[0063] The current time in step S1-step S8 is taken from the current number of seconds after 0:00:00 on January 1, 1970.

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 distributed state synchronization method for HTTP and WebSocket collaboration, which is characterized in that it includes: step 1: WebSocket server cluster initialization, step 2: reconstructing the URL of the WebSocket server cluster, and step 3: assigning a URL to each client A WebSocket session, step 4: check whether the long connection is normal, step 5: determine the business status change request; step 6: call the business server to process the request, and feed back the result to the client, step 7: send the request to the WebSocket server Node, step 8: close the long connection. Using the WebSocket server instead of the original client to send heartbeat detection, without using messages or external storage, it has the effect of simple deployment and easy expansion, and at the same time solves the functional requirements of different scenarios.

Description

A Distributed State Synchronization Method for HTTP and WebSocket Collaboration technical field The present invention relates to the technical field of data communication, particularly relate to a kind of distributed distributed coordination of HTTP and WebSocket State synchronization method. Background technique In the real-time communication fields such as audio and video, screen sharing, for efficient collaboration between users, a real-time state is required. Dynamic synchronization system, compatible with browsers and APPs at the same time. WebSocket uses a long connection, which can realize the instant connection between the server and the client. time communication, but the client requests the server, since the operation result cannot be sensed in real time by using asynchronous messages, the operation may fail Wrong; using the WebSocket protocol alone requires an additional authentication mechanism. In the aspect of WebSocket long connection, the prior art...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/1097H04L67/146H04L67/1095H04L69/16
CPCH04L67/025H04L67/1097H04L67/146H04L67/1095H04L69/162
Inventor 柳栋淼黄蓉邬江明
Owner FOCUS TECH
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