Data API combined security control mechanism suitable for multi-element scene

A security control and combined technology, applied in the direction of electrical digital data processing, computer security devices, instruments, etc., can solve problems such as limited service carrying capacity, occupying more and more resources, and declining service capabilities, so as to improve reliability and Response performance, save waiting time and resources, improve response speed and performance effects

Pending Publication Date: 2021-11-05
国家电网有限公司客户服务中心
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the microservice architecture, a microservice is to complete a single business function. An application may consist of multiple microservices. The data interaction between microservices is completed through remote procedure calls. If a microservice in the call link If the call time is too long or unavailable, the entire microservice call link will occupy more and more resources, which will cause the system to crash; at the same time, the interface cannot be controlled, hot business burst requests, malicious request attacks, etc. will bring instantaneous requests The traffic volume surges, causing the service to occupy a large amount of CPU, memory and other resources, making other normal requests slow down or timeout, and even causing the server to go down; and some service interfaces require a large amount of calculations, and their service carrying capacity is limited. Concurrent access can easily degrade its service capability and even cause server downtime

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
  • Data API combined security control mechanism suitable for multi-element scene

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0019] Such as figure 1 As shown, the present invention provides a data API combined security control mechanism applicable to multiple scenarios, and the control mechanism includes the following steps:

[0020] The request invoked by the client is sent to the service gateway, and the service gateway forwards the request to the backend microservice according to the requested address, where the service gateway can parse out the caller's IP and caller's identity information from the request; call the current limiting interface to determine whether the application is If the flow limit is exceeded, the token bucket algorithm is used to implement flow-limiting control. The server generates an access ticket in the token bucket every second through a scheduled task. Each time the gateway receives a request, it deletes an access ticket in the caller's token bucket. If the ticket in the token bucket is empty, it means that the caller has sent too many requests within the time window, an...

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 data API combined security control mechanism suitable for a multi-element scene. The mechanism comprises the following steps: sending a request called by a client to a service gateway; enabling the service gateway to forward the request to a rear-end micro-service; calling a flow limiting interface to judge whether the application exceeds the flow limit or not; calling a fusing controller to judge whether the service is fused or not; if the service does not need to be fused, normally calling the micro-service; and if the fusing controller determines that the service needs to be fused, calling the current limiting controller, and performing service degradation return. According to the invention, the response speed and performance of the system are improved, and the waiting time and resources of the server are saved.

Description

technical field [0001] The invention relates to the field of micro-service system development, in particular to a data API combined security control mechanism applicable to multiple scenarios. Background technique [0002] Microservices is an architectural and organizational approach to developing software in which software consists of small independent services that communicate through well-defined APIs, composed of a set of definitions and protocols that can be used to build and enterprise integrate application software. In the microservice architecture, a microservice is to complete a single business function. An application may consist of multiple microservices. The data interaction between microservices is completed through remote procedure calls. If a microservice in the call link If the call time is too long or unavailable, the entire microservice call link will occupy more and more resources, which will cause the system to crash; at the same time, the interface canno...

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): G06F21/57
CPCG06F21/577
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