Service Discovery
Although it is straightforward to figure upstream addresses statically, upstream addresses are often dynamically assigned and changed during autoscaling, failures, and updates in microservice-based architectures. Static configurations are less ideal.
In this case, you can use service discovery. It automatically detects available upstream endpoints, keeps their addresses in a database (called a service registry) for others to reference. API7 Enterprise can always fetch the latest list of upstream endpoints through the registry, ensuring all requests are forwarded to healthy upstream nodes.
API7 Enterprise supports integrations with Kubernetes service discovery, and more service registries are on the way, such as Consul, Eureka, Nacos, and more.