All Products
Search
Document Center

API Gateway:Services

Last Updated:Feb 21, 2025

This topic describes how to add services, manage services, manage service versions, manage service traffic rules, and configure active health checks for services in Cloud-native API Gateway. This helps you efficiently optimize service management and improves system performance and reliability.

Create a service

Cloud-native API Gateway allows you to add services from the following sources: Container Service for Kubernetes (ACK) clusters, Microservices Engine (MSE) Nacos instances, fixed endpoints, Domain Name System (DNS) domain names, and Function Compute. To allow a gateway instance to obtain service endpoints, you must add an existing service to the instance and register the service as a destination service for routing in the console. For more information, see Create a service.

Manage services

After you add a service whose source is a fixed address, the endpoint of the backend node that corresponds to the service may change. If the service is not registered with the service source of the gateway instance, the instance cannot dynamically obtain the new endpoint of the backend node. In this case, to allow the instance to obtain the new endpoint, you must modify the service information to manually adjust the endpoint of the backend node that corresponds to the service. For more information, see Manage services.

Manage service versions

Service versions are used for the tag-based routing feature that is configured for the routes of a Cloud-native API Gateway instance. You can configure tag-based routing policies for routes to meet requirements in scenarios such as canary releases, tag-based routing, and high-availability deployments. For more information, see Manage service versions.

Manage traffic rules

You can configure traffic rules to control the process of how traffic is transferred from the gateway instance to the backend service. The rule configuration includes the encryption type and load balancing policy. This ensures secure and efficient traffic transfer from the instance to the backend service. You can manage the following items:

  • Manage certificate encryption configurations of backend services

  • Manage load balancing policies for backend services

For more information, see Manage traffic rules.

Configure active health checks for services

After you configure active health checks for services, the system automatically deactivates unhealthy nodes based on the health check result. The system also automatically activates nodes when they are restored to a healthy state. The active health check feature helps improve the availability of routes to the service interface when multi-replica deployment is used for your backend services. Specifically:

  • Configure active health checks for services.

  • Troubleshoot health check failures.

For more information, see Configure active health checks for services.