Version: 2.1.0
nacos
Service discovery via Nacos#
This is experimental discovery module for Nacos.
The performance of this module needs to be improved:
- avoid synchroning configuration in each workers. You can refer the implementation in
consul_kv.lua. - send the request parallelly.
Configuration for Nacos#
Add following configuration in conf/config.yaml :
And you can config it in short by default value:
Upstream setting#
Here is an example of routing a request with a URL of "/nacos/*" to a service which named "http://192.168.33.1:8848/nacos/v1/ns/instance/list?serviceName=APISIX-NACOS" and use nacos discovery client in the registry :
The format response as below: