Eureka, ZooKeeper, and Nacos are popular service registries in Java microservices models. Service registries are used to implement service registration and discovery. They can decouple services and free you from dependency management. This way, you can dynamically manage microservices. This topic describes the service registries supported by Enterprise Distributed Application Service (EDAS) and how to perform O&M for these service registries.

Service registries

EDAS supports the following service registries: Eureka, ZooKeeper, and Nacos. For more information about each service registry, visit the corresponding official website or GitHub repository. You can choose a service registry based on your actual needs.

EDAS provides hosting and microservice governance services for your applications, regardless of the type of service registry that your applications use.

EDAS provides various O&M methods to cater to different types of service registries that your applications use.

Use Nacos

If you want to use Nacos as the service registry, the following two options are available:

  • Use the shared service registry of EDAS

    EDAS integrates the general availability (GA) version of Nacos. EDAS provides the service registration and discovery capabilities of Nacos in the form of a shared service registry that does not require O&M.

    Benefits

    The shared service registry of EDAS has the following benefits:

    • The shared service registry saves the costs for the deployment and O&M of a service registry.
    • Links are encrypted for calls during service registration and discovery. This protects your services from being discovered by unauthorized applications.
    • The shared service registry of EDAS is fully integrated with other EDAS components to provide you with a comprehensive microservices solution.
    Operations

    When you create or deploy an application, clear Use Configured Registration Center. This way, the URL of the Nacos service registry specified in the application configurations will be overwritten by the URL of the shared service registry of EDAS.

  • Use an MSE-managed or self-managed Nacos service registry
  • Operations

    When you create or deploy an application, select Use Configured Registration Center. To prevent the URL of the configured Nacos service registry from being overwritten by the URL of the shared service registry of EDAS during application deployment, EDAS adds the following settings to the application configurations. This ensures that your application uses the service registry that is specified in the application configurations.

    Note
    • Make sure that the service registry that is specified in the application configurations can connect to the application deployed in EDAS. For example, the service registry resides in the same virtual private cloud (VPC) as the application.
    • Nacos V2.x does not support access from all regions. Therefore, your client cannot connect to port 9848.
    -Dnacos.use.endpoint.parsing.rule=false
    -Dnacos.use.cloud.namespace.parsing=false

Use Eureka or ZooKeeper

You can use an MSE-managed or a self-managed Eureka or ZooKeeper service registry. For more information about Microservice Engine (MSE) and the benefits of MSE-managed service registries, see What is MSE?.

Note Make sure that the service registry that is specified in the application configurations can connect to the application deployed in EDAS. For example, the service registry resides in the same VPC as the application.
Operations

When you create or deploy an application, select Use Configured Registration Center.

You can also change Eureka or ZooKeeper to Nacos in the application configurations to use the shared service registry of EDAS.

Use other types of service registries

If you want to use a service registry of other types such as Consul, the service registry must be self-managed.

Note Make sure that the service registry that is specified in the application configurations can connect to the application deployed in EDAS. For example, the service registry resides in the same VPC as the application.
Operations

When you create or deploy an application, select Use Configured Registration Center.

You can also change other service registry types to Nacos in the application configurations to use the shared service registry of EDAS.