Multicast broadcast registration center (use only in development stage).

The Multicast registration center does not need to start any central nodes, as long as the broadcast address is the same, they can discover each other.


1 Instructions for use

<dubbo:registry address="multicast://" />


<dubbo:registry protocol="multicast" address="" />


In order to reduce the amount of broadcasting, Dubbo uses unicast to send provider address information to consumers by default. If multiple consumer processes are started on a machine at the same time, the consumer must declare unicast=false, otherwise only one consumer can receive the message; when the server and the consumer run on the same machine, the consumer It is also necessary to declare unicast=false, otherwise the consumer cannot receive the message, resulting in No provider available for the service exception:

<dubbo:application name="demo-consumer">
    <dubbo:parameter key="unicast" value="false" />


    <dubbo:parameter key="unicast" value="false" />

2 How it works

2.1 Basic process

  1. The provider broadcasts its own address when it starts
  2. Broadcast subscription request when consumer starts
  3. When the provider receives the subscription request, it will unicast its own address to the subscribers. If unicast=false is set, it will broadcast to the subscribers
  4. When the consumer receives the provider’s address, it connects to the address to make an RPC call.

2.2 Restrictions on Use

Multicast is limited by the network structure and is only suitable for small-scale applications or development stages. Multicast address segment: -

Last modified January 2, 2023: Enhance en docs (#1798) (95a9f4f6c1c)