ServiceDiscoveryFactory implementation with cache, the subclass
should implement AbstractServiceDiscoveryFactory.createDiscovery(URL) method to create an instance of ServiceDiscoveryServiceInstancesChangedListener for specified service
Default, current method will be invoked by the ServiceDiscoveryRegistry on the subscription, and it's mandatory to
add the ServiceInstancesChangedListener argument
into EventDispatcher whether the subclass implements same approach or not, thus this method is used to
trigger or adapt the vendor's change notification mechanism typically, like Zookeeper Watcher,
Nacos EventListener.URLs from the specified ServiceInstanceServiceDiscoveryRegistry if supportedthe service instanceSPI implementation of ServiceDiscoveryFactory to get the
instance of ServiceDiscovery via the protocol from the URL that will connect
the infrastructure of Service registration and discovery.ServiceInstance.ServiceDiscoveryServiceInstancesChangedEventServiceInstancesChangedEventServiceInstancesChangedEventServiceInstancesChangedEventServiceDiscovery implementationThrowableServiceInstance.ServiceDiscoveryFactory by the protocolservice instances by the specified service name.pagination of service instances by the specified service name.pagination of service instances by the specified service name.service instances by the specified service namesurl's parameters of MetadataService's Metadataurls' parameters of MetadataService's MetadataWritableMetadataService instance.ServiceDiscoverythe metadata of
service instance and protocolServiceDiscovery on which the Event initially occurred.ServiceDiscoveryservice instanceServiceDiscoveryWritableMetadataService implementation stores the metadata of Dubbo services in memory locally when they
exported.Dubbo eventMetadataService : "dubbo.metadata-service."MetadataService's URLURLs property name of MetadataService :
"dubbo.metadata-service.urls", which is used to be compatible with Dubbo Spring Cloud and
discovery the metadata of instanceprotocols into
the metadata of service instanceServiceInstanceSelector implementation based on Random algorithmServiceInstance.SubscribedURLsSynthesizer implementation for REST protocolServiceInstance by the specified service instancesService Discovery destroyed.Service Discovery is destroying.Event class for ServiceDiscoveryService Discovery met with some exceptionServiceDiscoveryService Discovery initializedService Discovery is initializing.ServiceDiscoveryRegistry that is a new service-oriented
Registry based on ServiceDiscovery, it will not interact in the external registry directly,
but store the urls that Dubbo services exported and referenced into WritableMetadataService
when ServiceDiscoveryRegistry.register(URL) and ServiceDiscoveryRegistry.subscribe(URL, NotifyListener) methods are executed.the service instance on ServiceInstancePreRegisteredEventDubbo event for an service instancemetadata of the service instanceservice instance
registeredservice instance
unregisteredservice instance
registeredinstances of one service has been changed.Event ListenerServiceInstance Selectorservice instance
unregisteredservice instanceFailbackRegistry skips Failback.URLsURLs or notURLsServiceInstance.ServiceInstance.Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.