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:

  1. <dependency>
  2. <dependency>
  3. <groupId>redis.clients</groupId>
  4. <artifactId>jedis</artifactId>
  5. <version>3.10.0</version>
  6. </dependency>
  7. </dependency>
  1. dubbo
  2. metadata-report
  3. address: redis://127.0.0.1:1111

or

  1. 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:

  1. <dependency>
  2. <groupId>org.apache.dubbo.extensions</groupId>
  3. <artifactId>dubbo-metadata-report-etcd</artifactId>
  4. <version>3.3.0</version>
  5. </dependency>

Adjust the configuration:

  1. dubbo
  2. metadata-report
  3. 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:

  1. <dependency>
  2. <groupId>org.apache.dubbo.extensions</groupId>
  3. <artifactId>dubbo-metadata-report-consul</artifactId>
  4. <version>3.3.0</version>
  5. </dependency>

Adjust the configuration:

  1. dubbo
  2. metadata-report
  3. address: consul://127.0.0.1:1111

Feedback

Was this page helpful?

Yes No

Last modified September 30, 2024: Update & Translate Overview Docs (#3040) (d37ebceaea7)