All Products
Search
Document Center

Serverless App Engine:Using an MSE Nacos service registry

Last Updated:Jun 21, 2026

When you deploy a locally developed Spring Cloud or Dubbo application to Serverless App Engine (SAE), you can use the built-in SAE service registry or a service registry hosted by Microservices Engine (MSE). This topic describes how to configure Nacos-based service registration and discovery for an application in the SAE console.

Prerequisites

Recommendations

If you have a large number of microservices applications, you can use one of the following types of service registries that are listed in descending order by recommendation level:

  • MSE Nacos registry

  • Self-managed service registry

  • SAE built-in service registry

For more information, see MSE Nacos and open-source Nacos.

Limitations

For more information about the limitations of using an MSE Nacos engine, see Application of MSE Nacos SDKs and restricted versions of Nacos SDKs.

Entry points

The entry point varies depending on the scenario.

Create application

  1. Log on to the SAE console. In the navigation pane on the left, choose Applications > Applications. Select the target region and namespace, and then click Create Application.

  2. After you configure the parameters on the Basic Information page, click Next: Advanced Settings.

Modify running application

Warning

After you redeploy an application, the application is restarted. To prevent unpredictable errors such as business interruptions, we recommend that you deploy applications during off-peak hours.

  1. Log on to the SAE console. In the navigation pane on the left, choose Applications > Applications. Select the target region and namespace, and then click the name of your target application.

  2. On the Basic Information page of the application, click Deploy Application.

Modify stopped application

  1. Log on to the SAE console. In the navigation pane on the left, choose Applications > Applications. Select the target region and namespace, and then click the name of your target application.

  2. On the Basic Information page of the application, click Modify Application Configuration.

Configure service registration and discovery

Find and expand the Service Registration and Discovery section. Set Nacos-based Registry Service and Discovery to MSE Nacos Professional Edition, and then select your MSE Nacos Instance and the corresponding Namespace.

Verify the results

To verify the deployment, on the application's Basic Information page, click the Instances tab. In the Actions column of the instance list, click Webshell and run verification commands in the Webshell window. For more information, see Use Webshell to diagnose applications.

  1. Verify that the service is successfully registered.

curl -X GET 'http://192.168.XX.XX:8848/nacos/v1/ns/instance/list?serviceName=service-provider'
  • service-provider: the service name.

  • 192.168.XX.XX:8848: the IP address and port of the host where Nacos is running. Replace 192.168.XX.XX with the internal endpoint of your MSE Nacos engine. To obtain the internal endpoint, log on to the MSE console, click your target instance on the Instances page, and find the endpoint on the instance's Basic Information page.

The following output indicates that the service is successfully registered:

[/home/admin]$ curl -X GET 'http://mse-xxx-nacos-ans.mse.aliyuncs.com:8848/nacos/v1/ns/instance/list?serviceName=service-provider'
{"name":"DEFAULT_GROUP@@service-provider","groupName":"DEFAULT_GROUP","clusters":"","cacheMillis":10000,"hosts":[],"lastRefTime":1679984302840,"checksum":"","allIPs":false,"reachProtectionThreshold":false,"hitWeightProtection":false,"valid":true,"dom":"service-provider"} [/home/admin]$
  1. Verify that the end-to-end access path for the microservice application works.

Run one of the following commands. 127.0.0.1:18082 is the IP address and access port of the host where the provider and consumer applications are running.

  • curl http://127.0.0.1:18082/echo-rest/{your-custom-variable}
  • curl http://127.0.0.1:18082/echo-feign/{your-custom-variable}

A response of 192.168.0.222:hello indicates that the consumer application successfully called the provider application, confirming the microservice access path is working correctly.

[/home/admin]$ curl http://127.0.0.1:18082/echo-rest/hello
192.168.0.222:hello
[/home/admin]$