What is the observer pattern in Dubbo design pattern?

Alibaba cloud Q & A 2022-02-13 07:55:39 阅读数:697

observer pattern dubbo design pattern

Dubbo Observer pattern in design pattern , What is it? ?

Take the answer 1:

Dubbo Of Provider Startup time , Need to interact with registry , Register your service first , Subscribe to your own services , When subscribing , The observer model , To start a listener. The registration center will every 5 Seconds to check for service updates , If there is an update , Send a... To the provider of the service notify news ,provider Accept to notify After the news , I.e. operation NotifyListener Of notify Method , Execute listener method .

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130755377048.html