More Metadata Center Extension Implementations

More metadata center extension implementations, including redis, etcd, consul, etc.

The Dubbo framework also provides default implementations for metadata center adapters such as Redis, etcd, and Consul.

Redis

The Redis implementation is provided by the core library but requires the following dependency:

<dependency>
	<dependency>
      <groupId>redis.clients</groupId>
      <artifactId>jedis</artifactId>
      <version>3.10.0</version>
    </dependency>
</dependency>
dubbo
  metadata-report
    address: redis://127.0.0.1:1111

or

dubbo.metadata-report.address=redis://127.0.0.1:1111

Etcd

The etcd metadata center is maintained by the community ecosystem library. For details, see .

Add the dependency:

<dependency>
    <groupId>org.apache.dubbo.extensions</groupId>
    <artifactId>dubbo-metadata-report-etcd</artifactId>
    <version>3.3.0</version>
</dependency>

Adjust the configuration:

dubbo
  metadata-report
    address: etcd://127.0.0.1:1111

Consul

The Consul metadata center is maintained by the community ecosystem library. For details, see .

Add the dependency:

<dependency>
    <groupId>org.apache.dubbo.extensions</groupId>
    <artifactId>dubbo-metadata-report-consul</artifactId>
    <version>3.3.0</version>
</dependency>

Adjust the configuration:

dubbo
  metadata-report
    address: consul://127.0.0.1:1111