Communication method, gateway and electronic equipment

The embodiment of the invention provides a communication method, a gateway and electronic equipment. The communication method is applied to a gateway of a micro-service architecture, and comprises the following steps: acquiring a first request based on a first calling protocol from a client or a fir...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG HUXING, ZHU HONGHAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a communication method, a gateway and electronic equipment. The communication method is applied to a gateway of a micro-service architecture, and comprises the following steps: acquiring a first request based on a first calling protocol from a client or a first server of the micro-service architecture; converting the first request into a second request based on a second calling protocol, wherein the second request is used for calling target logic of a second server of the micro-service architecture; and sending the second request to the second server. In the scheme of the embodiment of the invention, the gateway can convert the first request based on the first calling protocol into the second request based on the second calling protocol and send the second request to the server, so that the consistency of the calling protocols is realized, the interface calling efficiency of the micro-service architecture is improved, and thus, the compatibility between the gateway and