Session synchronization method based on instant copying among cluster nodes

A session synchronization and inter-node technology, applied in electrical components, transmission systems, etc., can solve problems such as increasing the difficulty of system development and deployment, increasing the risk of exposing user information, and frequently operating databases, achieving good application prospects and reducing development costs. and deployment costs, the effect of resolving performance bottlenecks

Active Publication Date: 2016-04-06
STATE GRID CORP OF CHINA +3
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The main problem is that each request from the client needs to carry complete session information. If the session information is too large, it will take too long for the request to reach the server, which will affect the access efficiency; at the same time, since each request needs to carry Complete session information will increase the risk of exposing user information
The main problem of this solution is: If the access volume is too large, the frequent operation of the database will easily cause performance bottlenecks
The main problem of this solution is: since all session information is stored on the cache server, an additional cache server must be added during system deployment, and all operations on sessions must be performed on the cache server, which undoubtedly increases the Difficulty of system development and deployment

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
  • Session synchronization method based on instant copying among cluster nodes
  • Session synchronization method based on instant copying among cluster nodes
  • Session synchronization method based on instant copying among cluster nodes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be further described below in conjunction with the accompanying drawings.

[0024] like figure 1 As shown, the session synchronization method based on instant copy between cluster nodes of the present invention comprises the following steps,

[0025] Step (A), when the client accesses the cluster service for the first time, the cluster node currently serving creates a session for the client and saves it in the memory of the cluster node, and feeds back the session identification information to the visiting client. The client receives and saves the session identification information, and the session identification information includes the session ID and the current service cluster node IP;

[0026] Step (B), when the client accesses the cluster service again, it needs to carry the session identification information, and the cluster node of the current service parses out the cluster node IP and session ID of the session according to the receive...

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 session synchronization method based on instant copying among cluster nodes. Session identification information is stored in a client, and storage of complete session information in the client is avoided, so that the potential safety hazard of exposure of user identity information can be prevented; meanwhile, in a process of sending a request to a server by the client, only the session identification information, instead of the complete session information, is carried, so that a volume of transmitted data is greatly reduced, and access frequency of the client to the server is improved; the session information is synchronized among the cluster nodes without being acquired from a database, so that a performance bottleneck caused by frequent use of the database is avoided; and a special session caching server also does not need to be used, so that development and deployment cost is reduced, and the session synchronization method has a wide application prospect.

Description

technical field [0001] The invention relates to the technical field of distributed architecture, and relates to a session synchronization method based on instant copy between cluster nodes. Background technique [0002] In the distributed architecture, the server uses a cluster environment. When the client accesses the server, how to synchronize the session information among the cluster nodes. At present, more mature solutions include: session synchronization based on cookies, session synchronization based on database, and session synchronization based on distributed For cached session synchronization, the above three methods all have deficiencies, as follows: [0003] 1. The session synchronization scheme based on Cookies, the steps are as follows, (1) When the client accesses the cluster service for the first time, the current cluster node creates session information for the client, saves the session information in the memory of this node, and saves the session information...

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 Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/1095H04L67/146H04L65/40
Inventor 曹海涛胡牧蒋厚明王俊罗玉盘王海涛张凯顾学海陈星明
Owner STATE GRID CORP OF CHINA
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