chickenlj opened a new issue #9750:
URL: https://github.com/apache/dubbo/issues/9750


   ## Use Zookeeper and Curator as Dubbo registry or config center
   Here is a very brief notice of how to use Zookeeper as a registry or other 
centers in Dubbo. Dubbo 3 supports Curator as the official Zookeeper 
interaction framework. But it's the user's responsibility to set the right 
Zookeeper versions for both client and server in order to work together with 
different Curator versions. 
   
   Dubbo supports both Curator4 and Curator5 as the Zookeeper client. The 
simplest way to use Curator is like below:
   
   ### Curator4
   ```xml
   <properties>
       <dubbo.version>3.0.7-SNAPSHOT</dubbo.version>
   </properties>
   
   <dependencies>
       <dependency>
           <groupId>org.apache.dubbo</groupId>
           <artifactId>dubbo</artifactId>
           <version>${dubbo.version}</version>
       </dependency>
       <dependency>
           <groupId>org.apache.dubbo</groupId>
           <artifactId>dubbo-dependencies-zookeeper</artifactId>
           <version>${dubbo.version}</version>
           <type>pom</type>
       </dependency>
   </dependencies>
   ```
   
   ### Curator5
   ```xml
   <properties>
       <dubbo.version>3.0.7-SNAPSHOT</dubbo.version>
   </properties>
   
   <dependencies>
       <dependency>
           <groupId>org.apache.dubbo</groupId>
           <artifactId>dubbo</artifactId>
           <version>${dubbo.version}</version>
       </dependency>
       <dependency>
           <groupId>org.apache.dubbo</groupId>
           <artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
           <version>${dubbo.version}</version>
           <type>pom</type>
       </dependency>
   </dependencies>
   ```
   
   Check this notice from Curator for the compatible versions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to