In general, API Gateways – and in particular, Apache APISIX – provide a single entry point into one’s information system. This architecture allows for managing load balancing and failover over similar nodes. For example, here’s how you can create a route balanced over two nodes in Apache APISIX:

Shell

 

curl http://localhost:9080/apisix/admin/routes/1 -H ‘X-API-KEY: edd1c9f034335f136f87ad84b625c8f1’ -X PUT -i -d ‘{
“uri”: “/*”,
“upstream”: {
“type”: “roundrobin”,
“nodes”: {
“192.168.0.1:80”: 1, # 1
“192.168.0.2:80”: 1 # 1
}
}
}’

Top
Generated by Feedzy