Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for transmitting an API (Application Programming Interface) request

A programming interface and application technology, applied in the computer field, can solve problems such as affecting the efficiency of API requests, many table items, and long query time.

Active Publication Date: 2018-09-04
HUAWEI TECH CO LTD
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, based on the existing technology, when an API request needs to span multiple security domains, the API gateway in each security domain needs to search for a pre-stored correspondence table between the request address and the service address. Too many, resulting in a long query time, affecting the efficiency of API requests

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
  • Method and apparatus for transmitting an API (Application Programming Interface) request
  • Method and apparatus for transmitting an API (Application Programming Interface) request
  • Method and apparatus for transmitting an API (Application Programming Interface) request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The embodiment of the present invention provides a method for transmitting API requests, which can be applied to the scenario of transmitting API requests across security domains, such as figure 1 As shown, it is an example diagram of the network system provided by the embodiment of the present invention. The network system includes three security domains, which are respectively security domain A, security domain B and security domain C, wherein API is set in security domain A Gateway A, API gateway B is set in security domain B, API gateway C is set in security domain C, and multiple servers can be set in each security domain. When a client needs to access server 1 in security domain C, the client connected in security domain A can send an API request to API gateway A, API gateway A sends the API request to API gateway C through API gateway B, and API gateway After receiving the API request, C forwards the API request to server 1 for processing. In this embodiment of ...

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 embodiments of the invention provide a method and an apparatus for transmitting an API (Application Programming Interface) request, and relates to the technical field of computers. The method comprises the steps of enabling a first API gateway to receive a first API request; enabling the first API gateway to obtain a first forwarding label corresponding to the first API request, wherein the first forwarding label includes a first target security domain identifier, and a security domain identifier of the first API gateway is different from the first target security domain identifier; and enabling the first API gateway to determine an address of a second API gateway according to a corresponding relationship between the first target security domain identifier and the address of the secondAPI gateway, and sends the first API request to the second API gateway according to the address of the second API gateway, wherein the second API gateway is a next hop of API gateway of the first APIgateway to send the first API request to an API gateway corresponding to the first target security domain identifier. By adopting the method and the apparatus, the efficiency of the API request can be improved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a method and device for transmitting application programming interface (API) requests. Background technique [0002] At present, with the development of Internet technology and application software technology, microservice architecture has gradually become the mainstream application architecture due to its advantages such as easy maintenance and fast iteration speed. In the microservice architecture, developers can split the application into multiple independently running servers, and divide the servers into multiple security domains according to the security level of each server. An application programming interface (Application Programming Interface, API) gateway is set in each security domain, receives an API request sent by a client, and forwards the API request to a corresponding server. [0003] In the prior art, the API request sent by the client carries 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): H04L29/06H04L29/08H04L12/723H04L45/741H04L45/50
CPCH04L45/50H04L63/105H04L63/20H04L67/60H04L63/0236H04L67/63G06F9/547
Inventor 陆昕陈劲惠毓赓
Owner HUAWEI TECH CO LTD