A distributed session processing system and method based on microservice 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-11-05
大汉软件股份有限公司
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
  • A distributed session processing system and method based on microservice architecture
  • A distributed session processing system and method based on microservice architecture
  • A distributed session processing system and method based on microservice 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 a microservice architecture. Based on the distributed session processing method of the microservice architecture, the user logs in through the unified user service, and the unified user service stores and manages the login user information; the unified user service generates an access token; the unified user service stores the login user information in the memory cache according to the attribute ;When the user uses the business microservice, the business microservice takes the access token to the unified user service to verify whether the current user is logged in; after the verification is passed, the business microservice reads the memory cache of the unified user service according to the attributes, and synchronizes the login user information to In the business session; the logged-in user’s operations on the session in the business microservice only modify the memory cache of the business microservice; the distributed deployment of the same business microservice shares the change of the memory cache of the business microservice.

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