Microservice API arrangement method and system based on gateway

A technology for microservices and API calls, applied in the field of microservices, to reduce transaction rollback, enhance availability, and simplify the process of creating and orchestrating APIs

Pending Publication Date: 2021-06-25
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical task of the present invention is to address the above deficiencies and provide a gateway-based microservice API arrangement method and system to solve the problem of how to reduce the workload of arrangement API and reduce the difficulty of maintenance

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
  • Microservice API arrangement method and system based on gateway
  • Microservice API arrangement method and system based on gateway

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] In the gateway-based micro-service API arrangement system of the present invention, the micro-service API is an API provided externally by the micro-service. After the arrangement of the micro-service API, a collection composed of multiple micro-service APIs and the relationship between the micro-service APIs is used as the arrangement API. The system includes a front-end orchestration API creation module and a back-end orchestration API execution engine. The front-end orchestration API creation module includes a management interface and an editor. The editor is a visual editor, which is used to arrange the calling process of the microservice API and create Orchestration API, the management interface is used to edit and configure the API after orchestration; the back-end orchestration API execution engine includes a pre-filter and a runtime execution engine, and the above-mentioned pre-filter is used to identify the orchestration API request and arrange the The API reque...

Embodiment 2

[0053] The gateway-based micro-service API layout method of the present invention uses the gateway-based micro-service API layout system disclosed in Embodiment 1 to perform micro-service API layout. The micro-service API is an API provided by the micro-service. After the micro-service API is programmed A set composed of multiple microservice APIs and relationships between microservice APIs is used as an orchestration API, and the method includes the following steps:

[0054] S100. Use the editor in the front-end orchestration API creation module to orchestrate the calling process of the microservice API, and create the orchestration API;

[0055] S200, using the management interface in the front-end orchestration API creation module to edit and configure the orchestrated API;

[0056] S300. Identify the orchestration API request through the pre-filter in the backend orchestration API execution engine, and forward the orchestration API request to the runtime execution engine; ...

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 gateway-based micro-service API arrangement method and system, belongs to the technical field of micro-services, and aims to solve the technical problems of how to reduce the workload of API arrangement and reduce the maintenance difficulty. The system comprises a front-end arrangement API creation module which comprises a management interface and an editor; the editor is used for carrying out calling process arrangement on a micro-service API and creating an arrangement API, and the management interface is used for carrying out editing configuration on the arranged API; the rear end arrangement API execution engine comprises a pre-filter and a runtime execution engine, the pre-filter is used for identifying an arrangement API request and forwarding the arrangement API request to the runtime execution engine, and the runtime execution engine is used for performing flow control and fusing degradation check on the arrangement API, performing availability check on the called micro-service API, and achieving the access to the micro-service API through the RestTemplate.

Description

technical field [0001] The invention relates to the technical field of microservices, in particular to a gateway-based microservice API arrangement method and system. Background technique [0002] As the microservice architecture is more and more widely used in enterprises, many applications are split into separate services to reduce the coupling between modules, so as to solve the problem of application complexity. However, with the continuous increase of new requirements, the number of services in the microservice architecture is also increasing. In order to achieve a certain requirement, many microservice APIs need to be called in combination, and there is a workload for sequentially calling microservice APIs by coding or writing files. The shortcomings of being large and difficult to maintain are not conducive to the timely launch of functions and the expansion of functions. [0003] Based on the above analysis, how to reduce the workload of orchestrating API and reduce...

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): H04L29/08
CPCH04L67/51H04L67/60
Inventor 王天一杨旭肖传楠玄德孙思清
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
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