Service calling method based on micro-service gateway, service arrangement method and device

A technology of service arrangement and service invocation, which is applied in the field of computer data processing and can solve problems such as increasing the complexity of front-end and back-end interactive client development

Active Publication Date: 2020-06-05
SUNING CLOUD COMPUTING CO LTD
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this time, the front-end needs to interact with the gateway multiple times, and these micro-services have a sequential logical relationship. Every time the front-end calls a business interface, it needs to write various business logics according to the returned results to determine whether to call the next interface. The number of client interactions and the complexity of client development

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
  • Service calling method based on micro-service gateway, service arrangement method and device
  • Service calling method based on micro-service gateway, service arrangement method and device
  • Service calling method based on micro-service gateway, service arrangement method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0103] combine Figure 1~2 As shown, this embodiment provides a service invocation method based on a microservice gateway, which at least includes the following steps:

[0104] S1. The microservice gateway identifies the target service request address corresponding to the service request according to the received service request sent by the client.

[0105] After the step S1, it also includes: the microservice gateway judges the authority and judges the address type of the target service request.

[0106] The microservice gateway receives the service request, and judges whether the user has the access right to the target service request address according to the user access identifier (such as user ID, etc.). If the user has the access right, then further judge the type of the target service request address, so as to search the service arrangement status of the target service request address by type subsequently.

[0107] S2. According to the correspondence between the pre-es...

Embodiment 2

[0142] combine Figure 5 As shown, this embodiment provides a service orchestration method based on a microservice gateway, which at least includes the following steps:

[0143] S1'. Determine the set of service interfaces required to execute any business, and configure a corresponding service node for each service interface;

[0144] S2', configure the execution order of the service nodes;

[0145] S3', associating the microservice gateway with each service node respectively, and associating the service nodes in sequence;

[0146] S4', configuring relevant parameters of each service node;

[0147] S5'. Generate a service request address for the service.

[0148] Wherein, step S4' includes at least the following sub-steps:

[0149] S41', configure the return parameters of each service node;

[0150] S42', configure the backend service interface address and interface request protocol corresponding to each service node;

[0151] S43'. Configure the matching relationship be...

Embodiment 3

[0156] In order to implement a service invocation method based on a microservice gateway in the first embodiment above, this embodiment provides a corresponding service invocation device 100 based on a microservice gateway, such as Figure 6 As shown, the device 100 at least includes:

[0157] Identification module 1: used to identify the target service request address corresponding to the service request according to the received service request sent by the client;

[0158] Determination module 2: used to determine whether the target service address has a corresponding target service arrangement according to the correspondence between the pre-established service request address and the pre-configured service arrangement;

[0159] Creation module 3: used to create execution tasks according to the process orchestrated by the target service;

[0160] Execution module 4: used to call corresponding service nodes for execution in sequence according to the created execution tasks, ...

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 service calling method based on a micro-service gateway, a service arrangement method and a service arrangement device. The calling method at least comprises the following steps: identifying a target service request address corresponding to a received service request; determining whether the target service address has a corresponding target service orchestration or not according to a pre-established corresponding relationship between the service request address and a pre-configured service orchestration; if so, creating an execution task according to the flow of the target service arrangement; according to the created execution task, calling corresponding service nodes in sequence for execution; obtaining a service request result and returning the service requestresult to the client. The method is based on pre-configured service orchestration. A service request is received through a micro-service gateway, a service node is called, a service request result isreturned, a front-end and rear-end separation framework is perfected, complex service logic is packaged in a gateway service layer, the service logic among multiple micro-services is realized, the front-end and rear-end interaction frequency is reduced, and the development complexity of a client is reduced.

Description

technical field [0001] The invention relates to the field of computer data processing, in particular to a service invocation method based on a microservice gateway, a service arrangement method and a device. Background technique [0002] Most of today's Internet systems adopt a separate front-end and back-end architecture. There are many back-end service systems, which are centrally managed by the API gateway. The front-end only needs to interact with the gateway. Forwarding, as well as advanced functions such as current limiting, abnormal retransmission, and fuse mechanism when requesting forwarding. [0003] The currently introduced gateway technology is Netflix’s open source microservice gateway zuul (rewritten and transformed based on zuul). Different microservices have different network addresses. Sometimes the front end may need to call multiple microservice interfaces to complete a business requirement. For example, a shopping order service may call user microservice...

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/08H04L12/66
CPCH04L12/66H04L67/63
Inventor 许昆王宇郭近之樊兵
Owner SUNING CLOUD COMPUTING 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