Description
Abstract
Dubbo Cloud Native requires an abstract for Service registration and discovery that will support Dubbo application as a whole service registering to a registry instead of Dubbo service interfaces.
Concepts
It will introduce some new concepts:
-
Dubbo Service name(a.k.a Dubbo Application name)
The name of Dubbo application is unique in the current application and the registry, which could be configured by the externalized propertydubbo.application.name
or set byApplicationConfig
directly. -
Dubbo Service instance
The minimum Dubbo registration unit must include:- service name: a.k.a Dubbo Application name that current service instance belongs to
- hostname: The IP or hostname of the current service instance
- service port: The port Dubbo services export
- metadata: the metadata of the current instance, e.g, management port.
-
Dubbo Service registry
Being different from the traditional Dubbo registry, Dubbo Application registry only accepts current Dubbo applications' registration, is like Spring Cloud Registry, and the metadata of Dubbo services will reside in their self-application. -
Dubbo Service discovery
It provides a mechanism to discovery Dubbo applications and Dubbo Service interfaces.