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

Distributed session processing system and method based on micro-service architecture

A processing method and microservice technology, applied in the field of distributed session processing system based on microservice architecture, can solve problems such as unified cache pressure, affecting other applications reading, etc., to ensure consistency, reduce strong dependencies, and allocate access The effect of request pressure

Active Publication Date: 2021-08-13
大汉软件股份有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since it is session sharing, if an application modifies the session, it will affect the reading of other applications
And with more and more applications, the pressure on the unified cache becomes very large and becomes a bottleneck

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 processing system and method based on micro-service architecture
  • Distributed session processing system and method based on micro-service architecture
  • Distributed session processing system and method based on micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the embodiments and accompanying drawings.

[0029] This embodiment provides a method for sharing session state between microservice applications centered on unified user services. The session provided by this embodiment is not a middleware session nor a spring-session.

[0030] Such as figure 2 As shown, the unified user service is provided. The login module in the unified user service stores the logged-in user information in the dedicated memory cache using the VK method, where K is the ACCESS-TOKEN, the ACCESS-TOKEN uses the login name, and the current time is represented by the HMAC256 algorithm. Generated, V is to abstract the login user information that originally needs to be stored in the session, and store it in the memory cache in the hash data structure according to the attributes. Business microservices read user in...

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 session processing system and method based on micro-service architecture. According to the distributed session processing method based on the micro-service architecture, a user logs in through a unified user service, and the unified user service stores and manages login user information; the unified user service generates an access token; the unified user service stores login user information into a memory cache according to attributes; when the user uses the business micro-service, the business micro-service carries the access token to the unified user service to verify whether the current user logs in or not; after the verification is passed, the business micro-service reads the memory cache of the unified user service according to the attribute, and synchronizes the login user information to the session of the business; the login user only modifies the memory cache of the business micro-service when operating the session in the business micro-service; and the same business micro-service is deployed in a distributed manner, and the memory cache of the shared business micro-service is changed.

Description

technical field [0001] The invention belongs to the technical field of application architecture, and in particular relates to a distributed session processing system and method based on a microservice architecture. Background technique [0002] Application architecture technology has experienced at least 4 generations of development from monolithic applications to micro-service technology architecture. At present, micro-service technology architecture has become the mainstream architecture of JAVA software development. Under the microservice architecture, the original application is split into multiple single-function applications. For example, the original system has 10 business functions of its own, as well as user login, management, etc., and the theory of 10 business functions under the microservice The above will be split into 10 independent microservice applications, and the built-in user login and management will also be independently formed into a microservice applic...

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
IPC IPC(8): H04L29/08
CPCH04L67/14H04L67/10H04L67/568
Inventor 王知明李杰
Owner 大汉软件股份有限公司
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