METHOD AND APPARATUS FOR TRANSMITTING APPLICATION PROGRAMMING INTERFACE (API) REQUEST

Embodiments of the present invention provide a method and an apparatus for transmitting an application programming interface API request, and relate to the field of computer technologies. The method includes: receiving, by a first API gateway, a first API request; obtaining, by the first API gateway...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LU, Xin, HUI, Yugeng, CHEN, Jin
Format: Patent
Sprache:eng ; fre ; ger
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:Embodiments of the present invention provide a method and an apparatus for transmitting an application programming interface API request, and relate to the field of computer technologies. The method includes: receiving, by a first API gateway, a first API request; obtaining, by the first API gateway, a first forwarding label corresponding to the first API request, where 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; determining, by the first API gateway, an address of a second API gateway according to a mapping relationship between the first target security domain identifier and the address of the second API gateway; and sending the first API request to the second API gateway based on the address of the second API gateway, where the second API gateway is a next-hop API gateway of the first API gateway that sends the first API request to an API gateway corresponding to the first target security domain identifier. The present invention can be used to improve API request efficiency.