Web API Gateway
TheWeb API Gatewayis a standalone application which serves as entry point forWeb API Endpointsand redirects and load balances traffic to responsibleWeb API Agents. It uses the AI Hub Server's registry (seeWEBAPI_REGISTRY_properties) to get information about connected instances.
It is possible to deploy multiple instances to raise reliability and availability and by putting an external proxy in front, e.g., nginx.
| Property | Default | Description |
|---|---|---|
WEBAPI_REGISTRY_PROTOCOL |
http |
The internal registry protocol used by Gateway to retrieve information about routes and available Web API Agents |
WEBAPI_REGISTRY_HOST |
The internal registry host used by Gateway to retrieve information about routes and available Web API Agents | |
WEBAPI_REGISTRY_PORT |
8080 |
The internal registry port used by Gateway to retrieve information about routes and available Web API Agents |
WEBAPI_REGISTRY_USERNAME |
admin |
The internal registry username used by Gateway to retrieve information about routes and available Web API Agents |
WEBAPI_REGISTRY_PASSWORD |
The internal registry username used by Gateway to retrieve information about routes and available Web API Agents | |
WEBAPI_REGISTRY_URL |
See below | List of registries (high availability), comma separated of registry used by Gateway to retrieve information about routes and available Web API Agents |
WEBAPI_REGISTRY_URL
$WEBAPI_REGISTRY_PROTOCOL://$WEBAPI_REGISTRY_USERNAME:$WEBAPI_REGISTRY_PASSWORD@$WEBAPI_REGISTRY_HOST:$WEBAPI_REGISTRY_PORT/eureka
