API gateway guarantee service high availability method and system based on fusing and secondary caching

A secondary cache and gateway technology, applied in storage systems, transmission systems, digital transmission systems, etc., can solve problems such as the inability to continue to provide available services, achieve the effects of improving service availability, optimizing user experience, and ensuring accurate response

Active Publication Date: 2019-11-05
INST OF INFORMATION ENG CHINESE ACAD OF SCI
View PDF6 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0015] In order to solve the above problems, the present invention proposes a method and system for adding a second-level cache to the fusing function of the API gateway. After all the back-end service nodes are down, the gateway cannot continue to provide available services by requesting data from the second-level cache. The problem is to improve the user experience while ensuring the high availability of the service through the fuse and the second-level cache

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
  • API gateway guarantee service high availability method and system based on fusing and secondary caching
  • API gateway guarantee service high availability method and system based on fusing and secondary caching
  • API gateway guarantee service high availability method and system based on fusing and secondary caching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be further described below through specific embodiments and accompanying drawings.

[0034] 1) Overall composition

[0035] The technical architecture diagram of the present invention is as follows figure 1 Shown:

[0036] The system adds Cache on the basis of the caller, API gateway service, API gateway configuration service, API gateway heartbeat monitoring service and backend service.

[0037] The API gateway service is the entrance for the gateway to provide external access: all requests will first go to the API gateway service. The gateway service processes all requests in parallel and obtains the API configuration information from the memory. The configuration information specifies whether to enable Cache. If it is enabled, it will request Cache. If enabled, the backend service is requested.

[0038] API gateway co...

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 an API gateway guarantee service high availability method and a system based on fusing and secondary caching. The method comprises the following steps of: 1) when an API gateway service receives a service request sent by a calling party, obtaining API configuration information from a memory, determining whether to access a Cache, if yes, obtaining a response result from a first-level cache of the Cache, and if not, sending the service request to a back-end service; 2) generating a corresponding response result by the back end service according to the received service request and putting the response result into a first-level cache and a second-level cache of the Cache; and if the abnormal result returning times of calling the same API gateway service reach a fusingthreshold value, entering a fusing process of the API gateway service, and enabling the API gateway service to enter a fusing opening state. According to the method, high availability of the service is ensured, and the user experience is improved.

Description

technical field [0001] The present invention relates to the field of API gateway, fusing, cache and service high availability, in particular to a method and system for guaranteeing service high availability of API gateway based on fusing and secondary cache. Background technique [0002] With the development of the Internet, network access traffic is increasing, and the requirements for service stability and availability are getting higher and higher. High availability has become an important criterion for measuring the performance of a service. [0003] The API gateway is usually used as a unified entrance and exit of the API, and at the same time provides functions such as load balancing, service degradation, current limiting, and circuit breaker. Although the existence of these functions can reduce the risk of back-end service downtime, and can return fixed content when the back-end service is down, these functions cannot guarantee to continue to provide stable and accura...

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): G06F12/0897H04L12/24H04L12/26H04L12/66H04L29/14H04L69/40
CPCG06F12/0897H04L41/08H04L43/10H04L12/66H04L69/40
Inventor 宋振宇刘方明付玉霞李宁刘宝旭
Owner INST OF INFORMATION ENG CHINESE ACAD OF SCI
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