Connect to the open source SOFA Registry
SOFA Registry offers an open source version for technical evaluation. To try it, you can use Spring Cloud SOFARegistry with the open source SOFA Registry.
To use the open source registry, you must configure the com.alipay.env parameter in your application. This parameter sets the operating mode for SOFA middleware clients. By default, Spring Cloud SOFA configures this parameter automatically to connect applications to the commercial SOFA middleware. To use non-commercial middleware, you must change this configuration manually.
Changing this configuration prevents your application from connecting to any commercial SOFA middleware, such as DRM or SOFAMQ. Do not configure this parameter under normal circumstances. When you change this parameter, avoid importing starters for other SOFA middleware. This is because only SOFA Registry currently offers an open source version. The information in this section is for testing and evaluation only. It is not recommended for production environments.
Start the open source SOFA Registry locally
Download the open source SOFA Registry installation package.
Run the following commands to decompress and start the open source SOFA Registry.
tar -zxvf registry-integration-fix.tgz cd registry-integration-fix sh bin/startup.sh
After you run the commands, the registry starts in the background. Check the standard output file for a message that indicates the startup status. The startup is successful if the following information appears in the output file.

Configure an application to connect to the open source SOFA Registry
Configure the following system variables in the application startup parameters:
-Dcom.alipay.confreg.url=127.0.0.1
-Dcom.alipay.env=normal
-Dspring.cloud.sofa.ldc.zone=DEFAULT_ZONEAfter you complete the configuration, start the application to connect to the open source SOFA Registry.
Open source SOFA Registry FAQ
Startup failed
If the open source SOFA Registry fails to start, try the following steps:
Delete the
raftDatafolder in theregistry-integration-fixfolder.If you have multiple network cards or a configured virtual network interface, modify the
JAVA_OPTSvariable in the startup script. Add-Dnetwork_interface_binding=XXto specify the network card.Check if the following ports are in use. If they are, shut down the related processes: 9600, 9601, 9603, 9610, 9611, 9612, 9614, 9615, 9620, 9621, and 9622.
Run the startup script again to start the registry.
Differences between the open source and commercial versions of SOFA Registry
The commercial version of SOFA Registry offers better high availability, disaster recovery, multi-region active-active deployment, and performance than the open source version. The following table compares the features of the open source and commercial versions.
Feature | Open source version | Commercial version |
Service registration | Support | Support |
Service subscription | Supported | Support |
Data replication (high availability) | Support | Support |
Push switch (smooth O&M) | Support | Supported |
Connection heartbeat | Support | Support |
Hessian serialization | Supported | Support |
Protobuf serialization | Not supported | Support |
Client data center convergence | Not supported | Support |
Multi-cluster synchronization | Not supported | Support |
Data center-level disaster recovery | Not supported | Support |
Pushed data compression | Not supported | Support |
GUI-based management console | Not supported | Supported |