Distributed session management method and device based on NoSQL (Not Only SQL)

A distributed and processor technology, applied in the field of Internet communication, can solve the problems of data inconsistency and low client service performance, and achieve the effect of solving data loss and data inconsistency problems

Active Publication Date: 2019-03-29
CHINA MOBILE GROUP ZHEJIANG +1
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] In order to solve the problem of data inconsistency in the existing session management method and the problem of low client service performance in high concurrency scenarios, the embodiment of the present invention provides a NoSQL-based distributed session management method and device

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
  • Distributed session management method and device based on NoSQL (Not Only SQL)
  • Distributed session management method and device based on NoSQL (Not Only SQL)
  • Distributed session management method and device based on NoSQL (Not Only SQL)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033]In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the Some, but not all, embodiments are invented. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0034] figure 1 The NoSQL-based distributed Session management architecture diagram provided for the embodiment of the present invention. NoSQL (Not Only SQL), refers to a non-relational database. The NoSQL database consists of a NoSQL cluster, and the NoSQL cluster includes a master server and multiple slave servers. The NoSQL database provides session data reading a...

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 embodiment of the invention provides a distributed session management method and device based on a NoSQL (Not Only SQL). The method comprises the steps of receiving session requests sent by a client, and obtaining operation types of the session requests and session IDs of the session requests from the session requests; routing the session requests to a master node of a cluster server if the session requests are write operation, thereby enabling the master node to store the session IDs and session data carried by the session requests, and synchronize the session IDs and the session data toeach slave node of the cluster server; and if the session requests are read operation, after it is judged that the session data corresponding to the session IDs is synchronized completely, routing thesession requests to the slave nodes according to a preset load balancing policy, thereby enabling the client to read the session data corresponding to the session IDs from the slave nodes according to the session IDs. According to the embodiment of the invention, consistency when data synchronization is carried out can be ensured, service can be provided in a high concurrency scene at high performance, and business performance is high.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of Internet communication, and in particular to a NoSQL-based distributed session management method and device. Background technique [0002] Session is session control, which represents a session process between the application server and the client. It is generally used to control the timeout period of user login and store information related to user login. In the case of a single application server, session information can be stored in the jvm memory of the application server, and reading and writing are all done through the same application server. However, in a distributed environment, the client's requests will be load balanced to multiple application servers, so a mechanism is needed to solve the problem of session data sharing between application servers. [0003] Existing distributed session management solution 1: Session sharing based on browser cookies. This solution st...

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/14H04L67/2866H04L67/562
Inventor 李海传郭岳方炜余兆成罗琼郑海朋陈润泉刘兆祥
Owner CHINA MOBILE GROUP ZHEJIANG
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