Message propagation-based service registration discovery method

The invention discloses a message propagation-based service registration discovery method, which comprises the following steps of: setting a micro-service instance cluster for each micro-service in a registration center, after instances are registered, pulling a latest service list by the registrati...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HE JIAN, XU HONGBING, YU LI, XU JINGLE, ZOU JIANXIAO
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 discloses a message propagation-based service registration discovery method, which comprises the following steps of: setting a micro-service instance cluster for each micro-service in a registration center, after instances are registered, pulling a latest service list by the registration center, performing priority ranking on the instances according to a preset priority comparison rule to obtain a priority list, and obtaining the priority list; if the priority is the highest, the service list is spread in the cluster by adopting a preset message spreading mechanism as an instance in a Leader state; and periodically acquiring the latest service list from the registration center by instances in the Leader state in the micro-service instance cluster, and performing centralized spreading by adopting a preset message spreading mechanism to complete service registration discovery. According to the method, the leader instance and the registration center are adopted to synchronize the service list, and