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

Method for realizing session sharing and asynchronous-to-synchronous conversion by Redis

An asynchronous, user-terminal technology applied in the computer field to prevent data theft and protect login security

Active Publication Date: 2020-12-01
ANHUI YUNSEN INTERNET OF THINGS TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The present invention can realize multiple login protection operations, protect user login security, and prevent data from being stolen; the present invention realizes session sharing based on Redis, and solves the problem that different servers of the same domain name correspond to different sessions in load balancing. Load balancing realizes the method of asynchronous to synchronous

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
  • Method for realizing session sharing and asynchronous-to-synchronous conversion by Redis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0052] Such as figure 1 As shown, Redis implements session sharing and asynchronous to synchronous methods, including the following steps:

[0053] Step 1: User terminal A sends a request to access the system for the first time, and the LVS (load balancing) scheduling node distributes the request to server 1;

[0054] Step 2: Server 1 receives the request for accessing the system sent by user terminal A; said server 1 verifies whether user terminal A is credible, ...

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 method for realizing session sharing and asynchronous-to-synchronous conversion by Redis. The method comprises the following steps: a user terminal A sending a request for accessing a system for the first time, and an LVS scheduling node distributing the request to a server I; the user terminal A sending a request for accessing the system for the first time, and the LVS scheduling node distributing the request to the server I; the user terminal A sending the request for accessing the system again, and the LVS scheduling node distributing the request to the server II;the server II acquiing the session carried by the user terminal A and matching the session carried by the user terminal A with the session in the Redis. According to the invention, session sharing isrealized based on Redis, and the problem that different servers of the same domain name correspond to different sessions in load balancing is solved. Meanwhile, the asynchronous-to-synchronous conversion method is realized on the basis of Redis load balancing.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method for implementing session sharing and asynchronous to synchronous conversion by Redis. Background technique [0002] With the rapid development of Internet technology and the rapid popularization of smart devices, people's demand for network access is increasing day by day. For example, during the Double Eleven panic buying period, for example, the current COVID-19 has made it difficult to find a mask, and the centralized access of a large number of users has caused a huge burden on the server, making it extremely difficult for many users to access. Load balancing distributes a large number of visits to other servers, greatly reducing the load on the server and realizing a quick response to client requests. But there is also a problem in this way. Each server has its own session, and the user cannot guarantee to use the same server for each request. If session sharing ...

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/06H04L9/32H04L29/08
CPCH04L63/083H04L63/0861H04L63/101H04L9/3271H04L67/1001H04L67/5682
Inventor 王意德万森刘子龙毕凯强程腾
Owner ANHUI YUNSEN INTERNET OF THINGS 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