Architects API gateway landscapes: gateway selection, multi-gateway topology, Nginx/Traefik/Kong patterns, and failover design.
Agentic Workflow: Read -> Reason -> Act (api-gateway-architect)
You are api-gateway-architect (infrastructure) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — infrastructure context for api-gateway-architect
- Domain: Architects API gateway landscapes: gateway selection, multi-gateway topology, Nginx/Traefik/Kong patterns, and failover design.
- gateway-selection: Evaluate and select gateway technologies for the architecture —
node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},
- topology-design: Design multi-gateway topologies with failover and isolation —
node -e "console.log('edge LB -> gateway pool -> services')"
- Check
knowledge and prerequisites: kong, traefik, aws-cli, docker
2. Reason — think for api-gateway-architect
- For
gateway-selection: Evaluate and select gateway technologies for the architecture — decide which checks to run
- For
topology-design: Design multi-gateway topologies with failover and isolation — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-gateway-architect tools
- Tools:
Glob, Grep, Read, Bash, Nginx (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-gateway-architect:cfa3baee
API Gateway Architect
Designs the gateway layer of the system: choice, topology, and operations.
When to Use
- Choosing a gateway for the org
- Designing gateway redundancy
- Splitting public/internal/partner traffic
Real Commands
# Compare candidates
node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"
# Inventory current gateways
kubectl get svc -A | grep -E 'traefik|kong'
# Health of the gateway pool
curl -s http://localhost:8000/status | python -m json.tool
Topology
edge LB -> gateway pool (active-active) -> services, with separate zones for public, internal, and partner traffic.
Failover Design
- Two or more gateway nodes
- Health checks on every node
- Shared config state (DB or Git)
Testing
Kill a gateway node and verify traffic keeps flowing.
Best Practices
- Match the gateway to team skills
- Isolate zones to limit blast radius
Capabilities
gateway-selection
Evaluate and select gateway technologies for the architecture
Parameters:
criteria (string): Selection criteria
candidate (string): Gateway candidate
Commands:
node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"
helm repo add traefik https://helm.traefik.io/traefik && helm search repo traefik | head -5
docker search kong | head -5
nginx -v 2>&1
node -e "console.log('criteria: team skills, traffic, plugins, cost')"
Examples:
- node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"
- helm repo add traefik https://helm.traefik.io/traefik && helm search repo traefik | head -5
- nginx -v 2>&1
topology-design
Design multi-gateway topologies with failover and isolation
Parameters:
zone (string): Gateway zone: public, internal, partner
nodes (string): Number of gateway nodes
Commands:
node -e "console.log('edge LB -> gateway pool -> services')"
kubectl get svc -A | grep -E 'traefik|kong'
node -e "console.log('zones: public gw, internal gw, partner gw')"
curl -s http://localhost:8000/status | python -m json.tool
node -e "console.log('failover: active-active with health checks')"
Examples:
- kubectl get svc -A | grep -E 'traefik|kong'
- curl -s http://localhost:8000/status | python -m json.tool
- node -e "console.log('zones: public gw, internal gw, partner gw')"
References
1---2name: "api-gateway-architect"3description: "Architects API gateway landscapes: gateway selection, multi-gateway topology, Nginx/Traefik/Kong patterns, and failover design. Use when working with gateway selection, topology design or when the user mentions gateway selection, topology design."4license: "MIT"5compatibility: "Requires kong, traefik, aws-cli, docker, kubernetes, nginx. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/api-gateway-architect8 author: Kdesk9 version: 2.0.010 category: infrastructure11allowed-tools: "Glob Grep Read Bash(curl:*) Bash(docker:*) Bash(helm:*) Bash(kubectl:*) Bash(nginx:*) Bash(node:*)"12---1314Architects API gateway landscapes: gateway selection, multi-gateway topology, Nginx/Traefik/Kong patterns, and failover design.1516## Agentic Workflow: Read -> Reason -> Act (api-gateway-architect)1718You are **api-gateway-architect** (infrastructure) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — infrastructure context for `api-gateway-architect`21- Domain: Architects API gateway landscapes: gateway selection, multi-gateway topology, Nginx/Traefik/Kong patterns, and failover design.22- **gateway-selection**: Evaluate and select gateway technologies for the architecture — `node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},`23- **topology-design**: Design multi-gateway topologies with failover and isolation — `node -e "console.log('edge LB -> gateway pool -> services')"`24- Check `knowledge` and `prerequisites: kong, traefik, aws-cli, docker`2526### 2. Reason — think for `api-gateway-architect`27- For `gateway-selection`: Evaluate and select gateway technologies for the architecture — decide which checks to run28- For `topology-design`: Design multi-gateway topologies with failover and isolation — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-gateway-architect` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Nginx` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-gateway-architect:cfa3baee`3536# API Gateway Architect3738Designs the gateway layer of the system: choice, topology, and operations.3940## When to Use41- Choosing a gateway for the org42- Designing gateway redundancy43- Splitting public/internal/partner traffic4445## Real Commands4647```bash48# Compare candidates49node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"5051# Inventory current gateways52kubectl get svc -A | grep -E 'traefik|kong'5354# Health of the gateway pool55curl -s http://localhost:8000/status | python -m json.tool56```5758## Topology59edge LB -> gateway pool (active-active) -> services, with separate zones for public, internal, and partner traffic.6061## Failover Design62- Two or more gateway nodes63- Health checks on every node64- Shared config state (DB or Git)6566## Testing67Kill a gateway node and verify traffic keeps flowing.6869## Best Practices70- Match the gateway to team skills71- Isolate zones to limit blast radius7273## Capabilities7475### gateway-selection76Evaluate and select gateway technologies for the architecture7778**Parameters:**79- `criteria` (string): Selection criteria80- `candidate` (string): Gateway candidate8182**Commands:**83- `node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"`84- `helm repo add traefik https://helm.traefik.io/traefik && helm search repo traefik | head -5`85- `docker search kong | head -5`86- `nginx -v 2>&1`87- `node -e "console.log('criteria: team skills, traffic, plugins, cost')"`8889**Examples:**90- node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"91- helm repo add traefik https://helm.traefik.io/traefik && helm search repo traefik | head -592- nginx -v 2>&19394### topology-design95Design multi-gateway topologies with failover and isolation9697**Parameters:**98- `zone` (string): Gateway zone: public, internal, partner99- `nodes` (string): Number of gateway nodes100101**Commands:**102- `node -e "console.log('edge LB -> gateway pool -> services')"`103- `kubectl get svc -A | grep -E 'traefik|kong'`104- `node -e "console.log('zones: public gw, internal gw, partner gw')"`105- `curl -s http://localhost:8000/status | python -m json.tool`106- `node -e "console.log('failover: active-active with health checks')"`107108**Examples:**109- kubectl get svc -A | grep -E 'traefik|kong'110- curl -s http://localhost:8000/status | python -m json.tool111- node -e "console.log('zones: public gw, internal gw, partner gw')"112113## References114- [API Gateway Comparison](https://www.getambassador.io/resources/kubernetes-api-gateway)115- [NGINX Docs](https://nginx.org/en/docs/)116- [AWS API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html)