Simple Registry Server

Simple registry server for dubbo

Simple registry server itself is a regular dubbo service. In this way, third-party dependency is unnecessary, and communication keeps consistent at the same moment.


Register simple registry server as dubbo service:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
    <!-- application info configuration -->
    <dubbo:application name="simple-registry" />
    <!-- service protocol configuration -->
    <dubbo:protocol port="9090" />
    <!-- service configuration -->
    <dubbo:service interface="org.apache.dubbo.registry.RegistryService" ref="registryService" registry="N/A" ondisconnect="disconnect" callbacks="1000">
        <dubbo:method name="subscribe"><dubbo:argument index="1" callback="true" /></dubbo:method>
        <dubbo:method name="unsubscribe"><dubbo:argument index="1" callback="false" /></dubbo:method>
    <!-- simple registry server implementation, register other implementation if cluster ability is a requirement-->
    <bean id="registryService" class="org.apache.dubbo.registry.simple.SimpleRegistryService" />

Reference simple registry server service:

<dubbo:registry address="" />


<dubbo:service interface="org.apache.dubbo.registry.RegistryService" group="simple" version="1.0.0" ... >


<dubbo:registry address="" group="simple" version="1.0.0" />


This SimpleRegistryService is just a simple implementation for register server, and it doesn’t have cluster support. It is useful for the implementation reference for the custom registry server, but not suitable for use in production environment directly.

Last modified December 22, 2020: clean up website (6e41905afab)