Service discovery and service registration method and device based on gateway

The invention provides a gateway-based service discovery and registration function extension method and device, and the method comprises the steps: a service deployment step: configuring a service discovery and registration address as a predetermined gateway address during service deployment; the se...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG PENGDA, JIAO XIUZHEN, LI XIRUI, ZHONG XIAORUI, WANG YU, WANG QIAN
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 invention provides a gateway-based service discovery and registration function extension method and device, and the method comprises the steps: a service deployment step: configuring a service discovery and registration address as a predetermined gateway address during service deployment; the service registration step comprises the steps that a service registration request from a pod is received through a gateway, a cluster corresponding to the service is determined based on the request, and the service registration request at least carries a podIP and a service name; performing corresponding service query on a Nacos server based on the service registration request to obtain a registered service list; service registration is carried out based on the registered service list, and a service node is newly added for the service under the condition that the registration request service is registered; and a service discovery step in which the gateway is used as middleware to process the service discovery request