Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device based on NOSQL distributed session management

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

Active Publication Date: 2021-09-03
CHINA MOBILE GROUP ZHEJIANG +1
View PDF0 Cites 0 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
  • A method and device based on NOSQL distributed session management
  • A method and device based on NOSQL distributed session management
  • A method and device based on NOSQL distributed session management

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 present invention provides a method and device for distributed session management based on NoSQL, the method includes: receiving a session request sent by a client, and obtaining the operation type of the session request and the session ID of the session request in the session request; if the session If the request is a write operation, the session request is routed to the master node of the cluster server for the master node to store the session ID and session data carried by the session request and for the master node to synchronize the session ID and session data to each node of the cluster server slave node; if the session request is a read operation, after judging that the session data corresponding to the sessionID has been synchronized, route the session request to the slave node according to the preset load balancing strategy for the client The terminal reads the session data corresponding to the sessionID on the slave node according to the sessionID. The embodiments of the present invention can ensure the consistency of data synchronization, and can also provide high-performance services in high-concurrency scenarios with high business performance.

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 Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/14H04L67/2866H04L67/562
Inventor 李海传郭岳方炜余兆成罗琼郑海朋陈润泉刘兆祥
Owner CHINA MOBILE GROUP ZHEJIANG
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More