User request processing method and device

A technology of user requests and processing methods, applied in the field of microservices, can solve problems such as complex verification methods and low verification efficiency, and achieve the effects of improving programming efficiency, simplifying verification methods, and improving verification efficiency

Pending Publication Date: 2022-07-01
北京国双千里科技有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, for a user request, the request needs to call microservice A, microservice A internally calls microservice B, and microservice B internally calls microservice C, then microservice ABC needs to perform user permission verification respectively at this time, The verification method is complex and the verification efficiency is low

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
  • User request processing method and device
  • User request processing method and device
  • User request processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

[0045] Under the current prevailing microservice architecture, a business process often needs to call multiple services. Since each service is stateless and independent, if the service involves access authorization verification, we have to do it separately on each service. For example, for a business that needs to call microservice A, microservice A internally calls microservice B, and microservice B calls microservice C, th...

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 provides a user request processing method and device, and the method comprises the steps: carrying out the verification of a user permission through a micro-service gateway based on the interface permission information of a target service interface for processing a user request during the verification of the user permission, and forwarding the user request to a target service interface of a target micro-service after the verification is passed, and the target micro-service processes the user request without verifying the user permission. Therefore, when the micro-service is called in a chained manner, the micro-service gateway only needs to verify the user permission once, and each micro-service does not need to verify the user permission any more, so that the verification mode is simplified, and the verification efficiency is improved. Furthermore, according to the invention, the micro-service does not need to perform user permission verification, so that the programming workload during micro-service writing can be reduced, and the micro-service programming efficiency can be improved.

Description

technical field [0001] The present invention relates to the field of microservices, and more particularly, to a method and device for processing user requests. Background technique [0002] Microservice architecture is a technique for deploying applications and services in the cloud. In the microservice architecture, user requests are sent to the microservice gateway. After the microservice gateway verifies the user's identity, it forwards the user request to the corresponding microservice. The microservice verifies the user permissions. After the verification is passed, the microservice The service handles the user request. [0003] In practical applications, a user request may involve chained calls of multiple microservices. Each microservice in the chained call is independent of each other. When chaining multiple microservices is called, each microservice needs to be executed separately. User permission verification. For example, for a user request, the request needs t...

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): G06F21/60
CPCG06F21/604G06F2221/2141
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