All Products
Search
Document Center

Enterprise Distributed Application Service:Create a configuration

Last Updated:Mar 11, 2026

Hardcoded variables scattered across application code are difficult to update and increase maintenance costs. Microservice Configurations in Enterprise Distributed Application Service (EDAS) provides a centralized store where applications retrieve settings at runtime, enabling you to change parameters quickly and reduce code maintenance costs.

Prerequisites

Before you begin, make sure that you have:

  • An Alibaba Cloud account with access to the EDAS console

  • A microservices namespace set up in your target region

Create a configuration in the EDAS console

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, choose Application Management > Microservice Configurations. The Configurations page appears.

  3. In the top navigation bar, select a region. Select a microservices namespace from the Microservice Namespace drop-down list, and then click Create Configuration.

  4. In the Create Configuration panel, set the following parameters and click Create.

    ParameterDescription
    RegionThe region selected in the top navigation bar. Read-only.
    Microservice NamespaceThe microservices namespace selected on the Configurations page. Read-only.
    Data IDA unique identifier for the configuration within its group. Use the package.class format, where class is a descriptive name. Example: com.foo.bar.log.level. For naming guidance, see the Data ID naming section below.
    GroupA logical grouping for configurations. Enter a service name or module name. Group names must be globally unique. For naming guidance, see the Group naming section below.
    Data encryptionThe encryption method. For details, see the Encryption options section below.
    Configuration FormatThe format of the configuration content.
    Configuration ContentThe configuration data. For an example, see the Configuration content example section below.
    Configuration DescriptionA brief description of the configuration purpose.
    More ConfigurationOptional metadata. Application: the application this configuration belongs to. Label: a keyword tag for filtering and organizing configurations.

    Create Configuration panel

Encryption options

EDAS supports two encryption methods through Key Management Service (KMS). Choose based on your configuration size and security requirements.

MethodHow it worksSize limitBest for
KMS encryptionSends content directly to KMS for encryption and decryption.Up to 6 KBSmall configurations without special characters
KMS AES-128 encryptionUses KMS envelope encryption. Plaintext is never transmitted to KMS.Up to 100 KBLarger configurations or stricter security requirements
Note With KMS encryption, avoid special characters such as ampersands (&) in configuration content -- they may cause decryption errors. For configurations larger than 6 KB, use KMS AES-128 encryption instead.

For more information, see Create and use encrypted configuration.

Configuration content example

A typical Properties-format configuration:

threadPoolSize=5
logLevel=WARN

A JSON-format configuration:

{
  "threadPool": {
    "size": 5
  },
  "logging": {
    "level": "WARN"
  }
}

Best practices

Data ID naming

Use a reverse-domain naming convention to keep Data IDs organized and avoid conflicts across teams and services.

com.myapp.database.connection
com.myapp.cache.settings
com.myapp.logging.level

This hierarchical structure provides several advantages:

  • Readability -- Delimiters function as logical separators, making IDs easier to scan.

  • Manageability -- Related configurations are naturally grouped by namespace prefix.

  • Collision avoidance -- Reverse-domain prefixes prevent naming conflicts across teams.

Note A Data ID must be unique within its group.

Group naming

Assign each microservice or module its own group. This keeps configurations isolated and prevents naming collisions across services. For example, use group names like order-service, payment-module, or user-auth.

Encryption

Use KMS AES-128 encryption for production workloads. It supports larger payloads (up to 100 KB), keeps plaintext out of KMS, and provides stronger security through envelope encryption.

Verify the configuration

After the configuration is created, it appears on the Configurations page. Confirm that the Data ID, Group, and content match your intended settings.

What's next